Normally we have some files in the resources folder for our java project(s)
in some scenarios, those files are not to be included in the final jar
so the configuration below demonstrates how to exclude all files in resources with Maven.
Done!!
in some scenarios, those files are not to be included in the final jar
so the configuration below demonstrates how to exclude all files in resources with Maven.
<build> <!-- exclude all files in resources--> <resources> <resource> <directory>src/main/resources</directory> <excludes> <exclude>**/**</exclude> </excludes> <filtering>false</filtering> </resource> </resources>
<!-- other configurations/plugins in the pom.xml-->
</build>
Done!!
No comments:
Post a Comment