Maven 2.x Eclipse Plugin

Generation of eclipse projects requires that reactor projects have installed jars

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Most reactor actions work without requiring projects in the hierachy to have installed jars. eg, You can compile and test the hierarchy using only the project target directories. However, when generating eclipse projects, the plugin will fail if a dependent project in the hierarchy does not have its jar installed. (Note, that if the jar /is/ installed, a direct project reference /will/ be defined in the .classpath – ie, the project installed jar is never actually used.)

Activity

Hide
Olivier Lamy added a comment -

The title should be :
eclipse:eclipse requires target/classes directories present for project references.
see relative http://jira.codehaus.org/browse/MECLIPSE-67.
Olivier

Show
Olivier Lamy added a comment - The title should be : eclipse:eclipse requires target/classes directories present for project references. see relative http://jira.codehaus.org/browse/MECLIPSE-67. Olivier
Hide
Olivier Lamy added a comment -

workaround :
mvn -Dmaven.test.skip=true clean compile eclipse:clean eclipse:eclipse

Show
Olivier Lamy added a comment - workaround : mvn -Dmaven.test.skip=true clean compile eclipse:clean eclipse:eclipse
Hide
Olivier Lamy added a comment -

I have a probably related trouble.
My root pom contains modules :

  • accommons-tools (version 2.4-SNAPSHOT)
  • accommons-prefs (version 1.6-SNAPSHOT)
  • accommons-cache (version 2.5-SNAPSHOT)
  • split-tars (1.6-SNAPSHOT)

accommons-cache depends on : accommons-tools-2.3 and accommons-prefs-1.5
split-tars depends on accommons-tools-2.3, accommons-prefs-1.5 and accommons-cache-2.5-SNAPSHOT
In the root folder, I run : mvn compile eclipse:clean eclipse:eclipse
In accommons-cache, my .classpath contains :
<classpathentry kind="var" path="M2_REPO/C:/projets/accommons-libs/accommons-prefs/target/classes"/>
<classpathentry kind="var" path="M2_REPO/C:/projets/accommons-libs/accommons-tools/target/classes"/>

In split-tars folder, my .classpath contains :
<classpathentry kind="var" path="M2_REPO/C:/projets/accommons-libs/accommons-prefs/target/classes"/>
<classpathentry kind="var" path="M2_REPO/C:/projets/accommons-libs/accommons-tools/target/classes"/>

and a good :
<classpathentry kind="src" path="/accommons-cache"/>

I don't know if it's relative to this issue
Olivier

Show
Olivier Lamy added a comment - I have a probably related trouble. My root pom contains modules :
  • accommons-tools (version 2.4-SNAPSHOT)
  • accommons-prefs (version 1.6-SNAPSHOT)
  • accommons-cache (version 2.5-SNAPSHOT)
  • split-tars (1.6-SNAPSHOT)
accommons-cache depends on : accommons-tools-2.3 and accommons-prefs-1.5 split-tars depends on accommons-tools-2.3, accommons-prefs-1.5 and accommons-cache-2.5-SNAPSHOT In the root folder, I run : mvn compile eclipse:clean eclipse:eclipse In accommons-cache, my .classpath contains : <classpathentry kind="var" path="M2_REPO/C:/projets/accommons-libs/accommons-prefs/target/classes"/> <classpathentry kind="var" path="M2_REPO/C:/projets/accommons-libs/accommons-tools/target/classes"/> In split-tars folder, my .classpath contains : <classpathentry kind="var" path="M2_REPO/C:/projets/accommons-libs/accommons-prefs/target/classes"/> <classpathentry kind="var" path="M2_REPO/C:/projets/accommons-libs/accommons-tools/target/classes"/> and a good : <classpathentry kind="src" path="/accommons-cache"/> I don't know if it's relative to this issue Olivier
Hide
fabrizio giustina added a comment -

fix in svn for 2.2.
The plugin now does a manual artifact resolution and doesn't require reactor projects to be installed anymore.

A snapshot with this change can be found at:
http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-eclipse-plugin/2.2-SNAPSHOT/maven-eclipse-plugin-2.2-20060402.070500-1.jar

Show
fabrizio giustina added a comment - fix in svn for 2.2. The plugin now does a manual artifact resolution and doesn't require reactor projects to be installed anymore. A snapshot with this change can be found at: http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-eclipse-plugin/2.2-SNAPSHOT/maven-eclipse-plugin-2.2-20060402.070500-1.jar

People

Vote (3)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: