Skip to main content



      Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Mvn classpath container empty after pom change
Mvn classpath container empty after pom change [message #497165] Thu, 12 November 2009 12:31 Go to next message
Eclipse UserFriend
Every now and then when i make a change to the pom of a WTP project the maven classpath container becomes empy. There are no error messages and mvn compile on the command line works fine. The only way to get the classpath back again is to

1 Disable and enable maven on the project
2 Close and open the project

Often we have to repeat this a couple of times before everything pops back to normal again. IAM works perfectly except for this little annoying detail. Any suggestions?

Ganymede IAM 0.10
Re: Mvn classpath container empty after pom change [message #497211 is a reply to message #497165] Thu, 12 November 2009 15:57 Go to previous messageGo to next message
Eclipse UserFriend
are there any error messages in the Error Log view?

On 11/12/09 9:31 AM, danielh wrote:
> Every now and then when i make a change to the pom of a WTP project the
> maven classpath container becomes empy. There are no error messages and
> mvn compile on the command line works fine. The only way to get the
> classpath back again is to
>
> 1 Disable and enable maven on the project
> 2 Close and open the project
>
> Often we have to repeat this a couple of times before everything pops
> back to normal again. IAM works perfectly except for this little
> annoying detail. Any suggestions?
>
> Ganymede IAM 0.10
Re: Mvn classpath container empty after pom change [message #498526 is a reply to message #497211] Tue, 17 November 2009 05:48 Go to previous message
Eclipse UserFriend
I am looking at an Ecplise that has this problem right now. There are no error messages in the Error log that seem relevant. I tried clearing it, restarted tomcat and it remains empty.

Now, I was a bit unclear in my previous post. The Maven classpath container as it appears in the project looks quite healty, but what gets written to Tomcat's server.xml is missing all Maven dependencies. I included a snippet from Tomcat's server.xml (which is under Eclipse control). Normally the virtualPath attribute contains a long list of paths pointing to my local maven repository.

So it looks like IAM's got it right but somehow it doesn't make it all the way to server.xml.


Snippet from server.xml:


<Context docBase="C:\Projects\FF\my-project\src\main\webapp" path="" reloadable="true" source="org.eclipse.jst.j2ee.server:my-project">
<Resources className="org.eclipse.jst.server.tomcat.loader.WtpDirContext "
virtualClasspath=" C:\Projects\FF\my-project\target\test-classes;C:\Projects\FF \my-project\target\classes;C:\Projects\FF\my-common\target\t est-classes;C:\Projects\FF\my-common\target\classes "/>
<Loader className="org.eclipse.jst.server.tomcat.loader.WtpWebappLoader " useSystemClassLoaderAsParent="false"
virtualClasspath=" C:\Projects\FF\my-project\target\test-classes;C:\Projects\FF \my-project\target\classes;C:\Projects\FF\my-common\target\t est-classes;C:\Projects\FF\my-common\target\classes "/></Context>
<Context debug="1"
docBase="C:\Projects\FF\backoffice\src\main\webapp" path="/backoffice" reloadable="true" source="org.eclipse.jst.j2ee.server:backoffice">

[Updated on: Tue, 17 November 2009 05:50] by Moderator

Re: Mvn classpath container empty after pom change [message #571319 is a reply to message #497211] Tue, 17 November 2009 05:48 Go to previous message
Eclipse UserFriend
I am looking at an Ecplise that has this problem right now. There are no error messages in the Error log that seem relevant. I tried clearing it, restarted tomcat and it remains empty.

Now, I was a bit unclear in my previous post. The Maven classpath container as it appears in the project looks quite healty, but what gets written to Tomcat's server.xml is missing all Maven dependencies. I included a snippet from Tomcat's server.xml (which is under Eclipse control). Normally the virtualPath attribute contains a long list of paths pointing to my local maven repository.

So it looks like IAM's got it right but somehow it doesn't make it all the way to server.xml.


Snippet from server.xml:


<Context docBase="C:\Projects\FF\iris-frontend\src\main\webapp" path="" reloadable="true" source="org.eclipse.jst.j2ee.server:iris-frontend">
<Resources className="org.eclipse.jst.server.tomcat.loader.WtpDirContext "
virtualClasspath=" C:\Projects\FF\my-project\target\test-classes;C:\Projects\FF \my-project\target\classes;C:\Projects\FF\my-common\target\t est-classes;C:\Projects\FF\my-common\target\classes "/>
<Loader className="org.eclipse.jst.server.tomcat.loader.WtpWebappLoader " useSystemClassLoaderAsParent="false"
virtualClasspath=" C:\Projects\FF\my-project\target\test-classes;C:\Projects\FF \my-project\target\classes;C:\Projects\FF\my-common\target\t est-classes;C:\Projects\FF\iris-common\target\classes "/></Context>
<Context debug="1"
docBase="C:\Projects\FF\backoffice\src\main\webapp" path="/backoffice" reloadable="true" source="org.eclipse.jst.j2ee.server:backoffice">
Previous Topic:Mvn classpath container empty after pom change
Next Topic:Problem using maven-jibx-plugin
Goto Forum:
  


Current Time: Tue Jul 22 19:28:27 EDT 2025

Powered by FUDForum. Page generated in 0.06252 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top