Skip to main content


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] Thu, 21 May 2009 00:05 Go to next message
BenH is currently offline BenHFriend
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] Thu, 21 May 2009 00:19 Go to previous messageGo to next message
BenH is currently offline BenHFriend
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] Thu, 21 May 2009 02:59 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos SanchezFriend
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 07:58 Go to previous message
Abel Mui is currently offline Abel MuiFriend
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] Thu, 21 May 2009 00:19 Go to previous message
BenH is currently offline BenHFriend
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] Thu, 21 May 2009 02:59 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
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 07:58 Go to previous message
Abel Mui is currently offline Abel MuiFriend
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: Tue Apr 16 17:04:36 GMT 2024

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

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

Back to the top