Skip to content

Commit

Permalink
Merge pull request #45 from infielddigital/mvn-no-front-end-build
Browse files Browse the repository at this point in the history
Add ability to skip the front end build
  • Loading branch information
kevinweber authored Sep 13, 2018
2 parents be0dd68 + d22d0e0 commit 4b1589e
Show file tree
Hide file tree
Showing 4 changed files with 1,683 additions and 1,600 deletions.
46 changes: 45 additions & 1 deletion ui.apps/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pom.xml

In order to run Webpack as part of your Maven build process, Eirik's [frontend-maven-plugin](https://github.com/eirslett/frontend-maven-plugin) offers a convenient solution. It allows you to easily run npm or other tools. Here we use npm and Node 7. For configuration options, check out the plugin's documentation.
In order to run Webpack as part of your Maven build process, Eirik's [frontend-maven-plugin](https://github.com/eirslett/frontend-maven-plugin) offers a convenient solution. It allows you to easily run npm or other tools. Here we use npm and Node v8. For configuration options, check out the plugin's documentation.

```
<!-- ====================================================================== -->
Expand Down Expand Up @@ -49,3 +49,47 @@ In order to run Webpack as part of your Maven build process, Eirik's [frontend-m
</executions>
</plugin>
```

To run a MVN build but skip the front end build, add the following code to the pom.xml. Run a build with `mvn clean install -Pno-frontend`

```
<!-- ====================================================================== -->
<!-- P R O F I L E S -->
<!-- ====================================================================== -->
<profiles>
<!-- Skip Front End Build -->
<profile>
<id>no-frontend</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>*</version>
<executions>
<execution>
<id>install node and npm</id>
<phase>none</phase>
</execution>
<execution>
<id>npm install</id>
<phase>none</phase>
</execution>
<execution>
<id>npm production</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
```
40 changes: 40 additions & 0 deletions ui.apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,46 @@
</plugins>
</build>

<!-- ====================================================================== -->
<!-- P R O F I L E S -->
<!-- ====================================================================== -->
<profiles>

<!-- Skip Front End Build -->
<profile>
<id>no-frontend</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>*</version>

<executions>
<execution>
<id>install node and npm</id>
<phase>none</phase>
</execution>

<execution>
<id>npm install</id>
<phase>none</phase>
</execution>

<execution>
<id>npm production</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>

</profiles>

<!-- ====================================================================== -->
<!-- D E P E N D E N C I E S -->
<!-- ====================================================================== -->
Expand Down
Loading

0 comments on commit 4b1589e

Please sign in to comment.