changeset 348:66ffb9cbdd31

Create Sources JAR.
author shade
date Fri, 20 Jan 2017 13:39:31 +0100
parents 05adef58465a
children 8b81e94d0a28
files jcstress-core/pom.xml jcstress-samples/pom.xml pom.xml
diffstat 3 files changed, 34 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/pom.xml	Fri Jan 20 13:26:46 2017 +0100
+++ b/jcstress-core/pom.xml	Fri Jan 20 13:39:31 2017 +0100
@@ -61,10 +61,6 @@
                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-javadoc-plugin</artifactId>
-            </plugin>
-            <plugin>
                 <groupId>com.mycila.maven-license-plugin</groupId>
                 <artifactId>maven-license-plugin</artifactId>
             </plugin>
@@ -87,6 +83,14 @@
                     <skip>false</skip>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+            </plugin>
         </plugins>
 
     </build>
--- a/jcstress-samples/pom.xml	Fri Jan 20 13:26:46 2017 +0100
+++ b/jcstress-samples/pom.xml	Fri Jan 20 13:39:31 2017 +0100
@@ -51,10 +51,6 @@
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-javadoc-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
             </plugin>
             <plugin>
@@ -84,6 +80,14 @@
                     <skip>false</skip>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+            </plugin>
         </plugins>
     </build>
 
--- a/pom.xml	Fri Jan 20 13:26:46 2017 +0100
+++ b/pom.xml	Fri Jan 20 13:39:31 2017 +0100
@@ -164,6 +164,24 @@
                         <skip>true</skip>
                     </configuration>
                 </plugin>
+
+                <!-- Create source jar -->
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-source-plugin</artifactId>
+                    <version>2.2.1</version>
+                    <executions>
+                        <execution>
+                            <id>attach-sources</id>
+                            <phase>verify</phase>
+                            <goals>
+                                <goal>jar</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                </plugin>
+
+                <!-- Create Javadoc jar -->
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-javadoc-plugin</artifactId>