319 lines
10 KiB
XML
319 lines
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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 https://maven.apache.org/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>org.reficio.rcp</groupId>
|
|
<artifactId>example-p2-site</artifactId>
|
|
<packaging>pom</packaging>
|
|
<version>1.0.0</version>
|
|
|
|
<properties>
|
|
<dist.version>3.9.4.${maven.build.timestamp}</dist.version>
|
|
<dist.bucket>dist.springsource.com</dist.bucket>
|
|
<dist.path>release/TOOLS/third-party/misc-p2-repo/${dist.version}</dist.path>
|
|
<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
|
|
<!-- Signing -->
|
|
<signing.skip>true</signing.skip>
|
|
|
|
<dist.accessKey>${env.bamboo_vault_tools_s3_accesskey_password}</dist.accessKey>
|
|
<dist.secretKey>${env.bamboo_vault_tools_s3_secretkey_password}</dist.secretKey>
|
|
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.reficio</groupId>
|
|
<artifactId>p2-maven-plugin</artifactId>
|
|
<version>2.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>default-cli</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>site</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifacts>
|
|
<artifact>
|
|
<id>io.projectreactor:reactor-core:3.3.1.RELEASE</id>
|
|
<override>true</override>
|
|
<source>true</source>
|
|
<instructions>
|
|
<Bundle-Version>3.3.1.${maven.build.timestamp}-RELEASE</Bundle-Version>
|
|
</instructions>
|
|
</artifact>
|
|
<artifact>
|
|
<id>com.hierynomus:sshj:0.24.0</id>
|
|
<source>true</source>
|
|
<transitive>false</transitive>
|
|
</artifact>
|
|
<artifact>
|
|
<id>net.i2p.crypto:eddsa:0.2.0</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>com.jcraft:jzlib:1.1.3</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>org.bouncycastle:bcprov-jdk15on:1.59</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>org.bouncycastle:bcpkix-jdk15on:1.59</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>com.github.zafarkhaja:java-semver:0.9.0</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>org.jsoup:jsoup:1.9.2</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>com.kotcrab.remark:remark:1.0.0</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<!--
|
|
<artifact>
|
|
<id>org.cloudfoundry:cloudfoundry-client-spring:2.0.0.M1</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>org.cloudfoundry:cloudfoundry-operations:2.0.0.M1</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>org.springframework:spring-beans:4.2.5.RELEASE</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>org.springframework.security:spring-security-core:3.2.8.RELEASE</id>
|
|
<override>true</override>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>org.springframework.security:spring-security-config:3.2.8.RELEASE</id>
|
|
<override>true</override>
|
|
<source>true</source>
|
|
</artifact>
|
|
|
|
<artifact>
|
|
<id>org.yaml:snakeyaml:1.13</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>org.yaml:snakeyaml:1.14</id>
|
|
<source>true</source>
|
|
</artifact>
|
|
<artifact>
|
|
<id>org.yaml:snakeyaml:1.15</id>
|
|
<source>true</source>
|
|
</artifact>-->
|
|
</artifacts>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!-- skip deploy step, we have our own ant-stuffs to upload site to s3 -->
|
|
<plugin>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<version>2.5</version>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
<!-- all the stuff below is for uploading the site to S3 from a CI build -->
|
|
<profiles>
|
|
<profile>
|
|
<id>bamboo</id>
|
|
|
|
<properties>
|
|
<signing.store.password>${env.bamboo_vault_signing_passphrase}</signing.store.password>
|
|
<signing.key.password>${env.bamboo_vault_signing_passphrase}</signing.key.password>
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.eclipse.tycho.extras</groupId>
|
|
<artifactId>tycho-p2-extras-plugin</artifactId>
|
|
<version>0.25.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-full-metadata</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>publish-features-and-bundles</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceLocation>${project.build.directory}/repository</sourceLocation>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.8</version>
|
|
<executions>
|
|
<execution>
|
|
<id>sign-jars</id>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<target>
|
|
|
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
|
|
<taskdef resource="org/springframework/build/aws/ant/antlib.xml" />
|
|
|
|
<property name="repo.dir" value="${project.build.directory}/repository" />
|
|
|
|
<echo message="repo.dir=${repo.dir}" />
|
|
|
|
<signjar
|
|
alias="${signing.alias}" keystore="${signing.keystore}"
|
|
storepass="${signing.store.password}"
|
|
tsaurl="http://timestamp.digicert.com">
|
|
|
|
<path>
|
|
<fileset dir="${repo.dir}/plugins">
|
|
<include name="**/*.jar"/>
|
|
<exclude name="**/bcp*.jar"/> <!-- Don't sign they are already signed. Signing again creates troubles -->
|
|
</fileset>
|
|
</path>
|
|
</signjar>
|
|
|
|
<!-- delete p2 repo metadata, since that is no longer valid after signing, needs to be re-created -->
|
|
<delete file="${repo.dir}/content.jar"/>
|
|
<delete file="${repo.dir}/artifacts.jar"/>
|
|
|
|
</target>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>upload-dist</id>
|
|
<phase>deploy</phase>
|
|
<configuration>
|
|
<target>
|
|
|
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
|
|
<taskdef resource="org/springframework/build/aws/ant/antlib.xml" />
|
|
|
|
<property name="site.target.dir" value="${project.build.directory}" />
|
|
|
|
<echo message="dist.accessKey=${dist.accessKey}" />
|
|
<echo message="dist.bucket=${dist.bucket}" />
|
|
<echo message="dist.path=${dist.path}" />
|
|
|
|
<!-- !!! don't turn stuff below on unless you are really sure all
|
|
that paths / names are correct !!! -->
|
|
|
|
|
|
<s3 accessKey="${dist.accessKey}" secretKey="${dist.secretKey}">
|
|
|
|
<delete bucketName="${dist.bucket}">
|
|
<fileset dir="${dist.path}">
|
|
<include name="category.xml" />
|
|
<include name="content.jar" />
|
|
<include name="artifacts.jar" />
|
|
<include name="plugins/**" />
|
|
<include name="features/**" />
|
|
</fileset>
|
|
</delete>
|
|
|
|
<upload bucketName="${dist.bucket}" toDir="${dist.path}"
|
|
publicRead="true">
|
|
<fileset dir="${site.target.dir}/repository">
|
|
<include name="**/*" />
|
|
<include name="**" />
|
|
<exclude name="*.zip" />
|
|
</fileset>
|
|
</upload>
|
|
</s3>
|
|
</target>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.build</groupId>
|
|
<artifactId>org.springframework.build.aws.ant</artifactId>
|
|
<version>3.0.6.RELEASE</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.java.dev.jets3t</groupId>
|
|
<artifactId>jets3t</artifactId>
|
|
<version>0.8.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ant-contrib</groupId>
|
|
<artifactId>ant-contrib</artifactId>
|
|
<version>20020829</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>tycho-snapshots</id>
|
|
<url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
|
|
</pluginRepository>
|
|
<!--
|
|
<pluginRepository>
|
|
<id>reficio</id>
|
|
<url>https://repo.reficio.org/maven/</url>
|
|
</pluginRepository> -->
|
|
<!-- required for Maven and Ant AWS dependency -->
|
|
|
|
<pluginRepository>
|
|
<id>springsource-maven-release</id>
|
|
<name>SpringSource Maven Release Repository</name>
|
|
<url>https://repository.springsource.com/maven/bundles/release</url>
|
|
</pluginRepository>
|
|
|
|
</pluginRepositories>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spring-releases</id>
|
|
<name>Spring Releases</name>
|
|
<url>https://repo.spring.io/release</url>
|
|
<snapshots><enabled>false</enabled></snapshots>
|
|
</repository>
|
|
<repository>
|
|
<id>spring-milestones</id>
|
|
<name>Spring Milestones</name>
|
|
<url>https://repo.spring.io/milestone</url>
|
|
</repository>
|
|
<repository>
|
|
<id>spring-snapshots</id>
|
|
<name>Spring Milestones</name>
|
|
<url>https://repo.spring.io/snapshot</url>
|
|
<snapshots><enabled>true</enabled></snapshots>
|
|
</repository>
|
|
</repositories>
|
|
</project>
|