integration test clean up, making it possible to run using the -tests.jar.

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@578616 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2007-09-24 01:31:02 +00:00
parent c475e14c2d
commit 110980aa8d
58 changed files with 177 additions and 186 deletions

View File

@ -1,17 +1,48 @@
* Instructions
Running the following from the top-level directory builds a distributable:
----
mvn install
----
If you wish to also run the integration tests themselves:
----
mvn -Prun-its install
----
This command can also be run from the core-integration-tests directory if the prerequisite artifacts have already been
installed or deployed.
* Outstanding Issues
The top things that could be done: The top things that could be done:
1) The issues that would be most helpful that could be tackled on a piecewise basis by many would be to take plugin specific ITs out of the ITs. There are many in there for the surefire plugin so while you're doing that you can look at it. Piecewise but probably totally simple because you have to replace it with an IT that actually tests what it was testing. A lot of time I have had to make a new IT plugin flavour. 1) The issues that would be most helpful that could be tackled on a piecewise basis by many would be to take plugin
specific ITs out of the ITs. There are many in there for the surefire plugin so while you're doing that you can look
at it. Piecewise but probably totally simple because you have to replace it with an IT that actually tests what it
was testing. A lot of time I have had to make a new IT plugin flavour.
2) The next issue of importance would be to collect all the in IT plugin plugins, invokers and verifiers and align all theses. 2) The next issue of importance would be to collect all the in IT plugin plugins, invokers and verifiers and align all
these.
3) Once 2) is done then we wire the embedder option into the resulting invoker. 3) Once 2) is done then we wire the embedder option into the resulting invoker.
As far as them working in situ: the ITs could now run from the top level of http://svn.apache.org/repos/asf/maven/core-integration-testing/trunk/ with an addition to the POM. It's not there because I generally build from the top-level and then walk into http://svn.apache.org/repos/asf/maven/core-integration-testing/trunk/core-integration-tests/. The invoker plugin has been released and that's what I used to install the supporting artifacts because they can't install in a reactor run normally because there are 5 artifacts with the id. 4) Proper isolation. The tests currently pick up your Maven settings file and current local repository. A clean local
repo can be used but it would result in a lot of unnecessary artifact retrieval. This fails in a locked down
environment (as additional repositories declared in IT 92, 94 and 120 are ignored). It also causes other risks.
A possible solution is to construct a repository artifact (using a POM with the dependency plugin to create an
assembly) that represents everything used by the ITs, then to have the setUp lay that out as a remote repo and use a
controlled settings.xml that uses a clean local repository, and mirrors central to that remote repository.
I am not entirely happy with the structure we have but I don't think it's worth changing right now until 1) and 2) are done. It's not obvious how to run them from and IDE and that's where I've found it to be most convenient to run them. 5) The support artifacts are currently deployed to the central repository, meaning they can get out of sync with those
in SVN (unless they are assumed to have been 'released'). After solving (4), these could be injected into the
constructed repository instead.
I am not entirely happy with the structure we have but I don't think it's worth changing right now until 1) and 2) are
done. It's not obvious how to run them from and IDE and that's where I've found it to be most convenient to run them.
- [-] Goals
- [ ] An IT should be completely self-contained so that the problem - [ ] An IT should be completely self-contained so that the problem
can be understood by looking in one place, in one Maven can be understood by looking in one place, in one Maven
project. project.
@ -19,11 +50,6 @@ I am not entirely happy with the structure we have but I don't think it's worth
easily create ITs for us. The is not completed but we do have the easily create ITs for us. The is not completed but we do have the
core-integration-test-sample directory with has a sample I core-integration-test-sample directory with has a sample I
offered to users. offered to users.
- [+] The ITs should be in a project of their own so that we can
reuse them across versions of Maven. We could actually run
new versions of integration tests against old versions of
Maven. Solution: the ITs are now in a separate build and it
is possible to run them
- [ ] We should be able to easily integrate the IT into a larger - [ ] We should be able to easily integrate the IT into a larger
run where we can use forked or embedded execution. run where we can use forked or embedded execution.
- [ ] We should create Archetypes for all categories of problems so - [ ] We should create Archetypes for all categories of problems so
@ -52,17 +78,6 @@ I am not entirely happy with the structure we have but I don't think it's worth
set that up. Needs to be fully fixed. But it is much nicer set that up. Needs to be fully fixed. But it is much nicer
running this stuff in your IDE. running this stuff in your IDE.
- [-] Problems with ITs - [-] Problems with ITs
- [+] Verifier jar required by the bootstrap requires a special
verifier.jar there is no released version of this tool.
Solution: the bootstrap now uses Ant and we've gotten rid of
a lot of the complexity.
- [+] The maven-core-it plugin needs to be decoupled into its
separate purposes because there are currently 12 different
things going on in the plugin and it would be really
confusing for a new user to figure out what's going on in the
plugin and how it applies to the integration testing.
Solution: these have now been broken down into plugins that
correspond to their function in the ITs.
- [ ] it0006 is an integration test for the verifier plugin. - [ ] it0006 is an integration test for the verifier plugin.
- [ ] it0014 uses the compiler plugin to test plugin configuration. - [ ] it0014 uses the compiler plugin to test plugin configuration.
- [ ] it0016 is an integration test for the WAR plugin. - [ ] it0016 is an integration test for the WAR plugin.

