Skip to content

Commit

Permalink
Moved the maven-resources-plugin plugin from child poms to the pare…
Browse files Browse the repository at this point in the history
…nt pom.
  • Loading branch information
faisalazam committed Jun 22, 2023
1 parent 1a38ee1 commit bf0e65d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 79 deletions.
27 changes: 0 additions & 27 deletions JacocoExecution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,33 +80,6 @@
</configuration>
</plugin>
<!-- End -> This plugin will be used to run Integration tests separately from unit tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<!-- Copy the readme file to the site markdown directory so that a page is generated from it. -->
<id>copy-readme</id>
<phase>pre-site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${src.markdown.directory}</outputDirectory>
<resources>
<resource>
<directory>${basedir}</directory>
<includes>
<include>README.md</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
25 changes: 0 additions & 25 deletions PuttingAllTogether/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,31 +109,6 @@
</configuration>
</plugin>
<!-- End -> Plugin to generate java docs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<!-- Copy the readme file to the site markdown directory so that a page is generated from it. -->
<id>copy-readme</id>
<phase>pre-site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${target.site.directory}/markdown</outputDirectory>
<resources>
<resource>
<directory>${basedir}</directory>
<includes>
<include>README.md</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Start -> Plugin for mvn jacoco:report -> to generate the code coverage report -->
<plugin>
<groupId>org.jacoco</groupId>
Expand Down
27 changes: 0 additions & 27 deletions TestsExecution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,33 +80,6 @@
</configuration>
</plugin>
<!-- End -> This plugin will be used to run Integration tests separately from unit tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<!-- Copy the readme file to the site markdown directory so that a page is generated from it. -->
<id>copy-readme</id>
<phase>pre-site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${src.markdown.directory}</outputDirectory>
<resources>
<resource>
<directory>${basedir}</directory>
<includes>
<include>README.md</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
27 changes: 27 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,33 @@
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<!-- Copy the readme file to the site markdown directory so that a page is generated from it. -->
<id>copy-readme</id>
<phase>pre-site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${src.markdown.directory}</outputDirectory>
<resources>
<resource>
<directory>${basedir}</directory>
<includes>
<include>README.md</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit bf0e65d

Please sign in to comment.