diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-09-25 21:56:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-25 21:56:34 +0000 |
commit | dfeb9c0e1a4ffeed81c6ba81b7b82a2e7dd70afb (patch) | |
tree | 1d44c616d1fe889f02183f8dbc92346daefb20f9 /test/mocks/sniroemulator/pom.xml | |
parent | b5ec59450247103056b652fb50070eeda82e3c79 (diff) | |
parent | 5055dee7d7197456197af8766f6b007a531af0cf (diff) |
Merge "Sniro Emulator - Adjust project to use oparent"
Diffstat (limited to 'test/mocks/sniroemulator/pom.xml')
-rw-r--r-- | test/mocks/sniroemulator/pom.xml | 65 |
1 files changed, 62 insertions, 3 deletions
diff --git a/test/mocks/sniroemulator/pom.xml b/test/mocks/sniroemulator/pom.xml index aa437500d..f7c91bf47 100644 --- a/test/mocks/sniroemulator/pom.xml +++ b/test/mocks/sniroemulator/pom.xml @@ -10,12 +10,17 @@ <description>onap sniro emulator project based on Spring Boot</description> <parent> + <groupId>org.onap.oparent</groupId> + <artifactId>oparent</artifactId> + <version>0.1.1</version> +</parent> + +<!-- <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.7.RELEASE</version> - <relativePath/> <!-- lookup parent from repository --> </parent> - +--> <properties> <dockerLocation>${basedir}/target</dockerLocation> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> @@ -23,8 +28,51 @@ <java.version>1.8</java.version> <versions.jackson>2.8.9</versions.jackson> <jetty.version>9.2.22.v20170606</jetty.version> + <start-class>org.onap.integration.test.mocks.sniroemulator.MockApplication</start-class> </properties> +<dependencyManagement> + <dependencies> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-http</artifactId> + <version>${jetty.version}</version> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-security</artifactId> + <version>${jetty.version}</version> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-util</artifactId> + <version>${jetty.version}</version> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-xml</artifactId> + <version>${jetty.version}</version> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-io</artifactId> + <version>${jetty.version}</version> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-continuation</artifactId> + <version>${jetty.version}</version> + </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-dependencies</artifactId> + <version>1.5.7.RELEASE</version> + <type>pom</type> + <scope>import</scope> + </dependency> + </dependencies> +</dependencyManagement> + <dependencies> <dependency> <groupId>org.springframework.boot</groupId> @@ -134,6 +182,16 @@ <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>repackage</goal> + </goals> + </execution> + </executions> + <configuration> + <mainClass>${start-class}</mainClass> + </configuration> </plugin> <plugin> <artifactId>maven-dependency-plugin</artifactId> @@ -170,8 +228,9 @@ <artifactId>docker-maven-plugin</artifactId> <version>0.4.11</version> <configuration> - <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName> + <imageName>openecomp/${project.artifactId}</imageName> <dockerDirectory>${dockerLocation}</dockerDirectory> + <serverId>docker-hub</serverId> <imageTags> <imageTag>latest</imageTag> </imageTags> |