plugins.nxrm3-maven-plugin-testsuite.1.0.7.source-code.pom.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- Sonatype Nexus (TM) Open Source Version Copyright (c) 2019-present Sonatype, Inc. All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the Eclipse Foundation. All other trademarks are the property of their respective owners. --> <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> <artifactId>nxrm3</artifactId> <groupId>org.sonatype.plugins</groupId> <version>1.0.7</version> </parent> <artifactId>nxrm3-maven-plugin-testsuite</artifactId> <properties> <nexus3.version>3.41.1-01</nexus3.version> <docker.skip>${skipTests}</docker.skip> <dockerArchive>${project.build.directory}/nxrm-pro-image.tar.gz</dockerArchive> </properties> <build> <testResources> <testResource> <directory>src/test/resources</directory> <filtering>true</filtering> </testResource> </testResources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <executions> <execution> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> <configuration> <systemProperties> <nexus3.it.port>${nexus3.it.port}</nexus3.it.port> </systemProperties> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven.plugin-testing</groupId> <artifactId>maven-plugin-testing-harness</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven.shared</groupId> <artifactId>maven-verifier</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.sonatype.goodies</groupId> <artifactId>goodies-httpfixture</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.sonatype.sisu</groupId> <artifactId>sisu-file-tasks</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.sonatype.goodies</groupId> <artifactId>goodies-testsupport</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.eclipse.sisu</groupId> <artifactId>org.eclipse.sisu.inject</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.sonatype.nexus</groupId> <artifactId>nexus-platform-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.awaitility</groupId> <artifactId>awaitility</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.sonatype.nexus.testsuite</groupId> <artifactId>nxrm-pro-image</artifactId> <version>${nexus3.version}</version> <type>tar.gz</type> <scope>test</scope> </dependency> </dependencies> <profiles> <profile> <id>local-nexus3</id> <properties> <nexus3.it.port>8081</nexus3.it.port> </properties> </profile> <profile> <id>docker-nexus3</id> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>pre-integration-test</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}</outputDirectory> <includeArtifactIds>nxrm-pro-image</includeArtifactIds> <stripVersion>true</stripVersion> <stripClassifier>true</stripClassifier> <excludeTransitive>true</excludeTransitive> </configuration> </execution> </executions> </plugin> <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.40.2</version> <executions> <execution> <id>start-nexus3</id> <phase>pre-integration-test</phase> <goals> <goal>build</goal> <goal>start</goal> </goals> <configuration> <images> <image> <name>nxrm-pro-image</name> <alias>nexus3-it</alias> <build> <dockerArchive>${dockerArchive}</dockerArchive> </build> <run> <env> <NEXUS_SECURITY_RANDOMPASSWORD>false</NEXUS_SECURITY_RANDOMPASSWORD> </env> <ports> <port>nexus3.it.port:8081</port> </ports> <wait> <http> <url>http://localhost:${nexus3.it.port}</url> <method>GET</method> <status>200..399</status> </http> <time>90000</time> </wait> </run> </image> </images> </configuration> </execution> <execution> <id>stop-nexus3</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>