Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

spring-web maven dependency not being published with eclipse

My gae + spring + maven project works perfectly. But I can't make it work using eclipse.

Seems like the spring-web dependency declared in my pom.xml is disappearing from WEB-INF/lib when I run my project using GAE from eclipse (using Google Plugin, Run As > Web Application). So without spring-web this is the exception:

Could not instantiate listener org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

(Full GAE stacktrace here)

From console, running mvn clean package gae:run, the app works like a charm and spring-web is placed under WEB-INF/lib directory as expected.

Just published my test project at BitBucket: https://bitbucket.org/jelies/gae-spring-maven

Any idea why spring-web is not being published to WEB-INF/lib when launching webapp from eclipse?


Using:

  • SpringSource ToolSuite 3.1.0 (based on eclipse 3.8)
  • Java 6
  • Spring 3.2.1
  • Maven 3.0.4
  • Google App Engine 1.7.5
  • maven-gae-plugin 0.9.6

Update: spring-web dependency is being published to WEB-INF/lib when using spring version 3.1.4.RELEASE. This is not happening with any 3.2.X version.

like image 350
jelies Avatar asked Mar 02 '13 12:03

jelies


Video Answer


1 Answers

Added a Jira issue for this problem with my configuration (Eclipse 4.2, WAS 7.0, mvn 3): https://jira.springsource.org/browse/SPR-10494

like image 170
faetzminator Avatar answered Sep 18 '22 15:09

faetzminator