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