Last active
March 18, 2016 23:51
-
-
Save brianyu0717/4dc606a2180f81455495 to your computer and use it in GitHub Desktop.
Spring Boot Maven build plugins for EmberJs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <executions> | |
| <execution> | |
| <id>build prod version of static site</id> | |
| <phase>compile</phase> | |
| <goals> | |
| <goal>exec</goal> | |
| </goals> | |
| <configuration> | |
| <executable>${basedir}/src/main/emberjs/static-site/build-prod.bat</executable> | |
| <workingDirectory>${basedir}/src/main/emberjs/static-site</workingDirectory> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-resources-plugin</artifactId> | |
| <version>2.7</version> | |
| <executions> | |
| <execution> | |
| <id>copy-resources</id> | |
| <phase>compile</phase> | |
| <goals> | |
| <goal>copy-resources</goal> | |
| </goals> | |
| <configuration> | |
| <outputDirectory>${basedir}/target/classes/static</outputDirectory> | |
| <resources> | |
| <resource> | |
| <directory>${basedir}/src/main/emberjs/static-site/dist</directory> | |
| <filtering>false</filtering> | |
| </resource> | |
| </resources> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set up ember project under baseDir/src/main/emberprojectname
Remember to set embercli to skipGit