Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module pulling in an old version of the SDK #1787

Closed
heff1118 opened this issue Oct 17, 2018 · 2 comments
Closed

Module pulling in an old version of the SDK #1787

heff1118 opened this issue Oct 17, 2018 · 2 comments
Labels
investigating This issue is being investigated and/or work is in progress to resolve the issue. response-requested Waiting on additional info or feedback. Will move to "closing-soon" in 5 days.

Comments

@heff1118
Copy link

Version 1.11.430 of the secert manager module is bringing in an older version of the core-java-sdk (1.11.125), I noticed this because there was a fix in 1.11.308 that was needed to get around this error: Caused by: java.lang.NoSuchFieldError: SIGNING_REGION

Here is my Pom setup:

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.amazonaws</groupId>
      <artifactId>aws-java-sdk-bom</artifactId>
      <version>1.11.430</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement> 

and

<dependency>
     <groupId>com.amazonaws</groupId>
     <artifactId>aws-java-sdk-secretsmanager</artifactId>
</dependency>

When I run a mvn dependency tree I get a much older version of the core sdk:

[INFO] +- com.amazonaws:aws-java-sdk-secretsmanager:jar:1.11.430:compile
[INFO] |  +- com.amazonaws:aws-java-sdk-core:jar:1.11.125:compile
[INFO] |  |  +- commons-logging:commons-logging:jar:1.2:compile
[INFO] |  |  +- software.amazon.ion:ion-java:jar:1.0.2:compile
[INFO] |  |  \- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.8.11:compile

To resolve I explicitly included the version of the core-sdk that I needed:

<dependency>
	<groupId>com.amazonaws</groupId>
	<artifactId>aws-java-sdk-core</artifactId>
	<version>1.11.430</version>
</dependency>
@varunnvs92 varunnvs92 added the investigating This issue is being investigated and/or work is in progress to resolve the issue. label Oct 17, 2018
@varunnvs92
Copy link
Contributor

I just tested it with 1.11.430 and all the sdk dependencies have resolved to 1.11.430. Did you try with cleaning up the project?
Can you post the output of mvn dependency:tree command to debug further?

@debora-ito
Copy link
Member

Closing this due to inactivity. Please feel free to reopen if you're still experiencing this issue.

@debora-ito debora-ito added response-requested Waiting on additional info or feedback. Will move to "closing-soon" in 5 days. and removed needs-response labels Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating This issue is being investigated and/or work is in progress to resolve the issue. response-requested Waiting on additional info or feedback. Will move to "closing-soon" in 5 days.
Projects
None yet
Development

No branches or pull requests

4 participants