Also deploy top level artifacts to S3
This commit adds the S3 wagon release profile also to dev-tools and rest-api-spec and makes the actual repository path / bucket configurable.
This commit is contained in:
parent
4010e7e9a7
commit
dd1b0d84a6
|
@ -13,6 +13,7 @@
|
|||
</parent>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<elasticsearch.s3.repository>s3://download.elasticsearch.org/elasticsearch/stageing/</elasticsearch.s3.repository>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -35,4 +36,40 @@
|
|||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<build>
|
||||
<!-- sign the artifacts with GPG -->
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<version>1.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<keyname>${gpg.keyname}</keyname>
|
||||
<passphrase>${gpg.passphrase}</passphrase>
|
||||
<defaultKeyring>${gpg.keyring}</defaultKeyring>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>aws-release</id>
|
||||
<name>AWS Release Repository</name>
|
||||
<url>${elasticsearch.s3.repository}</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
|
8
pom.xml
8
pom.xml
|
@ -48,6 +48,7 @@
|
|||
<slf4j.version>1.6.2</slf4j.version>
|
||||
<log4j.version>1.2.17</log4j.version>
|
||||
<jacoco.version>0.7.2.201409121644</jacoco.version>
|
||||
<elasticsearch.s3.repository>s3://download.elasticsearch.org/elasticsearch/stageing/</elasticsearch.s3.repository>
|
||||
|
||||
<!-- Build resources properties -->
|
||||
<elasticsearch.tools.directory>${project.build.directory}/dev-tools</elasticsearch.tools.directory>
|
||||
|
@ -1318,13 +1319,8 @@ org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UT
|
|||
<repository>
|
||||
<id>aws-release</id>
|
||||
<name>AWS Release Repository</name>
|
||||
<url>s3://download.elasticsearch.org/elasticsearch/staging</url>
|
||||
<url>${elasticsearch.s3.repository}</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>aws-snapshot</id>
|
||||
<name>AWS Snapshot Repository</name>
|
||||
<url>s3://download.elasticsearch.org/elasticsearch/snapshot</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
</profile>
|
||||
<!-- license profile, to generate third party license file -->
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
</parent>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<elasticsearch.s3.repository>s3://download.elasticsearch.org/elasticsearch/stageing/</elasticsearch.s3.repository>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -35,4 +36,40 @@
|
|||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<build>
|
||||
<!-- sign the artifacts with GPG -->
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<version>1.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<keyname>${gpg.keyname}</keyname>
|
||||
<passphrase>${gpg.passphrase}</passphrase>
|
||||
<defaultKeyring>${gpg.keyring}</defaultKeyring>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>aws-release</id>
|
||||
<name>AWS Release Repository</name>
|
||||
<url>${elasticsearch.s3.repository}</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue