Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Using copy-resource, which works with directories plugin
  • Loading branch information
fjtirado authored and gmunozfe committed Nov 26, 2024
1 parent 9803366 commit b6dc30b
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,39 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/src/main/resources/shared</outputDirectory>
<resources>
<resource>
<directory>${common.test.resources.dir}</directory>
<includes>
<include>**/*.bpmn</include>
<include>**/*.sw.json</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/src/main/resources/shared</directory>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>${common.test.resources.dir}</directory>
<includes>
<include>**/*.bpmn</include>
<include>**/*.sw.json</include>
</includes>
</resource>
</resources>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,39 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/src/main/resources/shared</outputDirectory>
<resources>
<resource>
<directory>${common.test.resources.dir}</directory>
<includes>
<include>**/*.bpmn</include>
<include>**/*.sw.json</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/src/main/resources/shared</directory>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>${common.test.resources.dir}</directory>
<includes>
<include>**/*.bpmn</include>
<include>**/*.sw.json</include>
</includes>
</resource>
</resources>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${version.io.quarkus}</version>
<configuration>
<skipOriginalJarRename>true</skipOriginalJarRename>
</configuration>
Expand All @@ -91,18 +90,39 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/src/main/resources/shared</outputDirectory>
<resources>
<resource>
<directory>${common.test.resources.dir}</directory>
<includes>
<include>**/*.bpmn</include>
<include>**/*.sw.json</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/src/main/resources/shared</directory>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>${common.test.resources.dir}</directory>
<includes>
<include>**/*.bpmn</include>
<include>**/*.sw.json</include>
</includes>
</resource>
</resources>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -94,24 +94,10 @@
</dependencies>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>${common.test.resources.dir}</directory>
<includes>
<include>**/*.bpmn</include>
<include>**/*.sw.json</include>
</includes>
</resource>
</resources>

<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${version.io.quarkus}</version>
<configuration>
<skipOriginalJarRename>true</skipOriginalJarRename>
</configuration>
Expand All @@ -123,6 +109,39 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/src/main/resources/shared</outputDirectory>
<resources>
<resource>
<directory>${common.test.resources.dir}</directory>
<includes>
<include>**/*.bpmn</include>
<include>**/*.sw.json</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/src/main/resources/shared</directory>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit b6dc30b

Please sign in to comment.