Env:
====
JDK 5.0
Maven 1.0.2
Multiproject plugin: 1.3.1
Context:
========
I have setup a multiproject dependency as follows:
(rh
(common)
(dcm-cs)
)
where both rh and dcm-cs extend ${basedir}common/project.xml
and rh depends on dcm-cs.
I have also defined a custom goal rh:build in toplevel and in
dcm-cs as follows:
// In rh/maven.xml ...
//
<goal name="rh:build">
<ant:echo>
Building RH toplevel...
</ant:echo>
<j:set var="goal" value="rh:build" />
<ant:mkdir dir="${maven.build.dir}" />
<attainGoal name="multiproject:goal"/>
</goal>
// In cs/maven.xml ...
//
<goal name="rh:build" prereqs="jar:install">
<ant:echo>
Building RH Common Services...
</ant:echo>
</goal>
Problem:
========
rh:build at the toplevel does not trigger rh:build in cs; instead
it attempts to download dcm-cs-1.0.jar from the local repository:
$ cd rh; maven -X
//...
Using default goal: rh:build
running script null
[available] [VERBOSE] Unable to find src/main/java to set property
sourcesPresent
[available] [VERBOSE] Unable to find src/test/java to set property
unitTestSourcesPresent
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
Verifying dependencies for dcm:dcm
Getting failed dependencies: [EMAIL PROTECTED]
Attempting to download dcm-cs-1.0.jar.
Getting URL:
http://roundhouse-repository.cisco.com/maven/dcm/jars/dcm-cs-1.0.jar
Received status code: 404
File not found on one of the repos
java.io.FileNotFoundException:
http://roundhouse-repository.cisco.com/maven/dcm/jars/dcm-cs-1.0.jar
at org.apache.maven.util.HttpUtils.retrieveArtifact(HttpUtils.java:590)
at org.apache.maven.util.HttpUtils.getFile(HttpUtils.java:395)
//...
Additional Info:
================
(a) Relevant excerpt from Parent project.xml (rh/common/project.xml):
<project>
<pomVersion>3</pomVersion>
<groupId>dcm</groupId>
<name>elidedname>
<!-- The version of the project under development, e.g.
<currentVersion>1.0</currentVersion>
//...
</project>
(b) Relevant excerpt from rh project.xml (rh/project.xml):
<project>
<extend>${basedir}/common/project.xml</extend>
<name>RH Project</name>
<artifactId>dcm</artifactId>
<dependencies>
<dependency>
<groupId>dcm</groupId>
<artifactId>dcm-cs</artifactId>
<version>${pom.currentVersion}</version>
<type>jar</type>
</dependency>
//...
</project>
(c) Relevant excerpt from cs project.xml (rh/cs/project.xml):
<project>
<extend>${basedir}/common/project.xml</extend>
<name>RH Common services</name>
<artifactId>dcm-cs</artifactId>
<dependencies>
<dependency>
<groupId>mortbay</groupId>
<artifactId>org.mortbay.jetty</artifactId>
<version>1.0</version>
<type>jar</type>
</dependency>
</dependencies>
//...
</project>
(d) Relevant excerpt from rh/project.properties:
maven.multiproject.basedir=${basedir}
maven.multiproject.includes=**/project.xml
maven.multiproject.excludes=common/project.xml
Any help greatly appreciated!
Thanks,
Rk
x77309
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]