Hi! Why not do it the Maven way and create a module with the generated sources and make the other (2?) modules dependant of it? This would eliminate the need of a hack that copy files from one module to another.
/Thomas On Wed, Jul 21, 2010 at 15:49, Will Hoover <java.whoo...@gmail.com> wrote: > I have a multi-module project where one of the modules needs to copy > internally generated file(s) that do not come from any maven-aware resources > from a module to a WAR module for inclusion. The following works, but it > seems like a hack using <directory> to get to the module where the file(s) > exist. Is there a better way? > > > WAR module: > <plugin> > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-resources-plugin</artifactId> > <executions> > <execution> > <phase>validate</phase> > <goals> > > <goal>copy-resources</goal> > </goals> > <configuration> > > <outputDirectory>${project.build.directory}/${project.build.finalName}</outp > utDirectory> > <resources> > <resource> > > <directory>${basedir}/../other-module-with-generated-files/target</directory >> > > <filtering>false</filtering> > </resource> > </resources> > </configuration> > </execution> > </executions> > </plugin> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Sundberg M. Sc. in Computer Science Mobile: +46 70 767 33 15 Blog: http://thomassundberg.wordpress.com/ Twitter: @thomassundberg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org