Issue #2639 - Add profile for jar signing with eclipse-jarsigner-plugin. (#2786)

Create a profile, 'eclipse-sign', that is enabled when the property by
the same name is defined, in order to handle the signing of Eclipse
bundles by the configured signing service.

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
This commit is contained in:
Roland Grunberg 2018-08-09 08:12:03 -04:00 committed by Olivier Lamy
parent ee68e7fdec
commit bd38bc905b
1 changed files with 63 additions and 0 deletions

63
pom.xml
View File

@ -30,6 +30,8 @@
<jmh.version>1.21</jmh.version> <jmh.version>1.21</jmh.version>
<jmhjar.name>benchmarks</jmhjar.name> <jmhjar.name>benchmarks</jmhjar.name>
<surefireVersion>2.21.0</surefireVersion> <surefireVersion>2.21.0</surefireVersion>
<tycho-version>1.2.0</tycho-version>
<cbi-plugins.version>1.1.5</cbi-plugins.version>
<mavenPluginToolsVersion>3.5.2</mavenPluginToolsVersion> <mavenPluginToolsVersion>3.5.2</mavenPluginToolsVersion>
<mavenVersion>3.5.0</mavenVersion> <mavenVersion>3.5.0</mavenVersion>
@ -1317,6 +1319,60 @@
<module>aggregates/jetty-all-compact3</module> <module>aggregates/jetty-all-compact3</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>eclipse-sign</id>
<activation>
<property>
<name>eclipse-sign</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-pack200a-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>pack200-normalize</id>
<goals>
<goal>normalize</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.cbi.maven.plugins</groupId>
<artifactId>eclipse-jarsigner-plugin</artifactId>
<version>${cbi-plugins.version}</version>
<executions>
<execution>
<id>sign</id>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-pack200b-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>pack200-pack</id>
<goals>
<goal>pack</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile> <profile>
<id>8u00</id> <id>8u00</id>
<activation> <activation>
@ -1875,6 +1931,13 @@
<enabled>true</enabled> <enabled>true</enabled>
</snapshots> </snapshots>
</pluginRepository> </pluginRepository>
<pluginRepository>
<id>cbi-releases</id>
<url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories> </pluginRepositories>
<distributionManagement> <distributionManagement>