Fix issue with packaging roadmap module

This commit is contained in:
George Kalampokis 2022-05-31 12:26:09 +03:00
parent f8e54af4fa
commit 78b030b12e
3 changed files with 82 additions and 42 deletions

View File

@ -347,6 +347,12 @@
</property> </property>
</activation> </activation>
</profile> </profile>
<profile>
<id>roadmap</id>
<properties>
<packaging.type>jar</packaging.type>
</properties>
</profile>
</profiles> </profiles>
</project> </project>

View File

@ -14,6 +14,7 @@
<properties> <properties>
<maven.compiler.source>11</maven.compiler.source> <maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target> <maven.compiler.target>11</maven.compiler.target>
<start-class>eu.eudat.migration.DMPRoadmapMigration</start-class>
</properties> </properties>
<dependencies> <dependencies>
@ -30,21 +31,11 @@
</dependencies> </dependencies>
<build> <build>
<finalName>${project.artifactId}-${project.version}</finalName> <finalName>${project.artifactId}-${project.version}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
</resource>
</resources>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version> <version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

View File

@ -122,38 +122,81 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <profiles>
<finalName>${project.artifactId}-${project.version}</finalName> <profile>
<resources> <id>devel</id>
<resource> <build>
<directory>src/main/ui-resources</directory> <finalName>${project.artifactId}-${project.version}</finalName>
<excludes> <resources>
<exclude>node_modules/**</exclude> <resource>
</excludes> <directory>src/main/ui-resources</directory>
</resource> <excludes>
<resource> <exclude>node_modules/**</exclude>
<directory>src/main/resources</directory> </excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource> </resource>
</resources> </resources>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version> <version>3.8.1</version>
<configuration> <configuration>
<source>1.8</source> <source>1.8</source>
<target>1.8</target> <target>1.8</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<properties>
<start-class>eu.eudat.EuDatApplication</start-class>
</properties>
</profile>
<profile>
<id>production</id>
<build>
<finalName>${project.artifactId}-${project.version}</finalName>
<resources>
<resource>
<directory>src/main/ui-resources</directory>
<excludes>
<exclude>node_modules/**</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<properties>
<start-class>eu.eudat.EuDatApplication</start-class>
</properties>
</profile>
</profiles>
<properties>
<start-class>eu.eudat.EuDatApplication</start-class>
</properties>
</project> </project>