diff options
author | 2018-11-07 18:36:41 -0500 | |
---|---|---|
committer | 2018-11-07 18:36:41 -0500 | |
commit | f1e9c646787225109f6c7ee66a088889056f89ee (patch) | |
tree | 28e767d1184c0dfe40a8405cc4a120048df74e83 /ecomp-sdk/epsdk-app-os/pom.xml | |
parent | 97e29f1fe153f283133c560642a9c5fca16c87a0 (diff) |
Bootstrapping hybrid app (Angular v1 and v6)
Issue-ID: PORTAL-356
Change-Id: I1ee7f6a51eb71dff2128a112afdefff5776f2ffe
Change-Id: I1ee7f6a51eb71dff2128a112afdefff5776f2ffe
Signed-off-by: Saravanan, Madheswaran <msaravanan@in.ibm.com>
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> |