| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.onap.oparent</groupId> |
| <artifactId>oparent</artifactId> |
| <version>0.1.1</version> |
| </parent> |
| |
| <groupId>org.onap.pnfsimulator</groupId> |
| <artifactId>pnf-simulator</artifactId> |
| <version>1.0-SNAPSHOT</version> |
| |
| <name>pnf-simulator</name> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <maven.compiler.source>1.8</maven.compiler.source> |
| <maven.compiler.target>1.8</maven.compiler.target> |
| <simulator.main.class>org.onap.pnfsimulator.Main</simulator.main.class> |
| <dependency.directory.name>libs</dependency.directory.name> |
| <dependency.directory.location>${project.build.directory}/${dependency.directory.name} |
| </dependency.directory.location> |
| <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <version>2.11.0</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| <version>2.6</version> |
| </dependency> |
| <dependency> |
| <groupId>org.json</groupId> |
| <artifactId>json</artifactId> |
| <version>20180130</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <version>4.5.5</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>21.0</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| <version>1.4</version> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-engine</artifactId> |
| <version>5.1.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.assertj</groupId> |
| <artifactId>assertj-core</artifactId> |
| <version>3.9.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <version>3.7</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>${maven.compiler.source}</source> |
| <target>${maven.compiler.target}</target> |
| <showWarnings>true</showWarnings> |
| <showDeprecation>true</showDeprecation> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.19</version> |
| <dependencies> |
| <dependency> |
| <groupId>org.junit.platform</groupId> |
| <artifactId>junit-platform-surefire-provider</artifactId> |
| <version>1.1.1</version> |
| </dependency> |
| </dependencies> |
| <configuration> |
| <detail>true</detail> |
| <printSummary>true</printSummary> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <configuration> |
| <outputDirectory>${dependency.directory.location}</outputDirectory> |
| <includeScope>runtime</includeScope> |
| <silent>true</silent> |
| </configuration> |
| <executions> |
| <execution> |
| <id>copy-external-dependencies</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.spotify</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <configuration> |
| <skipDockerBuild>false</skipDockerBuild> |
| <imageName> |
| ${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId} |
| </imageName> |
| <cmd>java -cp ${dependency.directory.name}/*:${project.build.finalName}.jar ${simulator.main.class} |
| </cmd> |
| <resources> |
| <resource> |
| <targetPath>${dependency.directory.name}</targetPath> |
| <directory>${dependency.directory.location}</directory> |
| </resource> |
| <resource> |
| <targetPath>/</targetPath> |
| <directory>${project.build.directory}</directory> |
| <include>${project.build.finalName}.jar</include> |
| </resource> |
| </resources> |
| <imageTags> |
| <imageTag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</imageTag> |
| <imageTag>${project.version}</imageTag> |
| <imageTag>latest</imageTag> |
| </imageTags> |
| <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |