| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <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.apache.maven.its</groupId> |
| <artifactId>core-its</artifactId> |
| <version>4.1.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>core-it-suite</artifactId> |
| |
| <name>Maven Core ITs suite</name> |
| <description>The effective Maven Integration Tests suite.</description> |
| |
| <!-- |
| By default, the project just packages the tests in an artifact. To actually run them, activate the profile "run-its": |
| |
| mvn clean verify -Prun-its |
| |
| This will test the Maven distribution generated by the current build (apache-maven/target/apache-maven-xxx.zip). |
| |
| If you would like to test the Maven version running the build instead, use the "maven-from-build" profile: |
| |
| mvn clean verify -Prun-its,maven-from-build |
| |
| The "maven-from-build" profile restores the old default behavior where the integration tests run against the |
| Maven installation that is executing the build (i.e., the value of ${maven.home}). This is useful when you want |
| to test against a specific Maven installation without having to build the distribution first. |
| |
| You can also specify the path of a specific Maven distribution to test using the "mavenHome" property (this |
| automatically activates the "maven-from-build" profile): |
| |
| mvn clean verify -Prun-its -DmavenHome=<maven-under-test> |
| |
| Alternatively, you can specify the version of a previously installed/deployed Maven distribution which will be |
| downloaded, unpacked and tested: |
| |
| mvn clean verify -Prun-its -DmavenVersion=2.2.1 |
| |
| It's also possible to point the ITs at an already downloaded Maven distribution: |
| |
| mvn clean verify -Prun-its -DmavenDistro=<path-to-bin-archive> |
| |
| To run all the ITs using forked Maven, additionally activate the profile "forked". |
| |
| ITs that don't require to fork Maven can also be run from the IDE using the Maven projects from the workspace if the |
| Maven dependencies are added to the test class path. |
| |
| If you're behind a proxy, use the system properties proxy.host, proxy.port, proxy.user, proxy.pass and |
| proxy.nonProxyHosts to specify the required proxy setup for the ITs. Alternatively, set the system property |
| maven.it.central to a URL of a local repository manager (anonymous authentication only) that proxies the |
| required artifacts. |
| --> |
| |
| <properties> |
| <!-- The original Maven distribution to test. By default, use the distribution built by the current build. --> |
| <mavenHome>${project.build.directory}/apache-maven</mavenHome> |
| <!-- The (possibly instrumented copy of the) Maven distribution we actually |
| use for the tests. --> |
| <preparedMavenHome>${mavenHome}</preparedMavenHome> |
| <preparedUserHome>${project.build.directory}/user-home</preparedUserHome> |
| <!-- default properties used to filter the global settings --> |
| <maven.it.central>https://repo.maven.apache.org/maven2</maven.it.central> |
| <proxy.active>false</proxy.active> |
| <proxy.host>localhost</proxy.host> |
| <proxy.port>80</proxy.port> |
| <proxy.type>none</proxy.type> |
| <proxy.user /> |
| <proxy.pass /> |
| <proxy.nonProxyHosts>localhost</proxy.nonProxyHosts> |
| <jettyVersion>12.1.12</jettyVersion> |
| |
| <stubPluginVersion>0.1-stub-SNAPSHOT</stubPluginVersion> |
| <!-- Support artifacts version - kept separate from Maven version --> |
| <core-it-support-version>2.1-SNAPSHOT</core-it-support-version> |
| |
| <version.palantirJavaFormat>2.90.0</version.palantirJavaFormat> |
| <version.maven-shared-resources>6</version.maven-shared-resources> |
| <its.forkCount>0.75C</its.forkCount> |
| <its.test /> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-api</artifactId> |
| <!-- NOTE: Use compile scope for transitivity. --> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.plexus</groupId> |
| <artifactId>plexus-utils</artifactId> |
| <version>${plexusUtilsVersion}</version> |
| <!-- NOTE: Use compile scope for transitivity. --> |
| </dependency> |
| |
| <!-- Jetty (as test HTTP server) --> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-server</artifactId> |
| <version>${jettyVersion}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-security</artifactId> |
| <version>${jettyVersion}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-util</artifactId> |
| <version>${jettyVersion}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-repository-metadata</artifactId> |
| </dependency> |
| |
| <!-- project dependencies --> |
| <dependency> |
| <groupId>org.apache.maven.its</groupId> |
| <artifactId>maven-it-plugin-bootstrap</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its</groupId> |
| <artifactId>core-it-component</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its</groupId> |
| <artifactId>core-it-toolchain</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its</groupId> |
| <artifactId>core-it-wagon</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its</groupId> |
| <artifactId>maven-it-helper</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its</groupId> |
| <artifactId>core-it-extension</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its</groupId> |
| <artifactId>core-it-javaagent</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-ear-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-ejb-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-install-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-plugin-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-rar-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-site-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>0.1-stub-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-active-collection</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-artifact</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-class-loader</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <!-- dep-c is an optional dependency of maven-it-plugin-class-loader, so it should not be transitively included --> |
| <groupId>org.apache.maven.its.plugins.class-loader</groupId> |
| <artifactId>dep-c</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-configuration</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-dependency-resolution</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-expression</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-error</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-extension-provider</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-fork</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-log-file</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-packaging</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-project</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-project-interpolation</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-site</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-toolchain</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-touch</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-uses-wagon</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-all</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-plexus-component-api</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-extension1</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.plugins</groupId> |
| <artifactId>maven-it-plugin-plexus-lifecycle</artifactId> |
| <version>${core-it-support-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-jxpath</groupId> |
| <artifactId>commons-jxpath</artifactId> |
| <version>1.4.0</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <testResources> |
| <testResource> |
| <directory>src/test/resources</directory> |
| </testResource> |
| <testResource> |
| <filtering>true</filtering> |
| <directory>src/test/resources-filtered</directory> |
| </testResource> |
| </testResources> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>com.diffplug.spotless</groupId> |
| <artifactId>spotless-maven-plugin</artifactId> |
| <configuration> |
| <java> |
| <palantirJavaFormat> |
| <version>${version.palantirJavaFormat}</version> |
| </palantirJavaFormat> |
| <removeUnusedImports /> |
| <importOrder> |
| <file>config/maven-eclipse-importorder.txt</file> |
| </importOrder> |
| <licenseHeader> |
| <file>config/maven-header-plain.txt</file> |
| </licenseHeader> |
| <includes> |
| <include>src/main/java/**/*.java</include> |
| <include>src/test/java/**/*.java</include> |
| <include>src/test/resources/**/src/main/java/**/*.java</include> |
| <include>src/test/resources/**/src/test/java/**/*.java</include> |
| </includes> |
| <excludes> |
| <exclude>src/test/resources/mng-5208/project/sub-2/src/main/java/Bad.java</exclude> |
| </excludes> |
| </java> |
| <pom> |
| <sortPom> |
| <expandEmptyElements>false</expandEmptyElements> |
| <spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement> |
| <quiet>true</quiet> |
| </sortPom> |
| <includes> |
| <include>pom.xml</include> |
| <include>src/test/resources/**/pom.xml</include> |
| </includes> |
| <excludes> |
| <exclude>src/test/resources/mng-2254/latin-1/pom.xml</exclude> |
| <exclude>src/test/resources/mng-2362/latin-1/pom.xml</exclude> |
| <exclude>src/test/resources/mng-3839/pom.xml</exclude> |
| </excludes> |
| </pom> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.shared</groupId> |
| <artifactId>maven-shared-resources</artifactId> |
| <version>${version.maven-shared-resources}</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-invoker-plugin</artifactId> |
| <configuration> |
| <skipInstallation>true</skipInstallation> |
| <localRepositoryPath>${preparedUserHome}/.m2/repository</localRepositoryPath> |
| <extraArtifacts> |
| <extraArtifact>eu.maveniverse.maven.plugins:toolbox:${toolboxVersion}:maven-plugin</extraArtifact> |
| <!-- |
| Required by: |
| MavenITmng0449PluginVersionResolutionTest |
| MavenITmng0479OverrideCentralRepoTest |
| --> |
| <extraArtifact>org.apache.maven:maven-plugin-api:3.8.6</extraArtifact> |
| </extraArtifacts> |
| </configuration> |
| <executions> |
| <execution> |
| <id>install</id> |
| <goals> |
| <goal>install</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <skipTests>true</skipTests> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <test>${its.test}</test> |
| <includes> |
| <include>**/MavenIT*.java</include> |
| </includes> |
| <!-- test annotated by @Tag("disabled") will be skipped from executions --> |
| <excludedGroups>disabled</excludedGroups> |
| <skipTests>true</skipTests> |
| <forkCount>${its.forkCount}</forkCount> |
| <reuseForks>true</reuseForks> |
| <!-- NOTE: Maven plugins have access to the system class path, keep it clean --> |
| <useSystemClassLoader>false</useSystemClassLoader> |
| <promoteUserPropertiesToSystemProperties>false</promoteUserPropertiesToSystemProperties> |
| <systemPropertyVariables> |
| <maven.test.user.home>${preparedUserHome}</maven.test.user.home> |
| <maven.test.repo.outer>${settings.localRepository}</maven.test.repo.outer> |
| <maven.test.repo.local>${preparedUserHome}/.m2/repository</maven.test.repo.local> |
| <maven.test.tmpdir>${project.build.testOutputDirectory}</maven.test.tmpdir> |
| <maven.home>${preparedMavenHome}</maven.home> |
| <maven.it.global-settings.dir>${project.build.testOutputDirectory}</maven.it.global-settings.dir> |
| </systemPropertyVariables> |
| <excludedEnvironmentVariables> |
| <excludedEnvironmentVariable>MAVEN_ARGS</excludedEnvironmentVariable> |
| <excludedEnvironmentVariable>MAVEN_OPTS</excludedEnvironmentVariable> |
| </excludedEnvironmentVariables> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- Default behavior: extract and use the Maven distribution built by the current build --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack-built-maven-distro</id> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <phase>process-test-resources</phase> |
| <configuration> |
| <target> |
| <delete dir="${mavenHome}" /> |
| <unzip dest="${mavenHome}" src="${maven.multiModuleProjectDirectory}/apache-maven/target/apache-maven-${project.version}-bin.zip"> |
| <regexpmapper from="^([^/]+)/(.*)$" handledirsep="true" to="\2" /> |
| </unzip> |
| <chmod dir="${mavenHome}/bin" includes="mvn,mvnDebug,mvnenc,mvnup" perm="ugo+rx" /> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>maven-from-build</id> |
| <activation> |
| <property> |
| <name>mavenHome</name> |
| </property> |
| </activation> |
| <properties> |
| <!-- Use the Maven installation running the build (old default behavior) --> |
| <mavenHome>${maven.home}</mavenHome> |
| </properties> |
| <build> |
| <plugins> |
| <!-- Disable the default distribution extraction when using mavenHome --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack-built-maven-distro</id> |
| <phase>none</phase> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>mimir</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>setup-mimir</id> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <phase>process-test-resources</phase> |
| <configuration> |
| <target> |
| <delete dir="${preparedUserHome}" /> |
| <copy file="${sessionRootDirectory}/.github/ci-extensions.xml" toFile="${preparedUserHome}/.m2/extensions.xml" /> |
| <copy file="${project.build.testOutputDirectory}/it-mimir-session.properties" toFile="${preparedUserHome}/.mimir/session.properties" /> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>run-its</id> |
| <properties> |
| <mavenHome>${project.build.directory}/apache-maven</mavenHome> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>apache-maven</artifactId> |
| <version>${project.version}</version> |
| <classifier>bin</classifier> |
| <type>zip</type> |
| <exclusions> |
| <!-- dependency only on Maven distribution --> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- not really used but will force download in the local repo used --> |
| <dependency> |
| <groupId>org.apache.maven.wagon</groupId> |
| <artifactId>wagon-webdav-jackrabbit</artifactId> |
| <version>${wagonVersion}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-invoker-plugin</artifactId> |
| <configuration> |
| <skipInstallation>false</skipInstallation> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <skipTests>false</skipTests> |
| <redirectTestOutputToFile>false</redirectTestOutputToFile> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>download-maven-distro</id> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <phase>process-test-resources</phase> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>apache-maven</artifactId> |
| <version>${maven-version}</version> |
| <classifier>bin</classifier> |
| <type>zip</type> |
| <destFileName>maven-bin.zip</destFileName> |
| </artifactItem> |
| </artifactItems> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <!-- Disable the default distribution extraction --> |
| <execution> |
| <id>unpack-built-maven-distro</id> |
| <phase>none</phase> |
| </execution> |
| <execution> |
| <id>unpack-maven-distro</id> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <phase>process-test-resources</phase> |
| <configuration> |
| <target> |
| <delete dir="${mavenHome}" /> |
| <unzip dest="${mavenHome}" src="${project.build.directory}/maven-bin.zip"> |
| <globmapper from="apache-maven-${maven-version}/*" handledirsep="true" to="*" /> |
| </unzip> |
| <chmod dir="${mavenHome}/bin" includes="mvn,mvnDebug,mvnenc" perm="ugo+rx" /> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>maven-repo-local-tail</id> |
| <activation> |
| <property> |
| <name>maven.repo.local.tail</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <systemPropertyVariables> |
| <!-- Pass this through to the tests (if set!) to have them |
| pick the right repository --> |
| <maven.repo.local.tail>${maven.repo.local.tail}</maven.repo.local.tail> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>forked</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-invoker-plugin</artifactId> |
| <configuration> |
| <skipInstallation>false</skipInstallation> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <skipTests>false</skipTests> |
| <systemPropertyVariables> |
| <verifier.forkMode>forked</verifier.forkMode> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>maven-from-repo</id> |
| <activation> |
| <property> |
| <name>mavenVersion</name> |
| </property> |
| </activation> |
| <properties> |
| <mavenHome>${project.build.directory}/apache-maven</mavenHome> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-invoker-plugin</artifactId> |
| <configuration> |
| <skipInstallation>false</skipInstallation> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <skipTests>false</skipTests> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>download-maven-distro</id> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <phase>process-test-resources</phase> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>apache-maven</artifactId> |
| <version>${mavenVersion}</version> |
| <classifier>bin</classifier> |
| <type>zip</type> |
| <destFileName>maven-bin.zip</destFileName> |
| </artifactItem> |
| </artifactItems> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <!-- Disable the default distribution extraction --> |
| <execution> |
| <id>unpack-built-maven-distro</id> |
| <phase>none</phase> |
| </execution> |
| <execution> |
| <id>unpack-maven-distro</id> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <phase>process-test-resources</phase> |
| <configuration> |
| <target> |
| <delete dir="${mavenHome}" /> |
| <unzip dest="${mavenHome}" src="${project.build.directory}/maven-bin.zip"> |
| <globmapper from="apache-maven-${mavenVersion}/*" handledirsep="true" to="*" /> |
| </unzip> |
| <chmod dir="${mavenHome}/bin" includes="mvn,mvnDebug,mvnenc,mvnup" perm="ugo+rx" /> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>maven-distro</id> |
| <activation> |
| <property> |
| <name>mavenDistro</name> |
| </property> |
| </activation> |
| <properties> |
| <mavenHome>${project.build.directory}/apache-maven</mavenHome> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-invoker-plugin</artifactId> |
| <configuration> |
| <skipInstallation>false</skipInstallation> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <skipTests>false</skipTests> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <!-- Disable the default distribution extraction --> |
| <execution> |
| <id>unpack-built-maven-distro</id> |
| <phase>none</phase> |
| </execution> |
| <execution> |
| <id>unpack-maven-distro</id> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <phase>process-test-resources</phase> |
| <configuration> |
| <target> |
| <delete dir="${mavenHome}" /> |
| <unzip dest="${mavenHome}" src="${mavenDistro}"> |
| <regexpmapper from="^([^/]+)/(.*)$" handledirsep="true" to="\2" /> |
| </unzip> |
| <chmod dir="${mavenHome}/bin" includes="mvn,mvnDebug,mvnenc,mvnup" perm="ugo+rx" /> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>proxy</id> |
| <activation> |
| <property> |
| <name>proxy.host</name> |
| </property> |
| </activation> |
| <properties> |
| <proxy.type>http</proxy.type> |
| <proxy.active>true</proxy.active> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |