Skip to content

Instantly share code, notes, and snippets.

@ludo1026
Created May 29, 2015 17:09
Show Gist options
  • Save ludo1026/02f1ff60bd52e3138e9b to your computer and use it in GitHub Desktop.
Save ludo1026/02f1ff60bd52e3138e9b to your computer and use it in GitHub Desktop.
Maven & Yeoman - War - Application Java classique - pom.xml
<profiles>
<profile>
<id>prod</id>
<build>
<plugins>
<plugin>
<groupid>com.github.trecloux</groupid>
<artifactid>yeoman-maven-plugin</artifactid>
<version>0.4</version>
<executions>
<execution>
<id>run-frontend-build</id>
<phase>generate-resources</phase>
<goals>
<goal>build</goal>
</goals>
<configuration>
<buildtool>grunt</buildtool>
<buildargs>build --force --no-color</buildargs>
</configuration>
</execution>
</executions>
<configuration>
<yeomanprojectdirectory>${project.basedir}/yo</yeomanprojectdirectory>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<webResources>
<resource>
<directory>yo/dist/public</directory>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment