On 9/6/06, Ted Husted <[EMAIL PROTECTED]> wrote:
It didn't show my changes. I'm not sure if it's showing anything from the POM under apps. If I move the changes down to the blank POM, it works just fine.
I pasted the copy-sources config into struts-apps-parent, and then from struts2/apps/blank, ran 'mvn install'. I specifically did not install the struts-apps-parent pom, just to see whether Maven would pick up the changes from the filesystem w/o installing it. It's working fine here, both from 'apps/blank' and from 'apps'. $ pwd /cygdrive/c/svn/struts/current/struts2/apps/blank $ mvn install ... $ ls -R target/struts2-blank/WEB-INF/src target/struts2-blank/WEB-INF/src: java target/struts2-blank/WEB-INF/src/java: example target/struts2-blank/WEB-INF/src/java/example: ExampleSupport.java HelloWorld.java Login.java This will wrap, but just so we're sure we're both using the same config: $ svn diff Index: pom.xml =================================================================== --- pom.xml (revision 440812) +++ pom.xml (working copy) @@ -142,6 +142,26 @@ </configuration> </configuration> </plugin> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>copy-sources</id> + <phase>process-sources</phase> + <configuration> + <tasks> + <copy todir="${project.build.directory}/${pom.artifactId}/WEB-INF/src/java" + failonerror="false"> + <fileset dir="${basedir}/src/main/java"/> + </copy> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> <finalName>${pom.artifactId}</finalName> Then I tried building all the apps from struts2/apps: $ pwd /cygdrive/c/svn/struts/current/struts2/apps $ mvn clean; mvn install ... $ ls -R blank/target/struts2-blank/WEB-INF/src blank/target/struts2-blank/WEB-INF/src: java blank/target/struts2-blank/WEB-INF/src/java: example blank/target/struts2-blank/WEB-INF/src/java/example: ExampleSupport.java HelloWorld.java Login.java I don't know why it isn't working for you from 'apps', but if you can get it to work by duplicating the config in each of the example apps' poms, I'd just do that, with a comment so we can fix it later. -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]