2018-07-13

Maven pom.xml production deployment .




<!-- Maven compiler plugin -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>${version.jdk}</source>
<target>${version.jdk}</target>
</configuration>
</plugin>


I think this [Maven compiler plugin] above will process files from /src/main/** to /target/




<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>config/**</exclude>
<exclude>**/*.xml</exclude>
<exclude>**/*.properties</exclude>
</excludes>
</configuration>
</plugin>


This [Maven jar plugin] above will process files from /src/main/** to /target/








Reference URLs:
  1. Move resource files to target and exclude from jar

    https://stackoverflow.com/questions/39705917/move-resource-files-to-target-and-exclude-from-jar
  2. How to Exclude properties file from jar file?

    https://stackoverflow.com/questions/2728993/how-to-exclude-properties-file-from-jar-file









Google Referrals