|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
MAVEN2_CLASSPATH_CONTAINER ignored by source code highlightingI am using 0.9.8.200905041414 in Eclipse 3.5.1 on Win XP
My project setup does not seem to be respecting my "Maven Dependencies" and provide recognition of libraries within the classpath defined by Maven. (i.e. my source code is all underlined red, but the libraries are most certainly resolved by Maven) Yes, my source code really is in "src/main/java". It seems as though "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" is meaningless to my source code highlighting. It DOES build just fine! <classpath> <classpathentry kind="src" path="src/test/unit/java" output="target/test/unit/classes" including="**/*.java"/> <classpathentry kind="src" path="src/test/unit/resources" output="target/test/unit/classes" excluding="**/*.java"/> <classpathentry kind="src" path="src/main/java" including="**/*.java"/> <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/> <classpathentry kind="output" path="target/main/classes"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> </classpath> <projectDescription> <name>admin-ops</name> <comment/> <projects/> <buildSpec> <buildCommand> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> <arguments> <dictionary> <key>LaunchConfigHandle</key> <value><project>/.externalToolBuilders/Maven_Builder.launch</value> </dictionary> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.maven.ide.eclipse.maven2Nature</nature> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> Thanks, Steve Maring |
|
|
Re: MAVEN2_CLASSPATH_CONTAINER ignored by source code highlightingDespite restarting Eclipse a few times for grins ... it just started automagically working for no obvious reason that I can see ... heh
never mind then Cheers
|
|
|
RE: MAVEN2_CLASSPATH_CONTAINER ignored by source code highlightingDon't feel bad. I have seen this on occassion as well but I just don't
have enough info about how to reproduce it to share with the community. To fix it, I would simply remove that dependency from the pom, save it, then add it back. A restart of eclipse works as well but changing and saving the pom I found to be faster. I am at a loss as to how to actually get into this state though. It happens rarely enough that it has only been a minor annoyance. --- Todd Thiessen > -----Original Message----- > From: stevenmaring [mailto:steve.maring@...] > Sent: Wednesday, September 30, 2009 8:58 AM > To: user@... > Subject: Re: [m2eclipse-user] MAVEN2_CLASSPATH_CONTAINER > ignored by source code highlighting > > > Despite restarting Eclipse a few times for grins ... it just > started automagically working for no obvious reason that I > can see ... heh > > never mind then > > Cheers > > > > stevenmaring wrote: > > > > I am using 0.9.8.200905041414 in Eclipse 3.5.1 on Win XP > > > > My project setup does not seem to be respecting my "Maven > Dependencies" > > and provide recognition of libraries within the classpath > defined by > > Maven. (i.e. my source code is all underlined red, but the > libraries > > are most certainly resolved by Maven) > > > > Yes, my source code really is in "src/main/java". > > > > It seems as though > "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" > > is meaningless to my source code highlighting. > > > > It DOES build just fine! > > > > > > <classpath> > > <classpathentry kind="src" path="src/test/unit/java" > > output="target/test/unit/classes" including="**/*.java"/> > > <classpathentry kind="src" path="src/test/unit/resources" > > output="target/test/unit/classes" excluding="**/*.java"/> > > <classpathentry kind="src" path="src/main/java" > including="**/*.java"/> > > <classpathentry kind="src" path="src/main/resources" > > excluding="**/*.java"/> > > <classpathentry kind="output" path="target/main/classes"/> > > <classpathentry kind="con" > > path="org.eclipse.jdt.launching.JRE_CONTAINER"/> > > <classpathentry kind="con" > > path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> > > </classpath> > > > > > > <projectDescription> > > <name>admin-ops</name> > > <comment/> > > <projects/> > > <buildSpec> > > <buildCommand> > > <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> > > <arguments> > > <dictionary> > > <key>LaunchConfigHandle</key> > > > > > <value><project>/.externalToolBuilders/Maven_Builder.lau > nch</value> > > </dictionary> > > </arguments> > > </buildCommand> > > </buildSpec> > > <natures> > > <nature>org.maven.ide.eclipse.maven2Nature</nature> > > <nature>org.eclipse.jdt.core.javanature</nature> > > </natures> > > </projectDescription> > > > > Thanks, > > Steve Maring > > > > -- > View this message in context: > http://www.nabble.com/MAVEN2_CLASSPATH_CONTAINER-ignored-by-so > urce-code-highlighting-tp25680419p25680559.html > Sent from the Maven Eclipse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |