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