Martin Pernollet
Martin Pernollet

Reputation: 2315

Maven Eclipse Indigo Plugin weird/inconsistant results

I have just imported a maven project into eclipse indigo which seems bundled with an existing maven plugin. Eclipse project files where generated using .project/.classpath using the separate command mvn eclipse:eclipse.

Then trying to run "maven install" from the IDE lead to "BUILD SUCCESSFULL" in eclipse console... but the eclipse editors show inconsistant compile errors in some few java file, such a "The import my.package.class could not be resolved" whereas it mentions a class from the same project, with no compile error mentionned by the IDE.

Anyone encountered such problems?

Changing property "Maven" > "Installations" > "Embeddable 3.xx" to "External path/to/maven" did not changed anything.

To be able to run maven, I changed eclipse.ini to target the JDK's JRE (C:\Program Files (x86)\Java\jdk1.6.0_21\jre)

Maven installation is @ version 2.2.1 on my computer.

Thanks in advance for suggestions.

Upvotes: 0

Views: 277

Answers (1)

khmarbaise
khmarbaise

Reputation: 97427

First in Indigo you should never use mvn eclispe:eclipse anymore cause that's handled by m2e instead...Furthermore i would suggest to upgrade to Maven 3.0. cause in Eclipse you are using already an Maven 3.0.X ...Have you checked on command line if

mvn clean package

is succesful without any error message...

Upvotes: 1

Related Questions