maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: How to include the *-sources.jar in a binary distribution?
Date Mon, 21 Nov 2011 23:25:31 GMT
Paolo,

Are the -sources an artifact of the same project that is running the
assembly plugin?

Off hand I'd suggest making a separate module to build the combined
sources jar, and then you should be able to pull that into the
assembly.

Or, just use a <file> pointing at the right file in target/ instead of
referencing a dependency?


On Mon, Nov 21, 2011 at 3:05 PM, Paolo Castagna
<castagna.lists@googlemail.com> wrote:
> Hi,
> I'd like to include  the *-sources.jar in a lib-src/ directory in my
> binary distribution (done via assembly) [1].
> The reason why I'd like to include the *-sources.jar in the binary
> distribution is because people using IDEs (and not Maven) can point at
> them and browse the sources of our modules.
>
> I tried doing this in my assembly-binary.xml [2] but I don't
> understand why is not working as I would expect:
>
>      <binaries>
>        <outputDirectory>lib</outputDirectory>
>        <unpack>false</unpack>
>        <dependencySets>
>          <dependencySet>
>            <outputDirectory>lib</outputDirectory>
>          </dependencySet>
>          <dependencySet>
>            <outputDirectory>lib-src</outputDirectory>
>            <includes>
>              <include>*:sources</include>
>            </includes>
>          </dependencySet>
>        </dependencySets>
>      </binaries>
>
> Can you help me?
>
> Thanks,
> Paolo
>
>  [1] https://svn.apache.org/repos/asf/incubator/jena/Jena2/JenaDist/trunk/
>  [2] https://svn.apache.org/repos/asf/incubator/jena/Jena2/JenaDist/trunk/assembly-binary.xml
>
> ---------------------------------------------------------------------
> 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