admin管理员组

文章数量:1400344

I'm writing a Java application that uses some of the libraries from the AWS SDK. I'm using Maven to bring in the SDK libraries I need. The issue I'm seeing is that after I package my code, that transitive dependencies of the AWS SDK (kotlin and scala.util) are being declared in my applications manifest -- which is failing at runtime because they are not provided by another package and I didn't compile them into my own package. I'm new to working with Java. What is the recommended work around for this?

My pom.xml

        <dependency>
            <groupId>software.amazon.awssdk</groupId>
            <artifactId>auth</artifactId>
            <version>2.31.6</version>
        </dependency>
        <dependency>
            <groupId>software.amazon.awssdk</groupId>
            <artifactId>http-client-spi</artifactId>
            <version>2.31.6</version>
        </dependency>
        <dependency>
            <groupId>software.amazon.awssdk</groupId>
            <artifactId>regions</artifactId>
            <version>2.31.6</version>
        </dependency>

My MANIFEST.MF

Import-Package: fasterxml.jackson.core,com.fasterxml.jackson
 .databind,javax.crypto,javax.crypto.spec,javax.inject,javax.ssl,kot
 lin,.slf4j.impl,.springframework.beans.factory,.springframewor
 k.web.client,scala.util,software.amazon.awssdk.crt.auth.credentials,sof
 tware.amazon.awssdk.crt.auth.signing,software.amazon.awssdk.crt.http

本文标签: aws sdkJava AWS SDK adding Kotlin and Scala DependenciesStack Overflow