Skip to content

Commit

Permalink
[DSC-963] Fixes dspace-server-webapp target folder
Browse files Browse the repository at this point in the history
  • Loading branch information
vins01-4science committed Dec 27, 2023
1 parent b35b837 commit c1d6090
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
35 changes: 35 additions & 0 deletions dspace-server-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,41 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.1.0</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${root.basedir}/dspace/config/dspace.cfg</file>
<file>${root.basedir}/dspace/config/local.cfg</file>
</files>
<quiet>true</quiet>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/static/**</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down
26 changes: 26 additions & 0 deletions dspace/modules/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</parent>

<properties>
<dspace.version>7.6-SNAPSHOT</dspace.version>
<!-- This is the path to the root [dspace-src] directory. -->
<root.basedir>${basedir}/../../..</root.basedir>
</properties>
Expand Down Expand Up @@ -67,6 +68,31 @@
</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</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.dspace</groupId>
<artifactId>dspace-server-webapp</artifactId>
<version>${dspace.version}</version>
<type>jar</type>
<includes>**/static/**,**/*.properties</includes>
<outputDirectory>${project.build.directory}/additions</outputDirectory>
</artifactItem>
</artifactItems>
</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 c1d6090

Please sign in to comment.