diff options
author | 2021-09-02 13:35:36 +0000 | |
---|---|---|
committer | 2021-09-02 13:35:36 +0000 | |
commit | 55acb846615dfe6aa50e9913271447c98ed0b459 (patch) | |
tree | 83ab2d98af0d11428c4d59dc67909e6aba083392 /gui-clamp/pom.xml | |
parent | bc7dfea387d1a80875e254fcc8d94516ab6ead96 (diff) | |
parent | 608e625fdd262d4362a998f290017a7d3a978aaf (diff) |
Merge "Add docker image generation to maven for policy-gui"
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> |