If you want to add more resources to copy during the resource generation plugin, you can change the resource folders used by your assembly. The project.build.resources property controls which folders are searched for resources. You can add:
<project> ... <build> ... <resources> <resource> <directory>src/main/resources</directory> </resource> <resource> <directory>src/main/webApp</directory> <includes> <include>*.css</include> <include>*.js</include>
Then you started mvn resources to copy the files.
This approach is that these files will always be copied during the resource phase of any assembly. You can get around this by using the copy-resources target instead of resources. In this case, you will use the following configuration:
<build> <plugins> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.5</version> <executions> <execution> <id>copy-web-resources</id> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/webApp</outputDirectory> <resources> <resource> <directory>src/main/webApp</directory> <includes> <include>*.css</include> <include>*.js</include>
Then you can run mvn resources:copy-resources to copy the files.
source share