Created
August 3, 2020 08:54
-
-
Save iamvickyav/c92629319fa041ddb646f6ea1fa0ac11 to your computer and use it in GitHub Desktop.
This file contains 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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<artifactId>maven-clean-plugin</artifactId> | |
<version>2.5</version> | |
<configuration> | |
<filesets> | |
<fileset> | |
<directory>src/main/web/dist</directory> | |
<includes> | |
<include>**</include> | |
</includes> | |
</fileset> | |
<fileset> | |
<directory>target</directory> | |
<includes> | |
<include>**</include> | |
</includes> | |
</fileset> | |
</filesets> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>com.github.eirslett</groupId> | |
<artifactId>frontend-maven-plugin</artifactId> | |
<version>1.9.1</version> | |
<configuration> | |
<nodeVersion>v10.15.0</nodeVersion> | |
<workingDirectory>src/main/web/</workingDirectory> | |
</configuration> | |
<executions> | |
<execution> | |
<id>install node and npm</id> | |
<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> | |
<execution> | |
<id>prod</id> | |
<goals> | |
<goal>npm</goal> | |
</goals> | |
<configuration> | |
<arguments>run-script build</arguments> | |
</configuration> | |
<phase>generate-resources</phase> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
<resources> | |
<resource> | |
<directory>src/main/web/dist/angular-app</directory> | |
<targetPath>static</targetPath> | |
</resource> | |
<resource> | |
<directory>src/main/resources</directory> | |
<targetPath>.</targetPath> | |
</resource> | |
</resources> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment