commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joc...@apache.org
Subject svn commit: r507375 - /jakarta/commons/proper/fileupload/branches/b1_2/pom.xml
Date Wed, 14 Feb 2007 03:24:26 GMT
Author: jochen
Date: Tue Feb 13 19:24:25 2007
New Revision: 507375

URL: http://svn.apache.org/viewvc?view=rev&rev=507375
Log:
Got it finally working to add LICENSE and NOTICE to -sources.jar
and -javadoc.jar, while at the same time building the assemblies.

Modified:
    jakarta/commons/proper/fileupload/branches/b1_2/pom.xml

Modified: jakarta/commons/proper/fileupload/branches/b1_2/pom.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/fileupload/branches/b1_2/pom.xml?view=diff&rev=507375&r1=507374&r2=507375
==============================================================================
--- jakarta/commons/proper/fileupload/branches/b1_2/pom.xml (original)
+++ jakarta/commons/proper/fileupload/branches/b1_2/pom.xml Tue Feb 13 19:24:25 2007
@@ -137,68 +137,6 @@
           </archive>
         </configuration>
       </plugin>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>src/main/assembly/bin.xml</descriptor>
-            <descriptor>src/main/assembly/src.xml</descriptor>
-          </descriptors>
-          <tarLongFileMode>gnu</tarLongFileMode>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>addLicenseAndNotice</id>
-            <phase>verify</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <tasks>
-                <delete dir="${project.build.directory}/zipDir"/>
-                <mkdir dir="${project.build.directory}/zipDir"/>
-                <unzip src="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar"
dest="${project.build.directory}/zipDir"/>
-                <copy todir="${project.build.directory}/zipDir/META-INF">
-                  <fileset dir="${basedir}">
-                    <include name="LICENSE.txt"/>
-                    <include name="NOTICE.txt"/>
-                  </fileset>
-                </copy>
-                <zip destfile="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar">
-                  <fileset dir="${project.build.directory}/zipDir"/>
-                </zip>
-                <delete dir="${project.build.directory}/zipDir"/>
-                <mkdir dir="${project.build.directory}/zipDir"/>
-                <unzip src="${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar"
dest="${project.build.directory}/zipDir"/>
-                <copy todir="${project.build.directory}/zipDir/META-INF">
-                  <fileset dir="${basedir}">
-                    <include name="LICENSE.txt"/>
-                    <include name="NOTICE.txt"/>
-                  </fileset>
-                </copy>
-                <zip destfile="${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar">
-                  <fileset dir="${project.build.directory}/zipDir"/>
-                </zip>
-              </tasks>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <artifactId>maven-gpg-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>sign-artifacts</id>
-            <phase>verify</phase>
-            <goals>
-              <goal>sign</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
     </plugins>
   </build>
 
@@ -301,4 +239,84 @@
       </plugin>
     </plugins>
   </reporting>
+
+  <profiles>
+    <profile>
+      <id>release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>addLicenseAndNotice</id>
+                <phase>verify</phase>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+                <configuration>
+                  <tasks>
+                    <delete dir="${project.build.directory}/zipDir"/>
+                    <mkdir dir="${project.build.directory}/zipDir"/>
+                    <unzip src="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar"
dest="${project.build.directory}/zipDir"/>
+                    <copy todir="${project.build.directory}/zipDir/META-INF">
+                      <fileset dir="${basedir}">
+                        <include name="LICENSE.txt"/>
+                        <include name="NOTICE.txt"/>
+                      </fileset>
+                    </copy>
+                    <zip destfile="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar">
+                      <fileset dir="${project.build.directory}/zipDir"/>
+                    </zip>
+                    <delete dir="${project.build.directory}/zipDir"/>
+                    <mkdir dir="${project.build.directory}/zipDir"/>
+                    <unzip src="${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar"
dest="${project.build.directory}/zipDir"/>
+                    <copy todir="${project.build.directory}/zipDir/META-INF">
+                      <fileset dir="${basedir}">
+                        <include name="LICENSE.txt"/>
+                        <include name="NOTICE.txt"/>
+                      </fileset>
+                    </copy>
+                    <zip destfile="${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar">
+                      <fileset dir="${project.build.directory}/zipDir"/>
+                    </zip>
+                  </tasks>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <executions>
+              <execution>
+                <phase>verify</phase>
+                <goals>
+                  <goal>attached</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+              <descriptors>
+                <descriptor>src/main/assembly/bin.xml</descriptor>
+                <descriptor>src/main/assembly/src.xml</descriptor>
+              </descriptors>
+              <tarLongFileMode>gnu</tarLongFileMode>
+            </configuration>
+          </plugin>
+          <plugin>
+            <artifactId>maven-gpg-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>sign-artifacts</id>
+                <phase>verify</phase>
+                <goals>
+                  <goal>sign</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message