From 868767d2aaefb579d58f443581f557056c49683c Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Fri, 2 Mar 2018 17:49:54 -0500 Subject: Modify maven for angular build Using the same plugin that portal has been using to perform angular cli builds in jenkins. Also modifed maven assembly plugin to package the generated angular javascript code into a deployable zip file. Change-Id: Ib26801ca6b4d8dd5195b570bc694d37efe421684 Signed-off-by: Patrick Brady Issue-ID: APPC-627 --- assemble_dist_zip.xml | 40 ++++++++++++++++++++ pom.xml | 101 +++++++++++++++++++++++++++++--------------------- 2 files changed, 98 insertions(+), 43 deletions(-) create mode 100644 assemble_dist_zip.xml diff --git a/assemble_dist_zip.xml b/assemble_dist_zip.xml new file mode 100644 index 0000000..5268faf --- /dev/null +++ b/assemble_dist_zip.xml @@ -0,0 +1,40 @@ + + + + dist + + zip + + false + + + dist + . + + + + + diff --git a/pom.xml b/pom.xml index 8ec1088..dd06451 100644 --- a/pom.xml +++ b/pom.xml @@ -117,60 +117,75 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. --> - maven-assembly-plugin - 2.5.3 + com.github.eirslett + frontend-maven-plugin + + 1.3 - - src/main/assembly/assembly.xml - + v7.7.4 + https://nodejs.org/dist/ + https://nodejs.org/dist/npm/ + ./ - - - org.codehaus.mojo - build-helper-maven-plugin - 1.12 - attach-artifacts - package + install node and npm + + install-node-and-npm + + generate-resources + + + + npm install + + npm + + + generate-resources + + + install + + + + + npm build - attach-artifact + npm + + generate-resources + - - - target/${project.artifactId}-${project.version}-zip.zip - zip - - + run build + - - - - - - - - - - - - - - - - - - - - - - - - + + + maven-assembly-plugin + + + maven-repo-zip + + single + + package + + false + false + ${project.artifactId}-${project.version} + + assemble_dist_zip.xml + + + + + + -- cgit 1.2.3-korg