Some dependencies are not listed in .classpath
----------------------------------------------
Key: MECLIPSE-457
URL: http://jira.codehaus.org/browse/MECLIPSE-457
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Components: Core : Dependencies resolution and build path
Affects Versions: 2.5.1, 2.5, 2.4, 2.3
Environment: Maven 2.0.9, openSUSE 10.3, java version "1.5.0_15"
Reporter: Grzegorz Kossakowski
Attachments: myBlock.tar.gz
In some situations plug-in does not list all transitive dependencies in
.classpath file.
The one I identified was with Cocoon-based application. If I have following
entries in pom.xml:
<dependencies>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-core</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-servlet-service-components</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-template-impl</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-forms-impl</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-ajax-impl</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-flowscript-impl</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
then output is fine, but when I change cocoon-servlet-service-components to
1.1.0-SNAPSHOT generated .classpath file does not contain dependency on
excalibur-sourceresolve that is coming from:
cocoon-core -> cocoon-pipeline-components cocoon-pipeline-impl ->
excalibur-sourceresolve
To make this bug more interesting I should share my observation that if I
remove dependency on cocoon-ajax-impl then sourceresolve appears in .classpath
again. However, this dependency is still there because cocoon-forms-impl has
dependency on cocoon-ajax-impl.
Sight... Couldn't this plug-in use the same dependency mechanism as compilation
or dependency plug-in that resolve dependencies correctly?
I attach simple application that exhibits described problem. In order to
compile it with snapshot dependency you need to checkout and build Cocoon's
trunk that can be found at:
http://svn.eu.apache.org/repos/asf/cocoon/trunk/
--
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