...
Thanks!
– The Maven Team
Examples
...
Manual deploy of source code
| Code Block | ||
|---|---|---|
| ||
<project>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.0.4</version>
<configuration>
<!-- your example configuration here -->
</configuration>
</plugin>
</plugins>
</build>
</project>
|
Automatic deploy of source code
With the following configuration sources will be created in target folder with mvn install and deployed to local repo with mvn deploy. It is probably not possible to link this to the deploy phase.
| Code Block | ||
|---|---|---|
| ||
<plugin>
<!-- mvn install creates source jars, mvn deploy deploys them to central repo -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>jar</goal>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
|
FAQ
How do I ...?
You need to ...
