Thanks for your reply, but unfortunately the module that I'm attempting to
copy file(s) from has a set packaging that is not a WAR :/

-----Original Message-----
From: Thomas Markus [mailto:[email protected]] 
Sent: Wednesday, July 21, 2010 10:01 AM
To: Maven Users List
Subject: Re: Copy target file from another module

  Hi,

create a war with your generated sources and use it as a war overlay

regards
Thomas


Am 21.07.2010 15:49, schrieb Will Hoover:
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to