ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1689235 - /webservices/woden/trunk/java/pom.xml
Date Sun, 05 Jul 2015 11:15:43 GMT
Author: veithen
Date: Sun Jul  5 11:15:43 2015
New Revision: 1689235

URL: http://svn.apache.org/r1689235
Log:
Always build source JARs, not just in the apache-release profile.

Modified:
    webservices/woden/trunk/java/pom.xml

Modified: webservices/woden/trunk/java/pom.xml
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/pom.xml?rev=1689235&r1=1689234&r2=1689235&view=diff
==============================================================================
--- webservices/woden/trunk/java/pom.xml (original)
+++ webservices/woden/trunk/java/pom.xml Sun Jul  5 11:15:43 2015
@@ -140,6 +140,23 @@
                     <compilerArgument>-g</compilerArgument>
                 </configuration>
             </plugin>
+            <plugin>
+                <!-- We want to generate source JARs for all builds, not just release
builds. -->
+                <artifactId>maven-source-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>source-jars</id>
+                        <goals>
+                            <!-- Use "jar-no-fork" instead of "jar" to avoid forking the
build
+                                 (which is not a problem, but unnecessary) -->
+                            <goal>jar-no-fork</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <attach>true</attach>
+                </configuration>
+            </plugin>
         </plugins> 
     </build>
     <repositories>
@@ -302,6 +319,33 @@
                 </pluginManagement>
             </build>
         </profile>
+        <profile>
+            <id>apache-release</id>
+            <modules>
+                <module>woden-core</module>
+                <module>woden-tests</module>
+                <module>woden-tool</module>
+                <module>woden-converter-maven-plugin</module>
+                <module>woden-ant</module>
+            </modules>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-source-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <!-- Skip the execution configured in org.apache:apache.
We use our own configuration. -->
+                                <id>attach-sources</id>
+                                <phase>none</phase>
+                                <goals>
+                                    <goal>jar</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
     <properties>
         <bundle.plugin.version>2.3.7</bundle.plugin.version>



Mime
View raw message