[
http://jira.codehaus.org/browse/MECLIPSE-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126450
]
nicolas de loof commented on MECLIPSE-397:
------------------------------------------
Issue is a little more complex.
When eclipse .classpath make reference to project A-util, it only includes
default build directory (target/classes), so will never include the
target/test-classes that matches the A-util-tests.jar.
I don't know if this is possible to specify build directory in target project
in the .classpath XML format. The UI editor doesn't provides this option.
> Eclipse project set as dependency + test-jar dependency is included twice in
> .classpath
> ---------------------------------------------------------------------------------------
>
> Key: MECLIPSE-397
> URL: http://jira.codehaus.org/browse/MECLIPSE-397
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: Core : Workspace settings
> Affects Versions: 2.5
> Environment: maven 2.0.8, eclipse plugin version
> 2.5-20080218.113139-24
> Reporter: nicolas de loof
>
> My maven project depends on A-util.jar for compile and A-util-tests.jar for
> tests :
> <dependency>
> <groupId>...
> <artifactId>A-util</artifactId>
> <version>...
> </dependency>
> <dependency>
> <groupId>...
> <artifactId>A-util</artifactId>
> <version>...
> <type>test-jar</type>
> <scope>test</scope>
> </dependency>
> I have the "A-util" project in my eclipse workspace
> Running mvn eclipse:eclipse creates an invalid .classpath where the eclipse A
> project is included twice :
> <classpathentry kind="src" path="/A-util"/>
> <classpathentry kind="src" path="/A-util"/>
> .. and invalid .project with twice references :
> <project>A-util</project>
> <project>A-util</project>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira