You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Thomas Weise <th...@googlemail.com> on 2012/11/18 09:46:14 UTC

assembly: include source and javadoc artifacts into archived repository

Hello,

I'm using the assembly plugin to include the repository of project
arttifacts with transitive dependencies into an archive.

http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/using-repositories.html

The project is setup to create sources. test and javadoc jar files for some
modules (that mvn install would include). However, those won't be included
with repositories in the assembly descriptor:

   <repositories>
    <repository>
      <includeMetadata>true</includeMetadata>
      <outputDirectory>maven2</outputDirectory>
    </repository>
  </repositories>

I can add dependencies to the pom with classifier "sources" etc. But this
now requires extra entries per artifact while otherwise transitive
dependencies would pull everything needed. Is there a better solution to
this?

Thanks!