View File

@ -21,7 +21,7 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-configuration</artifactId> <artifactId>maven-it-plugin-configuration</artifactId>
@ -31,7 +31,6 @@
A plugin that allows any configuration in the form of a DOM which allows inspection after A plugin that allows any configuration in the form of a DOM which allows inspection after
configuration processing inside Maven's core. configuration processing inside Maven's core.
</description> </description>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2001</inceptionYear> <inceptionYear>2001</inceptionYear>
<dependencies> <dependencies>
<dependency> <dependency>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-context-passing</artifactId> <artifactId>maven-it-plugin-context-passing</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Integration Test Plugin :: Context Passing</name> <name>Maven Integration Test Plugin :: Context Passing</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2006</inceptionYear> <inceptionYear>2006</inceptionYear>
<properties> <properties>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-fork</artifactId> <artifactId>maven-it-plugin-fork</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Integration Test Plugin :: Fork</name> <name>Maven Integration Test Plugin :: Fork</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2006</inceptionYear> <inceptionYear>2006</inceptionYear>
<dependencies> <dependencies>
<dependency> <dependency>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-generate-envar-properties</artifactId> <artifactId>maven-it-plugin-generate-envar-properties</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Integration Test Plugin :: Envar</name> <name>Maven Integration Test Plugin :: Envar</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2006</inceptionYear> <inceptionYear>2006</inceptionYear>
<properties> <properties>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-generate-properties</artifactId> <artifactId>maven-it-plugin-generate-properties</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Integration Test Plugin :: Interpolated POM Configuration</name> <name>Maven Integration Test Plugin :: Interpolated POM Configuration</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2006</inceptionYear> <inceptionYear>2006</inceptionYear>
<properties> <properties>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-loadable</artifactId> <artifactId>maven-it-plugin-loadable</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Integration Test Plugin :: Loadable</name> <name>Maven Integration Test Plugin :: Loadable</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2006</inceptionYear> <inceptionYear>2006</inceptionYear>
<properties> <properties>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-no-project</artifactId> <artifactId>maven-it-plugin-no-project</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Core Integration Test Plugin</name> <name>Maven Core Integration Test Plugin</name>
<version>1.1-SNAPSHOT</version>
<inceptionYear>2001</inceptionYear> <inceptionYear>2001</inceptionYear>
<properties> <properties>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-packaging</artifactId> <artifactId>maven-it-plugin-packaging</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Integration Test Plugin :: Packaging</name> <name>Maven Integration Test Plugin :: Packaging</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2006</inceptionYear> <inceptionYear>2006</inceptionYear>
<dependencies> <dependencies>
<dependency> <dependency>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-parameter-implementation</artifactId> <artifactId>maven-it-plugin-parameter-implementation</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Integration Test Plugin :: Parameter Implementation</name> <name>Maven Integration Test Plugin :: Parameter Implementation</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2006</inceptionYear> <inceptionYear>2006</inceptionYear>
<properties> <properties>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-setter</artifactId> <artifactId>maven-it-plugin-setter</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Integration Test Plugin :: Setter</name> <name>Maven Integration Test Plugin :: Setter</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2006</inceptionYear> <inceptionYear>2006</inceptionYear>
<properties> <properties>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Integration Test Plugin :: Touch</name> <name>Maven Integration Test Plugin :: Touch</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2001</inceptionYear> <inceptionYear>2001</inceptionYear>
<dependencies> <dependencies>
<dependency> <dependency>

View File

