Skip to content

Commit

Permalink
added sign-artifacts execution for release profile
Browse files Browse the repository at this point in the history
  • Loading branch information
trekawek committed Jul 3, 2013
1 parent ef617de commit a172cfa
Showing 1 changed file with 36 additions and 4 deletions.
40 changes: 36 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
<instance.username>admin</instance.username>
<instance.password>admin</instance.password>
<assembly.name>secure-cq</assembly.name>
<releaseProfiles>cli</releaseProfiles>
</properties>
<scm>
<connection>scm:git:https://github.com/Cognifide/SecureCQ.git</connection>
Expand Down Expand Up @@ -143,8 +142,8 @@
<artifactId>maven-crx-plugin</artifactId>
<version>1.0.3</version>
<configuration>
<!-- packageFileName>${project.build.directory}/${assembly.name}-${project.version}-${assembly.descriptor}.zip</packageFileName-->
<!-- packageName>${assembly.name}-${assembly.descriptor}</packageName-->
<!-- packageFileName>${project.build.directory}/${assembly.name}-${project.version}-${assembly.descriptor}.zip</packageFileName -->
<!-- packageName>${assembly.name}-${assembly.descriptor}</packageName -->
<url>${instance.url}</url>
<user>${instance.username}</user>
<password>${instance.password}</password>
Expand Down Expand Up @@ -308,6 +307,12 @@
</profile>
<profile>
<id>cli</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<properties>
<assembly.descriptor>cli</assembly.descriptor>
<packaging.type>jar</packaging.type>
Expand All @@ -325,5 +330,32 @@
</dependency>
</dependencies>
</profile>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
</project>

0 comments on commit a172cfa

Please sign in to comment.