spring-data-dynamodb
spring-data-dynamodb copied to clipboard
The Specification-Version property of the maven-jar-plugin is outdated
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
- Configure a spring boot project according to your documentation, and check the log
- 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