I could not find documentation per se but think I've figured out how to do
it. If you incorporate this into your POM (master or otherwise), it will
regenerate source JARs when reaching the "package" goal and install the
source JAR along with the runtime JAR when reaching either the "install" (to
local repository) or "deploy" (to remote, shared repository) goals:
<project...>
...
<build>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<executions>
<execution>
<phase>deploy</phase> <!-- also during
install -->
<configuration>
<performRelease/> <!-- installs source JAR
-->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
</project>
-^-rdj-^-
Lee Meador-3 wrote:
>
> There is no information on how to use the maven-source-plugin at the link
> given. It just shows the name and the config properties.
>
> There is no mention of the word "performRelease" at the POM document whose
> link is given.
>
> Does someone know of a place that documents these things?
>
--
View this message in context:
http://www.nabble.com/How-to-install-sources-t1049892.html#a4144741
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]