File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ phases:
38
38
39
39
- gpg --batch --import /tmp/aws-sdk-common-runtime.key.asc
40
40
- export GPG_PASSPHRASE=$(aws --query "SecretString" secretsmanager get-secret-value --secret-id cd/aws-crt-java-key/password | cut -f2 -d":" | sed -e 's/[\\\"\}]//g')
41
+
42
+ # Java 17 needs special JDK options apparently. It is a known Sonatype issue.
43
+ # Issue link: https://issues.sonatype.org/browse/NEXUS-27902
44
+ - export JDK_JAVA_OPTIONS='--add-opens java.base/java.util=ALL-UNNAMED'
45
+
41
46
build :
42
47
commands :
43
48
- cd $CODEBUILD_SRC_DIR/aws-iot-device-sdk-java-v2/sdk
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ phases:
40
40
- gpg --batch --import /tmp/aws-sdk-common-runtime.key.asc
41
41
- export GPG_PASSPHRASE=$(aws --query "SecretString" secretsmanager get-secret-value --secret-id cd/aws-crt-java-key/password | cut -f2 -d":" | sed -e 's/[\\\"\}]//g')
42
42
- export REPOSITORY_ID=$(cat $CODEBUILD_SRC_DIR_aws_iot_device_sdk_java_v2_jar/repositoryId.txt)
43
+
44
+ # Java 17 needs special JDK options apparently. It is a known Sonatype issue.
45
+ # Issue link: https://issues.sonatype.org/browse/NEXUS-27902
46
+ - export JDK_JAVA_OPTIONS='--add-opens java.base/java.util=ALL-UNNAMED'
47
+
43
48
build :
44
49
commands :
45
50
- cd $CODEBUILD_SRC_DIR/aws-iot-device-sdk-java-v2/sdk
Original file line number Diff line number Diff line change 195
195
<plugin >
196
196
<groupId >org.sonatype.plugins</groupId >
197
197
<artifactId >nexus-staging-maven-plugin</artifactId >
198
- <version >1.6.8 </version >
198
+ <version >1.6.13 </version >
199
199
<extensions >true</extensions >
200
200
<configuration >
201
201
<serverId >ossrh</serverId >
235
235
<plugin >
236
236
<groupId >org.apache.maven.plugins</groupId >
237
237
<artifactId >maven-gpg-plugin</artifactId >
238
- <version >1.5 </version >
238
+ <version >1.6 </version >
239
239
<executions >
240
240
<execution >
241
241
<id >sign-artifacts</id >
245
245
</goals >
246
246
<configuration >
247
247
<keyname >${gpg.keyname} </keyname >
248
+ <gpgArguments >
249
+ <arg >--pinentry-mode</arg >
250
+ <arg >loopback</arg >
251
+ </gpgArguments >
248
252
</configuration >
249
253
</execution >
250
254
</executions >
You can’t perform that action at this time.
0 commit comments