DSpace / DSpace

(Official) The DSpace digital asset management system that powers your Institutional Repository
https://wiki.lyrasis.org/display/DSDOC7x/
BSD 3-Clause "New" or "Revised" License
855 stars 1.29k forks source link

duplicate declaration of maven-dependency-plugin in model org.dspace.modules:server:war #9593

Open saschaszott opened 1 month ago

saschaszott commented 1 month ago

Bug Description

mvn clean on dspace-parent returns a warning

[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.dspace.modules:server:war:8.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin @ line 71, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 

It is caused by the duplicate declaration of maven-dependency-plugin in dspace/modules/server/pom.xml:

https://github.com/DSpace/DSpace/blob/50aaec1ee223991e2a777e3da1186aaf301db11d/dspace/modules/server/pom.xml#L27

https://github.com/DSpace/DSpace/blob/50aaec1ee223991e2a777e3da1186aaf301db11d/dspace/modules/server/pom.xml#L73

Is it possible to merge both declarations in dspace/modules/server/pom.xml?

tdonohue commented 1 month ago

Needs a volunteer. It should be possible to merge these, but someone needs to look into the best way to do so.