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