Added release profile to avoid problems with signing files during release process

git-svn-id: https://svn.apache.org/repos/asf/struts/maven/trunk@899595 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/struts2-archetype-portlet/pom.xml b/struts2-archetype-portlet/pom.xml
index 148ce42..95bd23a 100644
--- a/struts2-archetype-portlet/pom.xml
+++ b/struts2-archetype-portlet/pom.xml
@@ -21,23 +21,47 @@
  * under the License.

  */

 -->

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

-  <parent>

-    <groupId>org.apache.struts</groupId>

-    <artifactId>struts2-parent</artifactId>

-    <version>2.2.0-SNAPSHOT</version>

-  </parent>

+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

+    <parent>

+        <groupId>org.apache.struts</groupId>

+        <artifactId>struts2-parent</artifactId>

+        <version>2.2.0-SNAPSHOT</version>

+    </parent>

 

-  <modelVersion>4.0.0</modelVersion>

-  <artifactId>struts2-archetype-portlet</artifactId>

-  <version>2.2.0-SNAPSHOT</version>

-  <packaging>jar</packaging>

-  <name>Struts 2 Archetypes - Portlet</name>

+    <modelVersion>4.0.0</modelVersion>

+    <artifactId>struts2-archetype-portlet</artifactId>

+    <version>2.2.0-SNAPSHOT</version>

+    <packaging>jar</packaging>

+    <name>Struts 2 Archetypes - Portlet</name>

 

     <scm>

-       <connection>scm:svn:http://svn.apache.org/repos/asf/struts/maven/trunk/struts2-archetype-portlet/</connection>

-       <developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/maven/trunk/struts2-archetype-portlet/</developerConnection>

-       <url>http://svn.apache.org/viewcvs.cgi/struts/maven/trunk/struts2-archetype-portlet/</url>

+        <connection>scm:svn:http://svn.apache.org/repos/asf/struts/maven/trunk/struts2-archetype-portlet/</connection>

+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/maven/trunk/struts2-archetype-portlet/</developerConnection>

+        <url>http://svn.apache.org/viewcvs.cgi/struts/maven/trunk/struts2-archetype-portlet/</url>

     </scm>

 

+    <profiles>

+        <profile>

+            <id>release</id>

+            <build>

+                <plugins>

+                    <plugin>

+                        <groupId>org.apache.maven.plugins</groupId>

+                        <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>