diff options
author | sheetalm <sheetal.mudholkar@amdocs.com> | 2018-03-13 19:32:08 +0530 |
---|---|---|
committer | sheetalm <sheetal.mudholkar@amdocs.com> | 2018-03-26 14:38:06 +0530 |
commit | ed12890b0bb0c07acd3eb7bcbd10bfcca3046a2b (patch) | |
tree | bd37e0e117fc9e8a1b818f94a9e5a120ca4df0a6 /services/activity-spec/pom.xml | |
parent | f2cee7829ae7d8fae58239dd0018b2aa790c0251 (diff) |
Activity Spec Service - Dockerization
Resolving merge conflict
Fixing todo items after rebase.
URL to be /activity-spec-api. Removing unused image. Renaming css
Configuring docker registry to push images and adding docker profile
Add maven docker module to generate below docker images
1 activity-spec-init:1.2.0-SNAPSHOT - creates cassandra keyspace and tables
in already running cassandra docker image
2 activity-spec-be:1.2.0-SNAPSHOT - deploys activity spec war and swagger war on base jetty docker image
Change-Id: Ic638e2cb9c224e9e6c91cf0f7198594593a77ae5
Issue-ID: SDC-1048
Signed-off-by: sheetalm <sheetal.mudholkar@amdocs.com>
Diffstat (limited to 'services/activity-spec/pom.xml')
-rw-r--r-- | services/activity-spec/pom.xml | 87 |
1 files changed, 55 insertions, 32 deletions
diff --git a/services/activity-spec/pom.xml b/services/activity-spec/pom.xml index 5e71480c71..72b3bf5c62 100644 --- a/services/activity-spec/pom.xml +++ b/services/activity-spec/pom.xml @@ -1,20 +1,20 @@ <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> <groupId>org.openecomp.activityspec</groupId> <artifactId>activity-spec</artifactId> - <packaging>pom</packaging> <version>1.2.0-SNAPSHOT</version> - - <modules> - <module>activity-spec-web</module> - <module>swagger-ui</module> - </modules> + <packaging>pom</packaging> <properties> - <mockito.all.version>1.10.19</mockito.all.version> + + <maven.compiler.source>1.8</maven.compiler.source> + <maven.compiler.target>1.8</maven.compiler.target> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <mvn.surefire.version>2.19.1</mvn.surefire.version> <jacoco.version>0.7.9</jacoco.version> <mvn.compiler.version>2.5.1</mvn.compiler.version> @@ -24,8 +24,10 @@ <mvn.jar.version>2.4</mvn.jar.version> <mvn.war.version>2.1.1</mvn.war.version> <mvn.swagger.version>3.1.0</mvn.swagger.version> - <java.source>1.8</java.source> - <java.target>1.8</java.target> + <mvn.resources.version>3.0.2</mvn.resources.version> + <mvn.docker.version>0.24.0</mvn.docker.version> + + <mockito.all.version>1.10.19</mockito.all.version> <spring.framework.version>4.1.3.RELEASE</spring.framework.version> <cxf.version>3.1.8</cxf.version> <ws.rs.version>2.0.1</ws.rs.version> @@ -33,24 +35,54 @@ <jersey.multipart.version>1.18.1</jersey.multipart.version> <javax.servlet.version>2.5</javax.servlet.version> <org.codehaus.jackson.version>1.9.13</org.codehaus.jackson.version> + </properties> + <modules> + <module>activity-spec-web</module> + <module>activity-spec-init</module> + </modules> + <build> <pluginManagement> - <plugins> - <!-- ================================================== --> - <!-- Set the JDK compiler version. --> - <!-- ================================================== --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>${mvn.compiler.version}</version> - <configuration> - <source>${java.source}</source> - <target>${java.target}</target> - </configuration> - </plugin> - </plugins> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>${mvn.compiler.version}</version> + </plugin> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>${mvn.docker.version}</version> + <configuration> + <verbose>false</verbose> + <registry>nexus3.onap.org:10001</registry> + <authConfig> + <pull> + <username>docker</username> + <password>docker</password> + </pull> + </authConfig> + </configuration> + <executions> + <execution> + <id>docker-build</id> + <phase>install</phase> + <goals> + <goal>build</goal> + </goals> + </execution> + <execution> + <id>push-images</id> + <phase>deploy</phase> + <goals> + <goal>push</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> </pluginManagement> </build> @@ -65,13 +97,4 @@ </dependencies> </dependencyManagement> - <reporting> - <plugins> - <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>${jacoco.version}</version> - </plugin> - </plugins> - </reporting> </project>
\ No newline at end of file |