I have a project that has resources inside the same package as some java classes.
The project structure is something like:
src
main
java
nl
project
someTitle.java
someTitle.css
In my pom.xml I have included the following snippet:
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.class</exclude>
</excludes>
</resource>
</resources>
When I do a [mvn clean verify] the .css-file does not get included in my war package. How come?
src/main/resourcesfor that. It will be autoincluded from there. Maven filterssrc/main/javafor non-java files./src/main/java. Resources should be under/src/main/resources