Skip to content
Jeff Caddel edited this page May 13, 2013 · 54 revisions

Configuring Maven to use the wagon is very simple.

You will need 3 things from Amazon:

  1. S3 bucket name - For example, the Kuali S3 bucket is called - maven.kuali.org
  2. AWS Access Key ID - For example - JKCAIZQRXJVCMWNYAZ2Q - for reference only, not a real id.
  3. AWS Secret Access Key - For example - aIKJN9sL9cu3GsHoti0mqcbH4NNLDCthsn0lms1x - for reference only, not a real secret key.

Once you have that information follow these 3 steps to configure Maven to use the wagon.

  1. Add this to the build section of a pom:

    org.kuali.maven.wagons maven-s3-wagon [S3 Wagon Version]
  2. Add this to the distribution management section:

    s3.site s3://[S3 Bucket Name]/site s3.release s3://[S3 Bucket Name]/release s3.snapshot s3://[S3 Bucket Name]/snapshot
  3. Add this to ~/.m2/settings.xml

    s3.site [AWS Access Key ID] [AWS Secret Access Key] s3.release [AWS Access Key ID] [AWS Secret Access Key] s3.snapshot [AWS Access Key ID] [AWS Secret Access Key]

If things are setup correctly, $ mvn deploy will produce output similar to this:

[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ kuali-example ---
[INFO] Logged in - maven.kuali.org
Uploading: s3://maven.kuali.org/release/org/kuali/common/kuali-example/1.0.0/kuali-example-1.0.0.jar
[INFO] Logged off - maven.kuali.org
[INFO] Transfers: 1 Time: 2.921s Amount: 7.6M Throughput: 2.6 MB/s
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
Clone this wiki locally