maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurt T Stam <kurt.s...@gmail.com>
Subject Re: source and javadoc jars from test-jar
Date Tue, 04 Jun 2013 13:02:32 GMT
I'm assuming it is a bug and opened 
http://jira.codehaus.org/browse/MSOURCES-66

On 6/3/13 2:26 PM, Kurt T Stam wrote:
> Hi guys,
>
> 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-r--r--   1 kstam  admin     11603 Jun  3 11:29 
> uddi-tck-3.2.0-SNAPSHOT.jar
> -rw-r--r--   1 kstam  admin     27880 Jun  3 11:29 
> uddi-tck-3.2.0-SNAPSHOT-javadoc.jar
> -rw-r--r--   1 kstam  admin      8873 Jun  3 11:29 
> uddi-tck-3.2.0-SNAPSHOT-sources.jar
> test:
> -rw-r--r--   1 kstam  admin    106397 Jun  3 11:29 
> uddi-tck-3.2.0-SNAPSHOT-tests.jar
> -rw-r--r--   1 kstam  admin    149558 Jun  3 11:29 
> uddi-tck-3.2.0-SNAPSHOT-test-javadoc.jar
> -rw-r--r--   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
>
>
> Does anyone has an idea what I'm doing wrong? Is this a bug?
> Any help you can provide would be great.
>
> Thx,
>
> --Kurt
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message