maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Castagna <castagna.li...@googlemail.com>
Subject Re: How to include the *-sources.jar in a binary distribution?
Date Wed, 23 Nov 2011 14:12:47 GMT
Hi Barrie

Barrie Treloar wrote:
> On Wed, Nov 23, 2011 at 7:16 AM, Paolo Castagna
> <castagna.lists@googlemail.com> wrote:
>>
>> Barrie Treloar wrote:
>>> On Wed, Nov 23, 2011 at 3:49 AM, Paolo Castagna
>>> <castagna.lists@googlemail.com> wrote:
>>>
>>> There are 5 dimensions to this field
>>> groupId, artifactId, type, version, classifier
>>>
>>> You have
>>>>  <include>org.apache.jena:jena-*:*:*:sources</include>
>>> 1) org.apache.jena:jena-*:
>>> 2) *:
>>> 3) *:
>>> 4) sources
>> 1) org.apache.jena:
>> 2) jena-*:
>> 3) *:
>> 4) *:
>> 5) sources
>>
>> Sources should be = classifier
>>
>> Why you put org.apache.jena:jena-* together?
> 
> because it was 6am in the morning :)

Ok.

> Have you tried -X to see whether there is some knowledge buried in
> there about why its failing.
> Without someone more knowledgeable about what's going on and how to
> configure this, your next step is to download the assembly source code
> and have a look.
> 
> The documentation
> http://maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html
> has
> Example: Exclude all source-jar dependencies.
> 
> In this example, we're dealing with the fact that project sources are
> often distributed using jar files, in addition to normal binaries. We
> want to filter out any source-jar files (they'll be marked with a
> sources classifier) from the binary jars.
> 
> <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
> http://maven.apache.org/xsd/assembly-1.1.2.xsd">
>   [...]
>   <dependencySets>
>     <dependencySet>
>       <includes>
>         <include>*:jar:*</include>
>       </includes>
>       <excludes>
>         <exclude>*:sources</exclude>
>       </excludes>
>     </dependencySet>
>   </dependencySets>
>   [...]
> </assembly>
> 
> So you should be able to do what you are trying to do.
> 
> Sorry can't be more helpful.

No problem.

Paolo

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

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


Mime
View raw message