diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2020-02-20 12:23:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-20 12:23:07 +0000 |
commit | 18acead623826c43da43da6d0e55e81e1f2953a1 (patch) | |
tree | 0a56e2be3dd6e4a4878989252f9ac5ae37dfc3df /certServiceClient | |
parent | 639c40968f329fc6526a35c9fca2817e9cf0faa7 (diff) | |
parent | ff9a464df4c96d9573c19516376c5d8ae60cf258 (diff) |
Merge "Create fat jar"
Diffstat (limited to 'certServiceClient')
-rw-r--r-- | certServiceClient/Dockerfile | 2 | ||||
-rw-r--r-- | certServiceClient/pom.xml | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/certServiceClient/Dockerfile b/certServiceClient/Dockerfile index 8b2d1700..9da47295 100644 --- a/certServiceClient/Dockerfile +++ b/certServiceClient/Dockerfile @@ -10,4 +10,4 @@ USER certServiceClient:certServiceClient COPY target/aaf-certservice-client-${VERSION}.jar ./opt/onap/aaf/certservice/aaf-certservice-client.jar -ENTRYPOINT ["echo","================================ THIS IS CERT-SERVICE-CLIENT CONTAINER RUNNING ================================"] +ENTRYPOINT ["java","-jar","./opt/onap/aaf/certservice/aaf-certservice-client.jar"] diff --git a/certServiceClient/pom.xml b/certServiceClient/pom.xml index 7ba9b5ed..f32501bf 100644 --- a/certServiceClient/pom.xml +++ b/certServiceClient/pom.xml @@ -87,6 +87,26 @@ </images> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>3.2.2</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <transformers> + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> + <mainClass>org.onap.aaf.certservice.client.CertServiceClientApp</mainClass> + </transformer> + </transformers> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </profile> |