]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Use maven jarsigner to sign the produced P2 repository contents
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Feb 2020 13:32:51 +0000 (15:32 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Feb 2020 13:32:51 +0000 (15:32 +0200)
gitlab #84

pom.xml

diff --git a/pom.xml b/pom.xml
index 50a579b7d1eb77fdea781741279da36869576393..fa0d10fbda34ff5fdb47cff6470d92df1dc40053 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                </plugins>
        </build>
 
+       <profiles>
+               <profile>
+                       <id>sign</id>
+                       <activation>
+                               <property>
+                                       <name>sign</name>
+                                       <value>true</value>
+                               </property>
+                       </activation>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>properties-maven-plugin</artifactId>
+                                               <version>1.0.0</version>
+                                               <executions>
+                                                       <execution>
+                                                               <phase>initialize</phase>
+                                                               <goals>
+                                                                       <goal>read-project-properties</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                               <configuration>
+                                                       <files>
+                                                               <file>${sign.properties}</file>
+                                                       </files>
+                                               </configuration>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-jarsigner-plugin</artifactId>
+                                               <version>3.0.0</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>sign</id>
+                                                               <goals>
+                                                                       <goal>sign</goal>
+                                                                       <goal>verify</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+       </profiles>
+
        <modules>
                <module>javax.vecmath</module>
                <module>org.jcae.opencascade</module>