Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to skip the front end build #45

Merged
merged 4 commits into from
Sep 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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