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.li...@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-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org