Skip to content

Commit

Permalink
Fix multiple declarations of maven-dependency-plugin. Combine two tas…
Browse files Browse the repository at this point in the history
…ks into one declaration
  • Loading branch information
tdonohue committed Nov 14, 2024
1 parent 87a1cf8 commit 9cc078a
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions dspace/modules/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<id>unpack-additions</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack-dependencies</goal>
Expand All @@ -42,6 +42,20 @@
<excludes>META-INF/**</excludes>
</configuration>
</execution>
<execution>
<id>unpack-server</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeScope>runtime</includeScope>
<includeGroupIds>org.dspace</includeGroupIds>
<includeArtifactIds>dspace-server-webapp</includeArtifactIds>
<includes>**/static/**,**/*.properties</includes>
<outputDirectory>${project.build.directory}/additions</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand All @@ -68,26 +82,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeScope>runtime</includeScope>
<includeGroupIds>org.dspace</includeGroupIds>
<includeArtifactIds>dspace-server-webapp</includeArtifactIds>
<includes>**/static/**,**/*.properties</includes>
<outputDirectory>${project.build.directory}/additions</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- This plugin allows us to run a Groovy script in our Maven POM
(see: https://groovy.github.io/gmaven/groovy-maven-plugin/execute.html )
We are generating a OS-agnostic version (agnostic.build.dir) of
Expand Down

0 comments on commit 9cc078a

Please sign in to comment.