How do I exclude particular resources from being processed?
Author: Deron Eriksson
Description: This maven tutorial describes how to exclude particular resources from being processed.
Tutorial created using:
Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1)
(Continued from page 1) Now, I'll perform a "mvn clean process-resources" on the "aproject" project. The console output is shown here. Console output from 'mvn clean process-resources' on 'aproject'[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building aproject [INFO] task-segment: [clean, process-resources] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory C:\dev\workspace\aproject\target [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Tue Feb 19 04:28:58 PST 2008 [INFO] Final Memory: 3M/6M [INFO] ------------------------------------------------------------------------ If we examine the project after the mavenSW command has executed, we can see that the .txt files copied over into the target/classes directory but that the .htm files are not present in target/classes since they were excluded. |