David Jencks wrote:
I hacked around on the pluto build and got it to complete, see rev 774969.
<snip/>
The m-r-r-p doesn't do too well with war files, it puts the
license/notice files in WEB-INF/classses/META-INF where they appear (to
me at least) to apply to the classes in WEB-INF/classes rather than to
the entire war. We need to do something either to relocate the legal
files or make the ianal plugin happier with their location.
We encountered the same problem for APA war projects.
I've found a "fix" or better, workaround, to get the files put in the right
place.
The following works for the APA dbbrowser/dbbrowser-war project:
<build>
<finalName>apa-dbbrowser</finalName>
<plugins>
<plugin>
<!-- workaround for war processing of m-r-r-plugin causing the
generated NOTICE and LICENSE file to be put under
WEB-INF/classes/META-INF -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/${build.finalName}</outputDirectory>
<attached>false</attached>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Regards,
Ate