Skip to content

Commit 875dc4f

Browse files
authored
Update Maven Deployment Script (#518)
* deprecate parameter repoUrl * update comments for dependency-plugin
1 parent fc23f40 commit 875dc4f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

codebuild/cd/test-snapshot.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ phases:
2929
build:
3030
commands:
3131
# Verify that the package can be found in the snapshot repo
32-
# note that this uses an ancient version of maven and the maven dependency plugin because we're on trusty
33-
# http://maven.apache.org/plugins-archives/maven-dependency-plugin-2.1/get-mojo.html
34-
- mvn -B dependency:get -DrepoUrl=https://aws.oss.sonatype.org/content/repositories/snapshots -Dartifact=software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk:${PKG_VERSION}-SNAPSHOT -Dtransitive=false
32+
# https://maven.apache.org/plugins/maven-dependency-plugin/get-mojo.html
33+
# The version of maven-dependency-plugin depends on the Codebuild environment.
34+
# Codebuild is using maven-dependency-plugin:3.6.0 with image aws/codebuild/standard:6.0.
35+
- mvn -B dependency:get -DremoteRepositories=https://aws.oss.sonatype.org/content/repositories/snapshots -Dartifact=software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk:${PKG_VERSION}-SNAPSHOT -Dtransitive=false
3536

3637
# Run PubSub sample
3738
- mvn install -Dmaven.test.skip=true

0 commit comments

Comments
 (0)