Skip to content

Commit c3d2b29

Browse files
authored
Clean before building javadocs, because third-party-jackson-core's mvn package is not idempotent. (#2607)
This fixes an error where release-javadoc.yml fails with "Error creating shaded jar: duplicate entry: META-INF/services/software.amazon.awssdk.thirdparty.jackson.core.JsonFactory"
1 parent b2d79b9 commit c3d2b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildspecs/release-javadoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ phases:
1515
build:
1616
commands:
1717
- mvn install -P quick -T1C
18-
- mvn install javadoc:aggregate -B -Ppublic-javadoc -Dcheckstyle.skip -Dspotbugs.skip -DskipTests -Ddoclint=none -pl '!:protocol-tests,!:protocol-tests-core,!:codegen-generated-classes-test,!:sdk-benchmarks,!:module-path-tests,!:test-utils,!:http-client-tests,!:tests-coverage-reporting'
18+
- mvn clean install javadoc:aggregate -B -Ppublic-javadoc -Dcheckstyle.skip -Dspotbugs.skip -DskipTests -Ddoclint=none -pl '!:protocol-tests,!:protocol-tests-core,!:codegen-generated-classes-test,!:sdk-benchmarks,!:module-path-tests,!:test-utils,!:http-client-tests,!:tests-coverage-reporting'
1919
- RELEASE_VERSION=`mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec`
2020
-
2121
- aws s3 sync target/site/apidocs/ $DOC_PATH/$RELEASE_VERSION/

0 commit comments

Comments
 (0)