diff options
author | 2021-08-20 16:55:19 +0100 | |
---|---|---|
committer | 2021-09-01 10:12:50 +0100 | |
commit | 608e625fdd262d4362a998f290017a7d3a978aaf (patch) | |
tree | c1f5ad7efae7f7105721992824c595cef9c9cc85 /gui-clamp/pom.xml | |
parent | db784313b8ba29f5d4396c1cc96bb5f3c853677f (diff) |
Add docker image generation to maven for policy-gui
Add maven uber-jar artifact for gui-editor-apex
Add maven tarball artifact for gui-clamp
Create docker image containing nginx and policy GUIs
Issue-ID: POLICY-3574
Change-Id: I06e5ed6fb610e0746f376114f628bb9b1a530cab
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Diffstat (limited to 'gui-clamp/pom.xml')
-rw-r--r-- | gui-clamp/pom.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gui-clamp/pom.xml b/gui-clamp/pom.xml index 8d29ce4..a19d1ca 100644 --- a/gui-clamp/pom.xml +++ b/gui-clamp/pom.xml @@ -147,6 +147,17 @@ </configuration> </execution> <execution> + <id>npm_build</id> + <goals> + <goal>npm</goal> + </goals> + <phase>package</phase> + <configuration> + <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory> + <arguments>run build</arguments> + </configuration> + </execution> + <execution> <id>npm_test</id> <goals> <goal>npm</goal> @@ -158,6 +169,7 @@ <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory> </configuration> </execution> + <!-- XXX Are these deploy steps using npm desirable given docker image generation? --> <execution> <id>npm_install_lib</id> <goals> @@ -228,6 +240,25 @@ <artifactId>versions-maven-plugin</artifactId> <version>1.3.1</version> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>generate-gui-clamp-tar</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <descriptors> + <descriptor>src/main/assembly/clamp-build.xml</descriptor> + </descriptors> + <finalName>${project.artifactId}-${project.version}</finalName> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> |