Yes. I can reconfigure the source folder and then I reconfigure the war plugin to use the target/min/classes directory as its source.

   <build>
      <plugins>
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>webminifier-maven-plugin</artifactId>
            <version>1.0.1</version>
            <executions>
               <execution>
                  <goals>
                     <goal>minify-js</goal>
                  </goals>
               </execution>
            </executions>
            <configuration>
               <encoding>UTF-8</encoding>
               <sourceFolder>${basedir}/src/main/webapp</sourceFolder>
            </configuration>
         </plugin>
         <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <executions>
               <execution>
                  <goals>
                     <goal>war</goal>
                  </goals>
                  <configuration>
                     <warSourceDirectory>${project.build.directory}/min/classes</warSourceDirectory>
                  </configuration>
               </execution>
            </executions>
         </plugin>
      </plugins>
   </build>

However I've already declared that I'm making a war so why must I reconfigure the source folder? It seems to me that the default behavior should be to use the standard directory layout.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to