Hi Barrie Barrie Treloar wrote: > On Tue, Nov 22, 2011 at 6:35 AM, Paolo Castagna > <[email protected]> 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? > > have you verified that > <include>*:sources</include> > is correct? > > According to > http://maven.apache.org/plugins/maven-assembly-plugin/component.html#class_binaries > "(Many) When <exclude> subelements are present, they define a set of > dependency artifact coordinates to exclude. If none is present, then > <excludes> represents no exclusions. Artifact coordinatess may be > given in simple groupId:artifactId form, or they may be fully > qualified in the form groupId:artifactId:type:version[:classifier]. > Additionally, wildcards can be used, as in *:maven-*" > > Classifiers are sometimes tricky, I find you need to explicitly list > them as the default is that it is empty. > > Try > mygroup:myartifact:*:sources > > And fiddle around.
I've tried these: <include>org.apache.jena:jena-*:*:*:sources</include> or: <include>org.apache.jena:jena-*:*:sources</include> No joy. The assembly-distribution.xml file (now) is here: https://svn.apache.org/repos/asf/incubator/jena/Jena2/JenaDist/trunk/assembly-distribution.xml Example output is here: https://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena/2.6.5-incubating-SNAPSHOT/apache-jena-2.6.5-incubating-20111122.161500-2-distribution.zip ... but still without lib-src/ directory. Thanks for your suggestion anyway. Paolo > When you work it out, cosnider updating the documentation so your > wisdom can benefit others. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
