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