Allow Maven to build the frontend (#857)

This commit is contained in:
Jon Koops 2021-07-16 10:43:59 +02:00 committed by GitHub
parent b5da41c651
commit df8118c707
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 4 deletions

View file

@ -1,5 +1,6 @@
# See: https://github.com/github/gitignore/blob/master/Maven.gitignore
src/
node/
# https://github.com/github/gitignore/blob/master/Maven.gitignore
target/
pom.xml.tag
pom.xml.releaseBackup

View file

@ -5,9 +5,7 @@ The Maven build prepares the admin console to be deployed as a theme on the Keyc
# Build Instructions
```bash
$> npm run build
$> cd build
$> mvn install
mvn install
```
# Deployment

View file

@ -54,6 +54,38 @@
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.9.1</version>
<executions>
<execution>
<goals>
<goal>install-node-and-npm</goal>
</goals>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
</execution>
<execution>
<id>npm run build</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
<configuration>
<nodeVersion>v16.5.0</nodeVersion>
<workingDirectory>../</workingDirectory>
<installDirectory>.</installDirectory>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>