Good day to you, George,
My guess is that maven got confused since you declared maven-war-plugin
twice in the build section. You may want to combine both execution under one
<plugin> and differentiate one from the other by using an <id/>.
Something like this...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<executions>
<execution>
<id>build-directory-tree</id>
<phase>process-resources</phase>
<goals>
<goal>exploded</goal>
</goals>
</execution>
<execution>
<id>build-war</id>
<phase>package</phase>
<goals>
<goal>war</goal>
</goals>
<configuration>
<webXml>${basedir}/target/jspweb.xml</webXml>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>1.4.6</version>
<configuration>
<warSourceDirectory>
${basedir}/target/${artifactId}-${version}
</warSourceDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Cheers,
Franz
George Berger wrote:
>
>
> Jörg Schaible wrote:
>>
>>
>> Can't you simply exclude the web.xml from the overlay?
>>
>> <plugin>
>> <artifactId>maven-war-plugin</artifactId>
>> <configuration>
>> <dependentWarExcludes>WEB-INF/web.xml</dependentWarExcludes>
>> </configuration>
>> </plugin>
>>
>> - Jörg
>>
>>
>
> Hi Jörg -
>
> Thanks for the suggestion. I tried it but got the same result.
>
> What I want the plugin to do is use the web.xml file generated by jspc,
> which is what this configuration tries to do:
>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <webXml>${basedir}/target/jspweb.xml</webXml>
> </configuration>
>
> I found that this works fine if I'm just doing the precompile and the war
> packaging -- the jspc-generated jspweb.xml file gets used as the web.xml
> in the packaged war. But when I add the additional declaration to the pom
> to run the war:exploded goal during the process-resources phase, the final
> packaging uses the web.xml from the src/main/webapp tree instead. Any
> idea why the above configuration works in the first case but not in the
> second?
>
> George
>
>
--
View this message in context:
http://www.nabble.com/jsp-precompile-with-war-overlay-tf3187860s177.html#a8869466
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]