[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] M2e incorrectly showing build errors in Eclipse
|
m2e does not support compilation of java classes (or execution of
anything maven plugins for that matter) for projects with packaging=pom.
You need to use packaging=jar or more specific packaging to compile java
classes.
--
Regards,
Igor
On 12-04-02 8:03 PM, Knute Snortum wrote:
A maven project in Eclipse is showing build errors because it is not
correctly reading the dependencies from the pom.xml file. I know it is
m2e because I can run a maven install manually without any problems. If
I had the errors Eclispe shows, maven would never pass its tests.
Version: Indigo Service Release 2
Build id: 20120216-1857
Org.eclipse.m2e.core: 1.0.200.20111223-1245
The imports in one of the Java files that are show “red exes”:
*import*_junit_.framework.TestCase;
*import*_org.hibernate.Session_;
*import*_org.hibernate.SessionFactory_;
*import*_org.hibernate.cfg_.Configuration;
The dependency nodes in the pom.xml look like this:
<dependency>
<groupId>_junit_</groupId>
<artifactId>_junit_</artifactId>
<version>4.10</version>
</dependency>
…
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>_hibernate_-core</artifactId>
<version>4.1.1.Final</version>
</dependency>
The pom is non-trivial but certainly not that complex: a parent with
four moduals. The moduals are all fine; only the parent. I don’t know if
this list accepts attachments but I will try to attach the parent pom file.
Knute Snortum
Developer
Catalyst IT Services
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users