cescoffier / maven-play2-plugin

A Maven Plugin to build Play2 applications
Apache License 2.0
49 stars 41 forks source link

Building WAR creates it twice, and in different forms #45

Open jbrugge opened 11 years ago

jbrugge commented 11 years ago

I am wanting to create a WAR for Tomcat 6, and have configured my Build.scala and plugins.sbt file according to the instructions at https://github.com/dlecan/play2-war-plugin/wiki/Configuration, based on the version of Play I am using (v2.1.0) and the target container (servlet 2.5).

When I run "mvn clean package", I am seeing a WAR built twice:

This second WAR is built in the same place as the first WAR, so it replaces it in the target dir.

Curiously, if I add the "false" setting to the plugin configuration, then the first (correct) WAR is still built during the 'package' phase, but the second (incorrect) WAR is suppressed during the 'package-war' phase.

I'm using the latest plugin (1.2.2) under Java 6, Maven 3.0.3.

cmicali commented 11 years ago

jbrugge - could you mention which setting you used to disable this?

Would be great to get a fix for this since the UlgifyJS step is so slow, it would shave 5-10 minutes off our build.

jbrugge commented 11 years ago

I had set the "buildWar" property to false in the plugin "configuration" element.