Last active
December 21, 2015 15:59
-
-
Save ae6rt/6330516 to your computer and use it in GitHub Desktop.
Deploy Maven artifacts to Amazon S3. Reference: https://github.com/SpringSource/aws-maven
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The POM of the app that would publish artifacts would look like this: | |
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.petrovic</groupId> | |
<artifactId>maven-s3-lab</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>maven-s3-lab</name> | |
<url>http://maven.apache.org</url> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<distributionManagement> | |
<repository> | |
<id>aws-release</id> | |
<name>AWS Release Repository</name> | |
<url>s3://org.petrovic.maven/release</url> | |
</repository> | |
<snapshotRepository> | |
<id>aws-snapshot</id> | |
<name>AWS Snapshot Repository</name> | |
<url>s3://org.petrovic.maven/snapshot</url> | |
</snapshotRepository> | |
</distributionManagement> | |
<build> | |
<extensions> | |
<extension> | |
<groupId>org.springframework.build</groupId> | |
<artifactId>aws-maven</artifactId> | |
<version>4.4.0.RELEASE</version> | |
</extension> | |
</extensions> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>3.8.1</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
</project> | |
The POM of the app that wants to use this artifact would contain this: | |
<repositories> | |
<repository> | |
<id>s3-snapshot</id> | |
<url>http://org.petrovic.maven.s3-website-us-east-1.amazonaws.com/snapshot</url> | |
</repository> | |
<repository> | |
<id>s3-release</id> | |
<url>http://org.petrovic.maven.s3-website-us-east-1.amazonaws.com/release</url> | |
</repository> | |
</repositories> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment