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

The Specification-Version property of the maven-jar-plugin is outdated #287

Open
ls-cyril-grosset opened this issue Apr 29, 2021 · 0 comments

Comments

@ls-cyril-grosset
Copy link

ls-cyril-grosset commented Apr 29, 2021

Expected Behavior

When the DynamoDBREpositoryFactory is invoked, the version of spring-data-commons referenced in the pom.xml file should be recognized as the correct one.

Actual Behavior

When the DynamoDBREpositoryFactory is invoked, the following warning is logged:

This Spring Data DynamoDB implementation might not be compatible with the available Spring Data classes on the classpath!
NoDefClassFoundExceptions or similar might occur!

Because the version in the manifest file, doesn't match the version of the actual dependency.

Steps to Reproduce the Problem

  1. Configure a spring boot project according to your documentation, and check the log
  2. You can also just check your pom.xml file where this is the spring data version you reference
    <spring-data.version>2.3.0.RELEASE</spring-data.version>
    while this is what you put in the manifest file:
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <configuration>
        <archive>
            <manifest>
                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
            <manifestEntries>
                <Specification-Title>Spring Data</Specification-Title>
                <Specification-Version>2.2</Specification-Version>
            </manifestEntries>
        </archive>
    </configuration>
</plugin>

Specifications

  • Spring Data DynamoDB Version: 5.2.5 (2.2)
  • Spring Data Version: 2.3.0.RELEASE
  • AWS SDK Version: 1.11.664
  • Java Version: 11.0.3 - OpenJDK 64-Bit Server VM 11.0.3+7-LTS
  • Platform Details: Mac OS X 10.15.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant