pom.xml | 39 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
New commits:
commit 45fa01fcb98acdc9156fe3d8b332e5ed54596d98
Author: Ian Springer <ian.springer(a)redhat.com>
Date: Fri Mar 4 14:42:33 2011 -0500
build sources and javadoc jars when release profile is activated
diff --git a/pom.xml b/pom.xml
index 97e45f7..68cab4c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -631,7 +631,7 @@
</configuration>
</plugin>
- <!-- Ensure all code compiles and runs on Java 5 or later. -->
+ <!-- Ensure all code compiles and runs on Java 6 or later. -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
@@ -1128,6 +1128,43 @@
</build>
</profile>
+ <!-- This profile should be enabled when a release is being published.
+ It will ensure that sources and javadoc jars are built and published
+ for each source module. -->
+ <profile>
+ <id>release</id>
+
+ <build>
+ <plugins>
+
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile>
+
</profiles>
Show replies by date