Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Classpath container suddenly vanished and I cannot get it back
Classpath container suddenly vanished and I cannot get it back [message #18966] Wed, 20 May 2009 20:05 Go to next message
BenH is currently offline BenH
Messages: 39
Registered: July 2009
Member
Classpath container suddenly vanished and I cannot get it back. Ie, my
project has no dependencies in its classpath and thus every source file
has errors.

The change happened immediately after made a change to my pom.xml that was
invalid according to the schema (leaving out 'version' of a dependency).

Since then, I have Re-Enabled "Maven Dependency Management", Re-Installed
the IAM 0.9 plugin, and Deleted and Imported my project again, but the
issue remains.

This effectively renders me unable to proceed using the plugin, so unless
I can quickly find a workaround, Im going to have to install m2eclipse to
keep working while I get this resolved.

I have looked in Error Log view and do not see anything that seems related
to it.

One thing I did notice is double entries in .project and .classpath:

<nature>org.devzuz.q.maven.jdt.core.mavenNature</nature>
<nature>org.eclipse.iam.jdt.core.mavenNature</nature>

<classpathentry kind="con"
path="org.eclipse.iam.jdt.core.mavenClasspathContainer"/>
<classpathentry kind="con"
path="org.devzuz.q.maven.jdt.core.mavenClasspathContainer"/ >

-Ben
Re: Classpath container suddenly vanished and I cannot get it back [message #18989 is a reply to message #18966] Wed, 20 May 2009 20:19 Go to previous messageGo to next message
BenH is currently offline BenH
Messages: 39
Registered: July 2009
Member
I have been able to work around my problem by deleting all IAM metadata
from .classpath and .project files, then re-opening project and
re-enabling Maven dependency mgt.

-Ben
Re: Classpath container suddenly vanished and I cannot get it back [message #19011 is a reply to message #18989] Wed, 20 May 2009 22:59 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos Sanchez
Messages: 114
Registered: July 2009
Senior Member
If you delete .classpth .project and .settings folder, and reimport the
project you should get a completely clean status


On 5/20/09 5:19 PM, BenH wrote:
> I have been able to work around my problem by deleting all IAM metadata
> from .classpath and .project files, then re-opening project and
> re-enabling Maven dependency mgt.
>
> -Ben
>
Re: Classpath container suddenly vanished and I cannot get it back [message #19052 is a reply to message #18966] Thu, 21 May 2009 03:58 Go to previous message
Abel Mui is currently offline Abel Mui
Messages: 247
Registered: July 2009
Senior Member
BenH wrote:

> Classpath container suddenly vanished and I cannot get it back. Ie, my
> project has no dependencies in its classpath and thus every source file
> has errors.

> The change happened immediately after made a change to my pom.xml that was
> invalid according to the schema (leaving out 'version' of a dependency).

Invalid POMs will prevent the maven classpath container from being
properly built.

Once you fix the pom, you need to manually clean your project through the
Eclipse menus (Project > Clean...). If you have dependent projects,
cleaning all projects will be the safest option.

Yours,
--
Abel Muiño
Re: Classpath container suddenly vanished and I cannot get it back [message #569105 is a reply to message #18966] Wed, 20 May 2009 20:19 Go to previous message
BenH is currently offline BenH
Messages: 39
Registered: July 2009
Member
I have been able to work around my problem by deleting all IAM metadata
from .classpath and .project files, then re-opening project and
re-enabling Maven dependency mgt.

-Ben
Re: Classpath container suddenly vanished and I cannot get it back [message #569132 is a reply to message #18989] Wed, 20 May 2009 22:59 Go to previous message
Carlos Sanchez is currently offline Carlos Sanchez
Messages: 114
Registered: July 2009
Senior Member
If you delete .classpth .project and .settings folder, and reimport the
project you should get a completely clean status


On 5/20/09 5:19 PM, BenH wrote:
> I have been able to work around my problem by deleting all IAM metadata
> from .classpath and .project files, then re-opening project and
> re-enabling Maven dependency mgt.
>
> -Ben
>
Re: Classpath container suddenly vanished and I cannot get it back [message #569171 is a reply to message #18966] Thu, 21 May 2009 03:58 Go to previous message
Abel Mui is currently offline Abel Mui
Messages: 247
Registered: July 2009
Senior Member
BenH wrote:

> Classpath container suddenly vanished and I cannot get it back. Ie, my
> project has no dependencies in its classpath and thus every source file
> has errors.

> The change happened immediately after made a change to my pom.xml that was
> invalid according to the schema (leaving out 'version' of a dependency).

Invalid POMs will prevent the maven classpath container from being
properly built.

Once you fix the pom, you need to manually clean your project through the
Eclipse menus (Project > Clean...). If you have dependent projects,
cleaning all projects will be the safest option.

Yours,
--
Abel Muiño
Previous Topic:IAM looking for Java tools in wrong place?
Next Topic:Apparent Maven / JUnit clash in eclipse
Goto Forum:
  


Current Time: Wed Jul 30 07:27:54 EDT 2014

Powered by FUDForum. Page generated in 0.07846 seconds