I use the following plugin configuration to create a jar file, and I want to include src files without java in the same place in the output bank as described here .
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${java.version}</source> <target>${java.version}</target> <compilerArgument>-Xlint:all</compilerArgument> <showWarnings>true</showWarnings> <showDeprecation>true</showDeprecation> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> </includes> <filtering>true</filtering> </resource> </resources> </configuration>
The above does not work and does not do the following:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> </includes> <filtering>true</filtering> </resource> </resources> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${java.version}</source> <target>${java.version}</target> <compilerArgument>-Xlint:all</compilerArgument> <showWarnings>true</showWarnings> <showDeprecation>true</showDeprecation> </configuration> </plugin>
java properties jar maven
Akz
source share