Trying to exlcude a folder src/main/resources/scripts/ from my build but the following does not work:
src/main/resources/scripts/
<build> <resources> <resource> <directory>src/main/resources</directory> <excludes> <exclude>src/main/resources/scripts/</exclude> </excludes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <excludes> <exclude>src/main/resources/scripts/</exclude> </excludes> <source>1.7</source> <target>1.7</target> </configuration> </plugin> </plugins> </build>
Any ideas?
Instead try:
<exclude>scripts/**</exclude>
The exclude is based on directory, so your construction would exclude
src/main/resources/src/main/resources/scripts
1.4m articles
1.4m replys
5 comments
57.0k users