mirror of https://github.com/apache/maven.git
IT: Consolidate ITs somewhat (#1924)
Align versions where possible, remove dead stuff. Ant based Mojos were deprecated in Maven3 era, and this is Maven4, so no need to test this. Is full of ancient artifacts anyway.
This commit is contained in:
parent
a8057b0920
commit
88c6ff5e7e
|
@ -96,7 +96,6 @@ under the License.
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
<groupId>org.codehaus.plexus</groupId>
|
||||||
<artifactId>plexus-utils</artifactId>
|
<artifactId>plexus-utils</artifactId>
|
||||||
<version>3.3.0</version>
|
|
||||||
<!-- NOTE: Use compile scope for transitivity. -->
|
<!-- NOTE: Use compile scope for transitivity. -->
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -249,11 +248,6 @@ under the License.
|
||||||
<artifactId>maven-it-plugin-active-collection</artifactId>
|
<artifactId>maven-it-plugin-active-collection</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven.its.plugins</groupId>
|
|
||||||
<artifactId>maven-it-plugin-ant-based</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.its.plugins</groupId>
|
<groupId>org.apache.maven.its.plugins</groupId>
|
||||||
<artifactId>maven-it-plugin-artifact</artifactId>
|
<artifactId>maven-it-plugin-artifact</artifactId>
|
||||||
|
@ -585,7 +579,7 @@ under the License.
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.wagon</groupId>
|
<groupId>org.apache.maven.wagon</groupId>
|
||||||
<artifactId>wagon-webdav-jackrabbit</artifactId>
|
<artifactId>wagon-webdav-jackrabbit</artifactId>
|
||||||
<version>3.5.3</version>
|
<version>${wagonVersion}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -822,120 +816,6 @@ under the License.
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
|
||||||
<id>emma</id>
|
|
||||||
<properties>
|
|
||||||
<preparedMavenHome>${project.build.directory}/distro</preparedMavenHome>
|
|
||||||
</properties>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<skip>false</skip>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>copy-maven-distro</id>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>process-test-classes</phase>
|
|
||||||
<configuration>
|
|
||||||
<target>
|
|
||||||
<delete dir="${preparedMavenHome}" />
|
|
||||||
<copy overwrite="true" todir="${preparedMavenHome}">
|
|
||||||
<fileset dir="${mavenHome}" />
|
|
||||||
</copy>
|
|
||||||
<chmod dir="${preparedMavenHome}/bin" includes="mvn,mvnDebug" perm="ugo+rx" />
|
|
||||||
</target>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>inject-emma-into-core-realm</id>
|
|
||||||
<goals>
|
|
||||||
<goal>copy</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>process-test-classes</phase>
|
|
||||||
<configuration>
|
|
||||||
<artifactItems>
|
|
||||||
<artifactItem>
|
|
||||||
<groupId>emma</groupId>
|
|
||||||
<artifactId>emma</artifactId>
|
|
||||||
<version>2.1.5320</version>
|
|
||||||
</artifactItem>
|
|
||||||
</artifactItems>
|
|
||||||
<outputDirectory>${preparedMavenHome}/lib</outputDirectory>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.sonatype.maven.plugin</groupId>
|
|
||||||
<artifactId>emma4it-maven-plugin</artifactId>
|
|
||||||
<version>1.3</version>
|
|
||||||
<configuration>
|
|
||||||
<jarSets>
|
|
||||||
<jarSet>
|
|
||||||
<directory>${preparedMavenHome}/lib</directory>
|
|
||||||
<includes>
|
|
||||||
<include>maven*.jar</include>
|
|
||||||
</includes>
|
|
||||||
</jarSet>
|
|
||||||
</jarSets>
|
|
||||||
<includes>
|
|
||||||
<include>org.apache.maven.*</include>
|
|
||||||
</includes>
|
|
||||||
<excludes>
|
|
||||||
<exclude>*.io.xpp3.*</exclude>
|
|
||||||
<exclude>*Exception</exclude>
|
|
||||||
</excludes>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>instrument</id>
|
|
||||||
<goals>
|
|
||||||
<goal>instrument</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>process-test-classes</phase>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>report</id>
|
|
||||||
<goals>
|
|
||||||
<goal>report</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>test</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-clean-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<filesets>
|
|
||||||
<fileset>
|
|
||||||
<directory>${basedir}</directory>
|
|
||||||
<includes>
|
|
||||||
<include>coverage.ec</include>
|
|
||||||
</includes>
|
|
||||||
</fileset>
|
|
||||||
</filesets>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>proxy</id>
|
<id>proxy</id>
|
||||||
<activation>
|
<activation>
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
/*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
package org.apache.maven.it;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
import org.apache.maven.shared.verifier.util.ResourceExtractor;
|
|
||||||
import org.junit.jupiter.api.Test;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is a test set for <a href="https://issues.apache.org/jira/browse/MNG-4396">MNG-4396</a>.
|
|
||||||
*
|
|
||||||
* @author Benjamin Bentmann
|
|
||||||
*/
|
|
||||||
public class MavenITmng4396AntBased20xMojoSupportTest extends AbstractMavenIntegrationTestCase {
|
|
||||||
|
|
||||||
public MavenITmng4396AntBased20xMojoSupportTest() {
|
|
||||||
super(ALL_MAVEN_VERSIONS);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verify that plugins whose mojos are implemented as Ant scripts and use the Maven 2.0.x Ant support can be
|
|
||||||
* invoked.
|
|
||||||
*
|
|
||||||
* @throws Exception in case of failure
|
|
||||||
*/
|
|
||||||
@Test
|
|
||||||
public void testit() throws Exception {
|
|
||||||
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-4396");
|
|
||||||
|
|
||||||
Verifier verifier = newVerifier(testDir.getAbsolutePath());
|
|
||||||
verifier.setAutoclean(false);
|
|
||||||
verifier.deleteDirectory("target");
|
|
||||||
verifier.addCliArgument("validate");
|
|
||||||
verifier.execute();
|
|
||||||
verifier.verifyErrorFreeLog();
|
|
||||||
|
|
||||||
verifier.verifyFilePresent("target/ant.txt");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,58 +0,0 @@
|
||||||
/*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
package org.apache.maven.it;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
import org.apache.maven.shared.verifier.util.ResourceExtractor;
|
|
||||||
import org.junit.jupiter.api.Test;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is a test set for <a href="https://issues.apache.org/jira/browse/MNG-4786">MNG-4786</a>.
|
|
||||||
*
|
|
||||||
* @author Benjamin Bentmann
|
|
||||||
*/
|
|
||||||
public class MavenITmng4786AntBased21xMojoSupportTest extends AbstractMavenIntegrationTestCase {
|
|
||||||
|
|
||||||
public MavenITmng4786AntBased21xMojoSupportTest() {
|
|
||||||
super("[2.0.3,3.0-alpha-1),[3.0-beta-4,)");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verify that plugins whose mojos are implemented as Ant scripts and use the Maven 2.1.x Ant support can be
|
|
||||||
* invoked. The essential bits here are that Ant-based mojos are instantiated via a custom component factory, yet
|
|
||||||
* must undergo the same IoC as for regular Java components. And the 2.1.x Ant support actually requires injection
|
|
||||||
* of a logger.
|
|
||||||
*
|
|
||||||
* @throws Exception in case of failure
|
|
||||||
*/
|
|
||||||
@Test
|
|
||||||
public void testit() throws Exception {
|
|
||||||
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-4786");
|
|
||||||
|
|
||||||
Verifier verifier = newVerifier(testDir.getAbsolutePath());
|
|
||||||
verifier.setAutoclean(false);
|
|
||||||
verifier.deleteDirectory("target");
|
|
||||||
verifier.addCliArgument("validate");
|
|
||||||
verifier.execute();
|
|
||||||
verifier.verifyErrorFreeLog();
|
|
||||||
|
|
||||||
verifier.verifyFilePresent("target/ant.txt");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -294,7 +294,6 @@ public class TestSuiteOrdering implements ClassOrderer {
|
||||||
suite.addTestSuite(MavenITmng4791ProjectBuilderResolvesRemotePomArtifactTest.class);
|
suite.addTestSuite(MavenITmng4791ProjectBuilderResolvesRemotePomArtifactTest.class);
|
||||||
suite.addTestSuite(MavenITmng4789ScopeInheritanceMeetsConflictTest.class);
|
suite.addTestSuite(MavenITmng4789ScopeInheritanceMeetsConflictTest.class);
|
||||||
suite.addTestSuite(MavenITmng4788InstallationToCustomLocalRepoTest.class);
|
suite.addTestSuite(MavenITmng4788InstallationToCustomLocalRepoTest.class);
|
||||||
suite.addTestSuite(MavenITmng4786AntBased21xMojoSupportTest.class);
|
|
||||||
suite.addTestSuite(MavenITmng4785TransitiveResolutionInForkedThreadTest.class);
|
suite.addTestSuite(MavenITmng4785TransitiveResolutionInForkedThreadTest.class);
|
||||||
suite.addTestSuite(MavenITmng4781DeploymentToNexusStagingRepoTest.class);
|
suite.addTestSuite(MavenITmng4781DeploymentToNexusStagingRepoTest.class);
|
||||||
suite.addTestSuite(MavenITmng4779MultipleDepsWithVersionRangeFromLocalRepoTest.class);
|
suite.addTestSuite(MavenITmng4779MultipleDepsWithVersionRangeFromLocalRepoTest.class);
|
||||||
|
@ -375,7 +374,6 @@ public class TestSuiteOrdering implements ClassOrderer {
|
||||||
suite.addTestSuite(MavenITmng4402DuplicateChildModuleTest.class);
|
suite.addTestSuite(MavenITmng4402DuplicateChildModuleTest.class);
|
||||||
suite.addTestSuite(MavenITmng4401RepositoryOrderForParentPomTest.class);
|
suite.addTestSuite(MavenITmng4401RepositoryOrderForParentPomTest.class);
|
||||||
suite.addTestSuite(MavenITmng4400RepositoryOrderTest.class);
|
suite.addTestSuite(MavenITmng4400RepositoryOrderTest.class);
|
||||||
suite.addTestSuite(MavenITmng4396AntBased20xMojoSupportTest.class);
|
|
||||||
suite.addTestSuite(MavenITmng4393ParseExternalParenPomLenientTest.class);
|
suite.addTestSuite(MavenITmng4393ParseExternalParenPomLenientTest.class);
|
||||||
suite.addTestSuite(MavenITmng4387QuietLoggingTest.class);
|
suite.addTestSuite(MavenITmng4387QuietLoggingTest.class);
|
||||||
suite.addTestSuite(MavenITmng4386DebugLoggingTest.class);
|
suite.addTestSuite(MavenITmng4386DebugLoggingTest.class);
|
||||||
|
|
|
@ -1,51 +0,0 @@
|
||||||
<?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>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>org.apache.maven.its.mng4396</groupId>
|
|
||||||
<artifactId>test</artifactId>
|
|
||||||
<version>0.1</version>
|
|
||||||
|
|
||||||
<name>Maven Integration Test :: MNG-4396</name>
|
|
||||||
<description>Verify that plugins whose mojos are implemented as Ant scripts can be invoked.</description>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.its.plugins</groupId>
|
|
||||||
<artifactId>maven-it-plugin-ant-based</artifactId>
|
|
||||||
<version>2.1-SNAPSHOT</version>
|
|
||||||
<configuration>
|
|
||||||
<outputFile>target/ant.txt</outputFile>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>test</id>
|
|
||||||
<goals>
|
|
||||||
<goal>touch</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>validate</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
|
@ -1,80 +0,0 @@
|
||||||
<?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>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>org.apache.maven.its.mng4786</groupId>
|
|
||||||
<artifactId>test</artifactId>
|
|
||||||
<version>0.1</version>
|
|
||||||
|
|
||||||
<name>Maven Integration Test :: MNG-4786</name>
|
|
||||||
<description>Verify that plugins whose mojos are implemented as Ant scripts and use the Maven 2.1.x Ant support can be
|
|
||||||
invoked. The essential bits here are that Ant-based mojos are instantiated via a custom component factory, yet
|
|
||||||
must undergo the same IoC as for regular Java components. And the 2.1.x Ant support actually requires injection
|
|
||||||
of a logger.</description>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.its.plugins</groupId>
|
|
||||||
<artifactId>maven-it-plugin-ant-based</artifactId>
|
|
||||||
<version>2.1-SNAPSHOT</version>
|
|
||||||
<configuration>
|
|
||||||
<outputFile>target/ant.txt</outputFile>
|
|
||||||
</configuration>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven</groupId>
|
|
||||||
<artifactId>maven-script-ant</artifactId>
|
|
||||||
<version>2.1.0</version>
|
|
||||||
<exclusions>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>org.apache.maven</groupId>
|
|
||||||
<artifactId>maven-project</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>org.apache.maven</groupId>
|
|
||||||
<artifactId>maven-core</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
|
||||||
<artifactId>plexus-component-api</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
|
||||||
<artifactId>plexus-io</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>test</id>
|
|
||||||
<goals>
|
|
||||||
<goal>touch</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>validate</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
|
@ -1,104 +0,0 @@
|
||||||
<?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.plugins</groupId>
|
|
||||||
<artifactId>maven-it-plugins</artifactId>
|
|
||||||
<version>2.1-SNAPSHOT</version>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<artifactId>maven-it-plugin-ant-based</artifactId>
|
|
||||||
<packaging>maven-plugin</packaging>
|
|
||||||
|
|
||||||
<name>Maven IT Plugin :: Ant-Based</name>
|
|
||||||
<description>A test plugin whose mojos are implemented via Ant scripts.</description>
|
|
||||||
<inceptionYear>2009</inceptionYear>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.test.skip>true</maven.test.skip>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
|
||||||
<artifactId>maven-script-ant</artifactId>
|
|
||||||
<version>3.15.1</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.ant</groupId>
|
|
||||||
<artifactId>ant</artifactId>
|
|
||||||
<version>1.10.15</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.ant</groupId>
|
|
||||||
<artifactId>ant-launcher</artifactId>
|
|
||||||
<version>1.10.15</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
|
||||||
<!-- NOTE: Ensure Ant scripts get copied to JAR regardless of MPLUGIN-136/MNG-3741 -->
|
|
||||||
<directory>src/main/scripts</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.build.xml</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-plugin-plugin</artifactId>
|
|
||||||
<!--
|
|
||||||
NOTE: We deliberately use version 2.4.x here as it produces interesting plugin descriptors for Ant-based
|
|
||||||
mojos, namely something like <implementation>/touch.build.xml:touch</implementation>. Note the leading
|
|
||||||
slash in this case. This string will be used as a resource name to load the Ant script from the plugin
|
|
||||||
class path which requires some special treatment to work (ClassLoader.getResource() usually does not find
|
|
||||||
resources that have a leading slash).
|
|
||||||
NOTE: We use a version that is different from the version used by the other modules to workaround MNG-1323
|
|
||||||
via MNG-3284.
|
|
||||||
|
|
||||||
cstamas: this above is untrue anymore, plugin and suite updated to 3.x as part of Maven 4 work.
|
|
||||||
-->
|
|
||||||
<version>3.15.1</version>
|
|
||||||
<configuration>
|
|
||||||
<!-- NOTE: We use a handwritten descriptor to decouple from MPLUGIN-136/MNG-3741 so dump the generated one -->
|
|
||||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
||||||
<goalPrefix>maven-it-plugin-ant-based</goalPrefix>
|
|
||||||
<extractors>
|
|
||||||
<extractor>ant</extractor>
|
|
||||||
</extractors>
|
|
||||||
</configuration>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
|
||||||
<artifactId>maven-plugin-tools-ant</artifactId>
|
|
||||||
<version>3.15.1</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
|
@ -1,114 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- NOTE: Using handwritten descriptor to decouple from MPLUGIN-136/MNG-3741 -->
|
|
||||||
<plugin>
|
|
||||||
<description>A test plugin whose mojos are implemented via Ant scripts.</description>
|
|
||||||
<groupId>org.apache.maven.its.plugins</groupId>
|
|
||||||
<artifactId>maven-it-plugin-ant-based</artifactId>
|
|
||||||
<version>2.1-SNAPSHOT</version>
|
|
||||||
<goalPrefix>itant-based</goalPrefix>
|
|
||||||
<isolatedRealm>false</isolatedRealm>
|
|
||||||
<inheritedByDefault>true</inheritedByDefault>
|
|
||||||
<mojos>
|
|
||||||
<mojo>
|
|
||||||
<goal>touch</goal>
|
|
||||||
<description>Creates a touch file.</description>
|
|
||||||
<requiresDirectInvocation>false</requiresDirectInvocation>
|
|
||||||
<requiresProject>true</requiresProject>
|
|
||||||
<requiresReports>false</requiresReports>
|
|
||||||
<aggregator>false</aggregator>
|
|
||||||
<requiresOnline>false</requiresOnline>
|
|
||||||
<inheritedByDefault>false</inheritedByDefault>
|
|
||||||
<implementation>/touch.build.xml:touch</implementation>
|
|
||||||
<language>ant-mojo</language>
|
|
||||||
<configurator>map-oriented</configurator>
|
|
||||||
<composer>map-oriented</composer>
|
|
||||||
<instantiationStrategy>per-lookup</instantiationStrategy>
|
|
||||||
<executionStrategy>once-per-session</executionStrategy>
|
|
||||||
<parameters>
|
|
||||||
<parameter>
|
|
||||||
<name>outputFile</name>
|
|
||||||
<type>java.io.File</type>
|
|
||||||
<required>false</required>
|
|
||||||
<editable>true</editable>
|
|
||||||
<description>The path to the touch file.</description>
|
|
||||||
</parameter>
|
|
||||||
<parameter>
|
|
||||||
<name>basedir</name>
|
|
||||||
<alias>ant.basedir</alias>
|
|
||||||
<type>java.io.File</type>
|
|
||||||
<required>true</required>
|
|
||||||
<editable>true</editable>
|
|
||||||
<description>The base directory from which to execute the Ant script.</description>
|
|
||||||
</parameter>
|
|
||||||
<parameter>
|
|
||||||
<name>messageLevel</name>
|
|
||||||
<alias>ant.messageLevel</alias>
|
|
||||||
<type>java.lang.String</type>
|
|
||||||
<required>false</required>
|
|
||||||
<editable>true</editable>
|
|
||||||
<description>The message-level used to tune the verbosity of Ant logging.</description>
|
|
||||||
</parameter>
|
|
||||||
</parameters>
|
|
||||||
<configuration>
|
|
||||||
<outputFile implementation="java.io.File" default-value="target/touch.txt"/>
|
|
||||||
<basedir implementation="java.io.File" default-value="${basedir}">${antBasedir}</basedir>
|
|
||||||
<messageLevel implementation="java.lang.String" default-value="info">${antMessageLevel}</messageLevel>
|
|
||||||
</configuration>
|
|
||||||
</mojo>
|
|
||||||
</mojos>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven</groupId>
|
|
||||||
<artifactId>maven-script-ant</artifactId>
|
|
||||||
<type>jar</type>
|
|
||||||
<version>2.0.6</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven</groupId>
|
|
||||||
<artifactId>maven-plugin-api</artifactId>
|
|
||||||
<version>3.8.6</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
|
||||||
<artifactId>plexus-ant-factory</artifactId>
|
|
||||||
<type>jar</type>
|
|
||||||
<version>1.0-alpha-2</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
|
||||||
<artifactId>plexus-utils</artifactId>
|
|
||||||
<type>jar</type>
|
|
||||||
<version>1.0.5</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>classworlds</groupId>
|
|
||||||
<artifactId>classworlds</artifactId>
|
|
||||||
<type>jar</type>
|
|
||||||
<version>1.1-alpha-2</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
|
||||||
<artifactId>plexus-container-default</artifactId>
|
|
||||||
<type>jar</type>
|
|
||||||
<version>1.0-alpha-9-stable-1</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
<type>jar</type>
|
|
||||||
<version>3.8.1</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.ant</groupId>
|
|
||||||
<artifactId>ant</artifactId>
|
|
||||||
<type>jar</type>
|
|
||||||
<version>1.7.1</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.ant</groupId>
|
|
||||||
<artifactId>ant-launcher</artifactId>
|
|
||||||
<type>jar</type>
|
|
||||||
<version>1.7.1</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</plugin>
|
|
|
@ -1,27 +0,0 @@
|
||||||
<?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 name="IT" default="touch" basedir=".">
|
|
||||||
|
|
||||||
<target name="touch" description="Creates a touch file.">
|
|
||||||
<echo level="info" message="[MAVEN-CORE-IT-LOG] Creating touch file ${outputFile}" />
|
|
||||||
<touch file="${outputFile}" mkdirs="true" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
|
|
@ -1,38 +0,0 @@
|
||||||
<?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.
|
|
||||||
-->
|
|
||||||
<pluginMetadata>
|
|
||||||
<mojos>
|
|
||||||
<mojo>
|
|
||||||
<goal>touch</goal>
|
|
||||||
<call>touch</call>
|
|
||||||
<description>Creates a touch file.</description>
|
|
||||||
<requiresProject>true</requiresProject>
|
|
||||||
<parameters>
|
|
||||||
<parameter>
|
|
||||||
<name>touch.outputFile</name>
|
|
||||||
<property>outputFile</property>
|
|
||||||
<defaultValue>target/touch.txt</defaultValue>
|
|
||||||
<type>java.io.File</type>
|
|
||||||
<description>The path to the touch file.</description>
|
|
||||||
</parameter>
|
|
||||||
</parameters>
|
|
||||||
</mojo>
|
|
||||||
</mojos>
|
|
||||||
</pluginMetadata>
|
|
|
@ -1,33 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
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/DECORATION/1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.3.0 http://maven.apache.org/xsd/decoration-1.3.0.xsd"
|
|
||||||
name="Plugins">
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<menu name="Overview">
|
|
||||||
<item name="Introduction" href="index.html"/>
|
|
||||||
<item name="Goals" href="plugin-info.html"/>
|
|
||||||
</menu>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</project>
|
|
|
@ -55,4 +55,16 @@ under the License.
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-plugin-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<goalPrefix>itconfiguration</goalPrefix>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -50,4 +50,16 @@ under the License.
|
||||||
<module>maven-surefire-plugin</module>
|
<module>maven-surefire-plugin</module>
|
||||||
<module>maven-war-plugin</module>
|
<module>maven-war-plugin</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-plugin-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<goalPrefix combine.self="override" />
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -51,12 +51,12 @@ under the License.
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.wagon</groupId>
|
<groupId>org.apache.maven.wagon</groupId>
|
||||||
<artifactId>wagon-ssh</artifactId>
|
<artifactId>wagon-ssh</artifactId>
|
||||||
<version>3.5.3</version>
|
<version>${wagonVersion}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.wagon</groupId>
|
<groupId>org.apache.maven.wagon</groupId>
|
||||||
<artifactId>wagon-file</artifactId>
|
<artifactId>wagon-file</artifactId>
|
||||||
<version>3.5.3</version>
|
<version>${wagonVersion}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -35,7 +35,6 @@ under the License.
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>maven-it-plugin-active-collection</module>
|
<module>maven-it-plugin-active-collection</module>
|
||||||
<module>maven-it-plugin-ant-based</module>
|
|
||||||
<module>maven-it-plugin-artifact</module>
|
<module>maven-it-plugin-artifact</module>
|
||||||
<module>maven-it-plugin-class-loader</module>
|
<module>maven-it-plugin-class-loader</module>
|
||||||
<module>maven-it-plugin-configuration</module>
|
<module>maven-it-plugin-configuration</module>
|
||||||
|
@ -102,6 +101,18 @@ under the License.
|
||||||
<distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
|
<distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-plugin-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<goalPrefix>fluke</goalPrefix>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
<reporting>
|
<reporting>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
|
@ -45,7 +45,7 @@ under the License.
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.wagon</groupId>
|
<groupId>org.apache.maven.wagon</groupId>
|
||||||
<artifactId>wagon-provider-api</artifactId>
|
<artifactId>wagon-provider-api</artifactId>
|
||||||
<version>3.5.3</version>
|
<version>${wagonVersion}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
<groupId>org.codehaus.plexus</groupId>
|
||||||
|
|
|
@ -61,4 +61,15 @@ under the License.
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-plugin-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<goalPrefix>bootstrap</goalPrefix>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -74,7 +74,7 @@ under the License.
|
||||||
<!-- <maven.compiler.target>8</maven.compiler.target>-->
|
<!-- <maven.compiler.target>8</maven.compiler.target>-->
|
||||||
|
|
||||||
<maven-version>4.0.0-beta-6-SNAPSHOT</maven-version>
|
<maven-version>4.0.0-beta-6-SNAPSHOT</maven-version>
|
||||||
<maven-plugin-tools-version>3.6.4</maven-plugin-tools-version>
|
<maven-plugin-tools-version>3.15.1</maven-plugin-tools-version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
|
@ -167,7 +167,7 @@ under the License.
|
||||||
<tagletArtifact>
|
<tagletArtifact>
|
||||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
<groupId>org.apache.maven.plugin-tools</groupId>
|
||||||
<artifactId>maven-plugin-tools-javadoc</artifactId>
|
<artifactId>maven-plugin-tools-javadoc</artifactId>
|
||||||
<version>3.5.2</version>
|
<version>${maven-plugin-tools-version}</version>
|
||||||
</tagletArtifact>
|
</tagletArtifact>
|
||||||
</tagletArtifacts>
|
</tagletArtifacts>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
Loading…
Reference in New Issue