Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.2
-
None
-
None
Description
I'm trying to add 'test-jar' resources to my assembly; i.e. the following jars are created by one of our other modules:
main:
rw-rr- 1 kstam admin 11603 Jun 3 11:29 uddi-tck-3.2.0-SNAPSHOT.jar
rw-rr- 1 kstam admin 27880 Jun 3 11:29 uddi-tck-3.2.0-SNAPSHOT-javadoc.jar
rw-rr- 1 kstam admin 8873 Jun 3 11:29 uddi-tck-3.2.0-SNAPSHOT-sources.jar
test:
rw-rr- 1 kstam admin 106397 Jun 3 11:29 uddi-tck-3.2.0-SNAPSHOT-tests.jar
rw-rr- 1 kstam admin 149558 Jun 3 11:29 uddi-tck-3.2.0-SNAPSHOT-test-javadoc.jar
rw-rr- 1 kstam admin 62545 Jun 3 11:29 uddi-tck-3.2.0-SNAPSHOT-test-sources.jar
I can successfully add the uddi-tck-3.2.0-SNAPSHOT-tests.jar to my assembly using
...
<dependencySet>
<outputDirectory>bin</outputDirectory>
<includes>
<include>org.apache.juddi:juddi-client:jar</include>
<include>org.apache.juddi:uddi-tck:jar</include>
<include>org.apache.juddi:uddi-tck:test-jar</include>
...
However when I try to add the source jar:
...
<!-- The source archives JARs -->
<dependencySet>
<outputDirectory>src</outputDirectory>
<scope>test</scope>
<includes>
<include>org.apache.juddi:juddi-client:jar:sources</include>
<include>org.apache.juddi:uddi-tck:jar:sources</include>
<include>org.apache.juddi:uddi-tck:test-jar:sources</include>
...
Then the uddi-tck-3.2.0-SNAPSHOT-sources.jar is NOT picked up. I made sure we reference the source
and javadoc artifacts in the pom.xml:
<dependency>
<groupId>org.apache.juddi</groupId>
<artifactId>uddi-tck</artifactId>
<version>${project.parent.version}</version>
<type>test-jar</type>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.apache.juddi</groupId>
<artifactId>uddi-tck</artifactId>
<version>${project.parent.version}</version>
<classifier>javadoc</classifier>
<type>test-jar</type>
</dependency>
Full pom and assembly.xml:
http://svn.apache.org/repos/asf/juddi/trunk/uddi-client-dist/pom.xml
http://svn.apache.org/repos/asf/juddi/trunk/uddi-client-dist/src/main/assembly/assembly.xml
When running with -X it says:
[DEBUG] Adding artifact: org.apache.juddi:uddi-tck:test-jar:sources:3.2.0-SNAPSHOT with file: /Users/kstam/.m2/repository/org/apache/juddi/uddi-tck/3.2.0-SNAPSHOT/uddi-tck-3.2.0-SNAPSHOT-sources.jar to assembly location: src/uddi-tck-3.2.0-SNAPSHOT-sources.jar.
so it seem to be adding the source jar, rather then the test-jar. eventhough it says it's going to add the test-jar version:
Adding artifact: org.apache.juddi:uddi-tck:test-jar:sources:3.2.0-SNAPSHOT
To reproduce check out http://svn.apache.org/repos/asf/juddi/trunk/
cd uddi-client-dist
mvn package -DskipTests=true
Note that the javadoc plugin seems to have the same issue.
Cheers,
--Kurt