diff options
Diffstat (limited to 'ecomp-sdk/epsdk-app-os/pom.xml')
-rw-r--r-- | ecomp-sdk/epsdk-app-os/pom.xml | 123 |
1 files changed, 121 insertions, 2 deletions
diff --git a/ecomp-sdk/epsdk-app-os/pom.xml b/ecomp-sdk/epsdk-app-os/pom.xml index 21f75af3..7ccc1776 100644 --- a/ecomp-sdk/epsdk-app-os/pom.xml +++ b/ecomp-sdk/epsdk-app-os/pom.xml @@ -42,6 +42,17 @@ <plugins> <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>3.0.0</version> + <configuration> + <filesets> + <fileset> + <directory>${basedir}/ngapp/app/dist</directory> + </fileset> + </filesets> + </configuration> + </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <!-- parent specifies the <version>2.19.1</version> --> @@ -120,13 +131,120 @@ </execution> </executions> </plugin> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>2.5</version> + <executions> + <execution> + <id>copy-angularjs-step1</id> + <phase>process-resources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${basedir}/ngapp</outputDirectory> + <resources> + <resource> + <directory>../epsdk-app-overlay/src/main/webapp/ngapp</directory> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>com.github.eirslett</groupId> + <artifactId>frontend-maven-plugin</artifactId> + <version>1.6</version> + + <configuration> + <nodeVersion>v8.11.3</nodeVersion> + <npmVersion>5.6.0</npmVersion> + <workingDirectory>${basedir}/ngapp</workingDirectory> + </configuration> + <executions> + <execution> + <id>install node and npm</id> + <phase>compile</phase> + <goals> + <goal>install-node-and-npm</goal> + </goals> + </execution> - <!-- add version number to manifest --> + <execution> + <id>npm install</id> + <phase>compile</phase> + <goals> + <goal>npm</goal> + </goals> + </execution> + + <execution> + <id>npm run build</id> + <phase>compile</phase> + <goals> + <goal>npm</goal> + </goals> + + <configuration> + <arguments>run build</arguments> + </configuration> + </execution> + + </executions> + </plugin> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>2.5</version> + <executions> + + <execution> + <id>copy-angular-final-step2</id> + <phase>prepare-package</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${basedir}/target/epsdk-app-os/app</outputDirectory> + <resources> + <resource> + <directory>${basedir}/ngapp/dist</directory> + </resource> + </resources> + </configuration> + </execution> + + </executions> + </plugin> + + <!-- + <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>2.5</version> + <executions> + <execution> + <id>auto-clean-ng</id> + <phase>prepare-package</phase> + <goals> + <goal>clean</goal> + </goals> + <configuration> + <filesets> + <fileset> + <directory>${basedir}/target/epsdk-app-os/ngapp</directory> + </fileset> + </filesets> + </configuration> + </execution> + </executions> + </plugin> + --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> - <version>2.0.2</version> + <version>3.2.2</version> <configuration> <archive> <manifest> @@ -143,6 +261,7 @@ <artifactId>epsdk-app-overlay</artifactId> </overlay> </overlays> + <packagingExcludes>**/ngapp</packagingExcludes> </configuration> </plugin> |