Pawel Kadlubanski | 8d0066e | 2018-05-11 14:35:43 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | |
| 3 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | |
Pawel Kadlubanski | 57c49c5 | 2018-05-11 16:46:34 +0200 | [diff] [blame^] | 7 | <parent> |
Pawel Kadlubanski | 8d0066e | 2018-05-11 14:35:43 +0200 | [diff] [blame] | 8 | <groupId>org.onap.oparent</groupId> |
| 9 | <artifactId>oparent</artifactId> |
| 10 | <version>0.1.1</version> |
| 11 | </parent> |
| 12 | |
| 13 | <groupId>org.onap.pnfsimulator</groupId> |
| 14 | <artifactId>pnf-simulator</artifactId> |
| 15 | <version>1.0-SNAPSHOT</version> |
| 16 | |
| 17 | <name>pnf-simulator</name> |
| 18 | |
| 19 | <properties> |
| 20 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 21 | <maven.compiler.source>1.8</maven.compiler.source> |
| 22 | <maven.compiler.target>1.8</maven.compiler.target> |
| 23 | <simulator.main.class>org.onap.pnfsimulator.Main</simulator.main.class> |
| 24 | <dependency.directory.name>libs</dependency.directory.name> |
Pawel Kadlubanski | 57c49c5 | 2018-05-11 16:46:34 +0200 | [diff] [blame^] | 25 | <dependency.directory.location>${project.build.directory}/${dependency.directory.name} |
| 26 | </dependency.directory.location> |
Pawel Kadlubanski | 8d0066e | 2018-05-11 14:35:43 +0200 | [diff] [blame] | 27 | <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily> |
| 28 | </properties> |
| 29 | |
| 30 | <dependencies> |
| 31 | <dependency> |
| 32 | <groupId>org.apache.logging.log4j</groupId> |
| 33 | <artifactId>log4j-core</artifactId> |
| 34 | <version>2.11.0</version> |
| 35 | </dependency> |
| 36 | <dependency> |
| 37 | <groupId>commons-io</groupId> |
| 38 | <artifactId>commons-io</artifactId> |
| 39 | <version>2.6</version> |
| 40 | </dependency> |
| 41 | <dependency> |
| 42 | <groupId>org.json</groupId> |
| 43 | <artifactId>json</artifactId> |
| 44 | <version>20180130</version> |
| 45 | </dependency> |
| 46 | <dependency> |
| 47 | <groupId>org.apache.httpcomponents</groupId> |
| 48 | <artifactId>httpclient</artifactId> |
| 49 | <version>4.5.5</version> |
| 50 | </dependency> |
| 51 | <dependency> |
| 52 | <groupId>com.google.guava</groupId> |
| 53 | <artifactId>guava</artifactId> |
| 54 | <version>21.0</version> |
| 55 | </dependency> |
| 56 | <dependency> |
| 57 | <groupId>commons-cli</groupId> |
| 58 | <artifactId>commons-cli</artifactId> |
| 59 | <version>1.4</version> |
| 60 | </dependency> |
| 61 | <dependency> |
| 62 | <groupId>org.junit.jupiter</groupId> |
| 63 | <artifactId>junit-jupiter-engine</artifactId> |
| 64 | <version>5.1.1</version> |
| 65 | <scope>test</scope> |
| 66 | </dependency> |
| 67 | <dependency> |
| 68 | <groupId>org.assertj</groupId> |
| 69 | <artifactId>assertj-core</artifactId> |
| 70 | <version>3.9.1</version> |
| 71 | <scope>test</scope> |
| 72 | </dependency> |
| 73 | <dependency> |
| 74 | <groupId>org.apache.commons</groupId> |
| 75 | <artifactId>commons-lang3</artifactId> |
| 76 | <version>3.7</version> |
| 77 | </dependency> |
| 78 | </dependencies> |
| 79 | |
| 80 | <build> |
| 81 | <plugins> |
| 82 | <plugin> |
| 83 | <groupId>org.apache.maven.plugins</groupId> |
| 84 | <artifactId>maven-compiler-plugin</artifactId> |
| 85 | <configuration> |
| 86 | <source>${maven.compiler.source}</source> |
| 87 | <target>${maven.compiler.target}</target> |
| 88 | <showWarnings>true</showWarnings> |
| 89 | <showDeprecation>true</showDeprecation> |
| 90 | </configuration> |
| 91 | </plugin> |
| 92 | <plugin> |
| 93 | <artifactId>maven-surefire-plugin</artifactId> |
| 94 | <version>2.19</version> |
| 95 | <dependencies> |
| 96 | <dependency> |
| 97 | <groupId>org.junit.platform</groupId> |
| 98 | <artifactId>junit-platform-surefire-provider</artifactId> |
| 99 | <version>1.1.1</version> |
| 100 | </dependency> |
| 101 | </dependencies> |
| 102 | <configuration> |
| 103 | <detail>true</detail> |
| 104 | <printSummary>true</printSummary> |
| 105 | </configuration> |
| 106 | </plugin> |
| 107 | <plugin> |
| 108 | <groupId>org.apache.maven.plugins</groupId> |
| 109 | <artifactId>maven-dependency-plugin</artifactId> |
| 110 | <configuration> |
| 111 | <outputDirectory>${dependency.directory.location}</outputDirectory> |
| 112 | <includeScope>runtime</includeScope> |
| 113 | <silent>true</silent> |
| 114 | </configuration> |
| 115 | <executions> |
| 116 | <execution> |
| 117 | <id>copy-external-dependencies</id> |
| 118 | <phase>package</phase> |
| 119 | <goals> |
| 120 | <goal>copy-dependencies</goal> |
| 121 | </goals> |
| 122 | </execution> |
| 123 | </executions> |
| 124 | </plugin> |
| 125 | <plugin> |
| 126 | <groupId>com.spotify</groupId> |
| 127 | <artifactId>docker-maven-plugin</artifactId> |
| 128 | <configuration> |
Pawel Kadlubanski | 57c49c5 | 2018-05-11 16:46:34 +0200 | [diff] [blame^] | 129 | <skipDockerBuild>false</skipDockerBuild> |
| 130 | <imageName> |
| 131 | ${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId} |
| 132 | </imageName> |
| 133 | <cmd>java -cp ${dependency.directory.name}/*:${project.build.finalName}.jar ${simulator.main.class} |
| 134 | </cmd> |
| 135 | <resources> |
| 136 | <resource> |
| 137 | <targetPath>${dependency.directory.name}</targetPath> |
| 138 | <directory>${dependency.directory.location}</directory> |
| 139 | </resource> |
| 140 | <resource> |
| 141 | <targetPath>/</targetPath> |
| 142 | <directory>${project.build.directory}</directory> |
| 143 | <include>${project.build.finalName}.jar</include> |
| 144 | </resource> |
| 145 | </resources> |
| 146 | <imageTags> |
| 147 | <imageTag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</imageTag> |
| 148 | <imageTag>${project.version}</imageTag> |
| 149 | <imageTag>latest</imageTag> |
| 150 | </imageTags> |
| 151 | <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| 152 | </configuration> |
Pawel Kadlubanski | 8d0066e | 2018-05-11 14:35:43 +0200 | [diff] [blame] | 153 | </plugin> |
| 154 | </plugins> |
| 155 | </build> |
| 156 | </project> |