@ -21,13 +21,12 @@
<parent> <parent>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-it-plugin-uses-properties</artifactId> <artifactId>maven-it-plugin-uses-properties</artifactId>
<packaging>maven-plugin</packaging> <packaging>maven-plugin</packaging>
<name>Maven Integration Test Plugin :: Uses Properties Plugin</name> <name>Maven Integration Test Plugin :: Uses Properties Plugin</name>
<version>1.0-SNAPSHOT</version>
<inceptionYear>2006</inceptionYear> <inceptionYear>2006</inceptionYear>
<properties> <properties>

View File

@ -2,12 +2,11 @@
<parent> <parent>
<artifactId>core-integration-testing</artifactId> <artifactId>core-integration-testing</artifactId>
<groupId>org.apache.maven.its</groupId> <groupId>org.apache.maven.its</groupId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugins</artifactId> <artifactId>maven-it-plugins</artifactId>
<version>1-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>
<module>maven-it-plugin-configuration</module> <module>maven-it-plugin-configuration</module>

View File

@ -1,5 +0,0 @@
package org.apache.maven.it;
public class Support
{
}

View File

@ -1,5 +0,0 @@
package org.apache.maven.it;
public class Support
{
}

View File

@ -1,5 +0,0 @@
package org.apache.maven.it;
public class Support
{
}

View File

@ -1,5 +0,0 @@
package org.apache.maven.it;
public class Support
{
}

View File

@ -1,5 +0,0 @@
package org.apache.maven.it;
public class Support
{
}

View File

@ -1,8 +0,0 @@
#!/bin/sh
v="1.0 1.1 1.1-old-location 1.2 1.3 1.4"
for i in $v
do
( cd $i; mvn install )
done

View File

@ -21,29 +21,26 @@
<artifactId>integration-test-support-artifacts</artifactId> <artifactId>integration-test-support-artifacts</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Integration Test Support Artifacts</name> <name>Integration Test Support Artifacts</name>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-invoker-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<configuration> <version>2.1</version>
<debug>true</debug> <configuration>
<projectsDirectory>${basedir}</projectsDirectory> <descriptor>src/main/assembly/repo.xml</descriptor>
<pomIncludes> </configuration>
<pomInclude>**/pom.xml</pomInclude> <executions>
</pomIncludes> <execution>
</configuration> <phase>package</phase>
<executions> <goals>
<execution> <goal>single</goal>
<phase>install</phase> </goals>
<goals> </execution>
<goal>run</goal> </executions>
</goals> </plugin>
</execution> </plugins>
</executions> </build>
</plugin>
</plugins>
</build>
</project> </project>

View File

@ -0,0 +1,33 @@
<!--
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.
-->
<assembly>
<id>repo</id>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>src/main/repo</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
<includeBaseDirectory>false</includeBaseDirectory>
</assembly>

View File

@ -19,12 +19,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <groupId>org.apache.maven.its</groupId>
<artifactId>core-integration-testing</artifactId>
<groupId>org.apache.maven.its</groupId>
<version>1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>maven-core-it-support-old-location</artifactId> <artifactId>maven-core-it-support-old-location</artifactId>
<version>1.1</version> <version>1.1</version>
<distributionManagement> <distributionManagement>

View File

@ -19,12 +19,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <groupId>org.apache.maven.its</groupId>
<artifactId>core-integration-testing</artifactId>
<groupId>org.apache.maven.its</groupId>
<version>1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>maven-core-it-support</artifactId> <artifactId>maven-core-it-support</artifactId>
<version>1.0</version> <version>1.0</version>
</project> </project>

View File

@ -19,12 +19,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <groupId>org.apache.maven.its</groupId>
<artifactId>core-integration-testing</artifactId>
<groupId>org.apache.maven.its</groupId>
<version>1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>maven-core-it-support</artifactId> <artifactId>maven-core-it-support</artifactId>
<version>1.1</version> <version>1.1</version>
</project> </project>

View File

