Is it normal that, in AppFuse 2.0.2, resources are processed twice in mvn test phase? In this log, you can see resources:resources and resources:testResources being processed twice. Why?
I am experiencing a problem for maven property substituion in a resource file. I have: myfile.properties: myproperty=${my.pom.property} parent's pom.xml: <my.pom.property>${project.parent.basedir}/hello</my.pom.property> If I run mvn clean process-resources, myproperty in myfile.properties gets replaced correctly. However, if I run mvn clean test, or just mvn clean test-compile, what I get in my myproperty in myfile.properties is${my.pom.property} literally, without being replaced by its value. Am I missing anything? Below is the output of mvn clean test. Josep [INFO] ------------------------------------------------------------------------ [INFO] Building AppFuse Struts 2 Application [INFO] task-segment: [clean, test] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory E:\Projects\portasigma\appfuseTest\mono\xxxx\target [INFO] [aspectj:compile {execution: default}] [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}] [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}] [INFO] [resources:resources {execution: default-resources}] [WARNING] File encoding has not been set, using platform encoding UTF8, i.e. build is platform dependent! [WARNING] Using platform encoding (UTF8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 45 resources [INFO] Copying 2 resources [INFO] Copying 119 resources [INFO] Copying 119 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources {execution: default-testResources}] [INFO] Copying 18 resources [INFO] Copying 11 resources [INFO] Preparing hibernate3:hbm2ddl [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation. [INFO] [aspectj:compile {execution: default}] [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}] [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}] [INFO] [resources:resources {execution: default-resources}] [INFO] Copying 45 resources [INFO] Copying 2 resources [INFO] Copying 119 resources [INFO] Copying 119 resources [INFO] Copying 119 resources [INFO] Copying 119 resources [INFO] [hibernate3:hbm2ddl {execution: default}] ... [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 23 source files to E:\Projects\portasigma\appfuseTest\mono\xxxx\target\test-classes [INFO] [dbunit:operation {execution: test-compile}] [INFO] [surefire:test {execution: default-test}] ...