I include the following snippet in the project object model
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.1.2</version> </plugin>
according to maven.apache.org the plugin joins the can target to the package phase. However, running "mvn clean; mvn package" does not create the project-sources.jar file in the destination directory.
EDIT: Appropriate, I do not understand the comment from the website I quoted: "[Source: target jar] Becomes the default lifecycle phase: package." I expected that when I turn on the plugin section as shown above, maven already binds the original target: jar to the package phase. Am I mistaken here? What does a comment mean?
Matthias.
source share