@ -19,12 +19,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <groupId>org.apache.maven.its</groupId>
<artifactId>core-integration-testing</artifactId>
<groupId>org.apache.maven.its</groupId>
<version>1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>maven-core-it-support</artifactId> <artifactId>maven-core-it-support</artifactId>
<packaging>it-packaging</packaging> <packaging>it-packaging</packaging>
<version>1.2</version> <version>1.2</version>
@ -33,7 +28,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-packaging</artifactId> <artifactId>maven-it-plugin-packaging</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<extensions>true</extensions> <extensions>true</extensions>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -19,12 +19,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <groupId>org.apache.maven.its</groupId>
<artifactId>core-integration-testing</artifactId>
<groupId>org.apache.maven.its</groupId>
<version>1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>maven-core-it-support</artifactId> <artifactId>maven-core-it-support</artifactId>
<version>1.3</version> <version>1.3</version>
<build> <build>
@ -32,7 +27,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-packaging</artifactId> <artifactId>maven-it-plugin-packaging</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<extensions>true</extensions> <extensions>true</extensions>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -19,12 +19,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <groupId>org.apache.maven.its</groupId>
<artifactId>core-integration-testing</artifactId>
<groupId>org.apache.maven.its</groupId>
<version>1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>maven-core-it-support</artifactId> <artifactId>maven-core-it-support</artifactId>
<version>1.4</version> <version>1.4</version>
<build> <build>
@ -32,7 +27,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-packaging</artifactId> <artifactId>maven-it-plugin-packaging</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<extensions>true</extensions> <extensions>true</extensions>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -3,10 +3,9 @@
<parent> <parent>
<groupId>org.apache.maven.its</groupId> <groupId>org.apache.maven.its</groupId>
<artifactId>core-integration-testing</artifactId> <artifactId>core-integration-testing</artifactId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<artifactId>core-integration-tests</artifactId> <artifactId>core-integration-tests</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Maven Integration Tests</name> <name>Maven Integration Tests</name>
<build> <build>
<plugins> <plugins>
@ -18,31 +17,54 @@
<include>**/IntegrationTestSuite.java</include> <include>**/IntegrationTestSuite.java</include>
</includes> </includes>
<forkMode>never</forkMode> <forkMode>never</forkMode>
<skip>true</skip>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>run-its</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies> <dependencies>
<!-- needed for VersionRange and Version -->
<dependency> <dependency>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven.its</groupId>
<artifactId>maven-artifact</artifactId> <artifactId>maven-integration-test-helper</artifactId>
<version>2.0.5</version> <version>2.1-SNAPSHOT</version>
<!-- TODO: not transitive in tests artifact, so must be left in main scope
<scope>test</scope>
-->
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven.shared</groupId> <groupId>org.apache.maven.shared</groupId>
<artifactId>maven-verifier</artifactId> <artifactId>maven-verifier</artifactId>
<version>1.1-SNAPSHOT</version> <version>1.1-SNAPSHOT</version>
</dependency> <!-- TODO: not transitive in tests artifact, so must be left in main scope
<dependency> <scope>test</scope>
<groupId>org.apache.maven.its</groupId> -->
<artifactId>maven-integration-test-helper</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -2,13 +2,13 @@ package org.apache.maven.integrationtests;
import org.apache.maven.it.Verifier; import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor; import org.apache.maven.it.util.ResourceExtractor;
import org.apache.maven.it.util.FileUtils;
import java.io.File; import java.io.File;
public class MavenIT0002Test public class MavenIT0002Test
extends AbstractMavenIntegrationTestCase extends AbstractMavenIntegrationTestCase
{ {
/** /**
* Builds upon it0001: we add the download of a dependency. We delete * Builds upon it0001: we add the download of a dependency. We delete
* the JAR from the local repository and make sure it is there post build. * the JAR from the local repository and make sure it is there post build.

View File

@ -24,7 +24,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>

View File

@ -22,7 +22,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<pluginItem>pluginItem</pluginItem> <pluginItem>pluginItem</pluginItem>
<goalItem>bad-item</goalItem> <goalItem>bad-item</goalItem>

View File

@ -9,7 +9,7 @@
<plugin> <plugin>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<outputDirectory>${basedir}/target/</outputDirectory> <outputDirectory>${basedir}/target/</outputDirectory>
<pluginFile>child-touch-${version}.txt</pluginFile> <pluginFile>child-touch-${version}.txt</pluginFile>

View File

@ -11,7 +11,7 @@
<plugin> <plugin>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<pluginFile>touch-${version}.txt</pluginFile> <pluginFile>touch-${version}.txt</pluginFile>
</configuration> </configuration>

View File

@ -10,7 +10,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<pluginItem>${test}</pluginItem> <pluginItem>${test}</pluginItem>
</configuration> </configuration>

View File

@ -10,7 +10,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<pluginItem>${test}</pluginItem> <pluginItem>${test}</pluginItem>
</configuration> </configuration>

View File

@ -10,7 +10,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<executions> <executions>
<execution> <execution>
<id>test1</id> <id>test1</id>

View File

@ -10,7 +10,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<pluginItem>${test}</pluginItem> <pluginItem>${test}</pluginItem>
</configuration> </configuration>

View File

@ -11,7 +11,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-fork</artifactId> <artifactId>maven-it-plugin-fork</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

View File

@ -11,7 +11,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-packaging</artifactId> <artifactId>maven-it-plugin-packaging</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<extensions>true</extensions> <extensions>true</extensions>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -18,7 +18,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-packaging</artifactId> <artifactId>maven-it-plugin-packaging</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<extensions>true</extensions> <extensions>true</extensions>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -10,7 +10,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<pluginItem>${test}</pluginItem> <pluginItem>${test}</pluginItem>
</configuration> </configuration>

View File

@ -10,7 +10,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<pluginFile>touchFile.txt</pluginFile> <pluginFile>touchFile.txt</pluginFile>
</configuration> </configuration>

View File

@ -21,7 +21,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-setter</artifactId> <artifactId>maven-it-plugin-setter</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<foo>fooValue</foo> <foo>fooValue</foo>
<bar>barValue</bar> <bar>barValue</bar>

View File

@ -21,7 +21,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<pluginItem>${m2.foo}</pluginItem> <pluginItem>${m2.foo}</pluginItem>
</configuration> </configuration>

View File

@ -10,7 +10,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-context-passing</artifactId> <artifactId>maven-it-plugin-context-passing</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<value>thrown-value</value> <value>thrown-value</value>
</configuration> </configuration>

View File

@ -14,7 +14,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId> <artifactId>maven-it-plugin-touch</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<configuration> <configuration>
<goalItem>my-test</goalItem> <goalItem>my-test</goalItem>
</configuration> </configuration>

View File

@ -10,7 +10,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-loadable</artifactId> <artifactId>maven-it-plugin-loadable</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<executions> <executions>
<execution> <execution>
<phase>validate</phase> <phase>validate</phase>

View File

@ -13,7 +13,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-loadable</artifactId> <artifactId>maven-it-plugin-loadable</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>commons-logging</groupId> <groupId>commons-logging</groupId>

View File

@ -25,7 +25,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-generate-properties</artifactId> <artifactId>maven-it-plugin-generate-properties</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<executions> <executions>
<execution> <execution>
<phase>process-resources</phase> <phase>process-resources</phase>

View File

@ -26,7 +26,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.its.plugins</groupId> <groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-generate-envar-properties</artifactId> <artifactId>maven-it-plugin-generate-envar-properties</artifactId>
<version>1.0-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<executions> <executions>
<execution> <execution>
<phase>process-resources</phase> <phase>process-resources</phase>

View File

@ -1,13 +1,12 @@
<project> <project>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven.its</groupId>
<artifactId>maven-parent</artifactId> <artifactId>core-integration-testing</artifactId>
<version>7-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
</parent> </parent>
<groupId>org.apache.maven.its</groupId> <groupId>org.apache.maven.its</groupId>
<artifactId>maven-integration-test-helper</artifactId> <artifactId>maven-integration-test-helper</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Maven Integration Tests</name> <name>Maven Integration Tests</name>
<dependencies> <dependencies>
<!-- needed for VersionRange and Version --> <!-- needed for VersionRange and Version -->

View File

@ -27,12 +27,12 @@
<parent> <parent>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-parent</artifactId> <artifactId>maven-parent</artifactId>
<version>7-SNAPSHOT</version> <version>6</version>
<relativePath>../pom/maven/pom.xml</relativePath> <relativePath>../pom/maven/pom.xml</relativePath>
</parent> </parent>
<groupId>org.apache.maven.its</groupId> <groupId>org.apache.maven.its</groupId>
<artifactId>core-integration-testing</artifactId> <artifactId>core-integration-testing</artifactId>
<version>1-SNAPSHOT</version> <version>2.1-SNAPSHOT</version>
<name>Maven Integration Testing</name> <name>Maven Integration Testing</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<url>http://maven.apache.org</url> <url>http://maven.apache.org</url>
@ -47,6 +47,7 @@
</issueManagement> </issueManagement>
<modules> <modules>
<module>core-integration-testing-plugins</module> <module>core-integration-testing-plugins</module>
<module>core-integration-tests</module>
<module>core-integration-testing-support</module> <module>core-integration-testing-support</module>
<module>maven-integration-test-helper</module> <module>maven-integration-test-helper</module>
</modules> </modules>