Skip to content

Instantly share code, notes, and snippets.

@brianyu0717
Last active March 18, 2016 23:51
Show Gist options
  • Select an option

  • Save brianyu0717/4dc606a2180f81455495 to your computer and use it in GitHub Desktop.

Select an option

Save brianyu0717/4dc606a2180f81455495 to your computer and use it in GitHub Desktop.
Spring Boot Maven build plugins for EmberJs
<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>
@brianyu0717
Copy link
Author

Set up ember project under baseDir/src/main/emberprojectname
Remember to set embercli to skipGit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment