This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-install-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 936450d  Move deterministic ITs to JUnit 5 unit tests and rename 
remaining ITs
936450d is described below

commit 936450d7ee03c699a18c67c934d99d7c06eafc49
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sat Nov 21 13:51:50 2026 +0100

    Move deterministic ITs to JUnit 5 unit tests and rename remaining ITs
    
    Part of #497
---
 src/it/attach-jar-checksum/pom.xml                 |  85 -------------
 src/it/attach-jar-checksum/setup.groovy            |  29 -----
 src/it/attach-jar-checksum/verify.groovy           |  66 ----------
 src/it/gav-validation/invoker.properties           |  22 ----
 src/it/gav-validation/pom.xml                      |  51 --------
 src/it/gav-validation/setup.groovy                 |  29 -----
 src/it/gav-validation/test-invalid.properties      |  24 ----
 src/it/gav-validation/test-missing.properties      |  22 ----
 src/it/gav-validation/test.jar                     | Bin 345 -> 0 bytes
 src/it/gav-validation/verify.groovy                |  35 ------
 src/it/generate-pom-auto-1/pom.xml                 |  45 -------
 src/it/generate-pom-auto-1/setup.groovy            |  29 -----
 src/it/generate-pom-auto-1/test.jar                | Bin 345 -> 0 bytes
 src/it/generate-pom-auto-1/test.properties         |  22 ----
 src/it/generate-pom-auto-1/verify.groovy           |  45 -------
 src/it/generate-pom-auto-2/invoker.properties      |  18 ---
 src/it/generate-pom-auto-2/pom.xml                 |  45 -------
 src/it/generate-pom-auto-2/setup.groovy            |  34 -----
 src/it/generate-pom-auto-2/test.jar                | Bin 345 -> 0 bytes
 src/it/generate-pom-auto-2/test.properties         |  22 ----
 src/it/generate-pom-auto-2/verify.groovy           |  48 -------
 .../invoker.properties                             |   0
 .../module1/pom.xml                                |   0
 .../pom.xml                                        |   0
 .../test.properties                                |   0
 .../verify.groovy                                  |   0
 .../invoker.properties                             |   0
 .../pom.xml                                        |   0
 .../test.properties                                |   0
 .../verify.groovy                                  |   0
 .../invoker.properties                             |   0
 .../pom.xml                                        |   0
 .../setup.groovy                                   |   7 +-
 .../test-0.1.jar                                   | Bin
 .../test-0.1.pom                                   |   0
 .../test.properties                                |   0
 .../verify.groovy                                  |   0
 .../invoker.properties                             |   0
 .../invoker.properties                             |  18 ---
 .../pom.xml                                        |  46 -------
 .../setup.groovy                                   |  29 -----
 .../test.jar                                       | Bin 345 -> 0 bytes
 .../test.properties                                |  24 ----
 .../verify.groovy                                  |  58 ---------
 .../invoker.properties                             |  18 ---
 src/it/local-repo-override-with-checksum/pom.xml   |  46 -------
 .../local-repo-override-with-checksum/setup.groovy |  29 -----
 src/it/local-repo-override-with-checksum/test.jar  | Bin 345 -> 0 bytes
 .../test.properties                                |  23 ----
 .../verify.groovy                                  |  55 --------
 src/it/minstall-55/invoker.properties              |  18 ---
 src/it/no-main-artifact-1/invoker.properties       |  17 ---
 src/it/no-main-artifact-1/pom.xml                  | 101 ---------------
 src/it/no-main-artifact-1/setup.groovy             |  29 -----
 src/it/no-main-artifact-1/verify.groovy            |  23 ----
 src/it/no-main-artifact-2/invoker.properties       |  17 ---
 src/it/no-main-artifact-2/pom.xml                  | 100 ---------------
 src/it/no-main-artifact-2/setup.groovy             |  29 -----
 src/it/no-main-artifact-2/verify.groovy            |  23 ----
 .../invoker.properties                             |   0
 .../module1/pom.xml                                |   0
 .../module2/pom.xml                                |   0
 .../pom.xml                                        |   0
 .../verify.groovy                                  |   0
 .../module1/pom.xml                                |   0
 .../module2/pom.xml                                |   0
 src/it/{MINSTALL-99 => per-project-config}/pom.xml |   0
 .../verify.groovy                                  |   0
 src/it/pom-checksum/pom.xml                        |  64 ----------
 src/it/pom-checksum/setup.groovy                   |  29 -----
 src/it/pom-checksum/verify.groovy                  |  57 ---------
 .../invoker.properties                             |   0
 .../pom.xml                                        |   0
 .../setup.groovy                                   |   4 +-
 .../verify.groovy                                  |   0
 src/it/skip-install/pom.xml                        |  72 -----------
 src/it/skip-install/setup.groovy                   |  29 -----
 src/it/skip-install/verify.groovy                  |  40 ------
 .../maven/plugins/install/InstallFileMojoTest.java | 138 ++++++++++++++++++++
 .../maven/plugins/install/InstallMojoTest.java     | 139 ++++++++++++++++++++-
 80 files changed, 274 insertions(+), 1679 deletions(-)

diff --git a/src/it/attach-jar-checksum/pom.xml 
b/src/it/attach-jar-checksum/pom.xml
deleted file mode 100644
index 8867c95..0000000
--- a/src/it/attach-jar-checksum/pom.xml
+++ /dev/null
@@ -1,85 +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>
-
-  <groupId>org.apache.maven.its.install.ajc</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0-SNAPSHOT</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the installation of a simple snapshot JAR with an attached artifact 
and checksums
-  </description>
-
-  <properties>
-    <maven.test.skip>true</maven.test.skip>
-  </properties>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>@mavenCompilerPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-install-plugin</artifactId>
-        <version>@project.version@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>@mavenJarPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-resources-plugin</artifactId>
-        <version>@mavenResourcesPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-source-plugin</artifactId>
-        <version>@mavenSourcePluginVersion@</version>
-        <configuration>
-          <forceCreation>true</forceCreation>
-        </configuration>
-        <executions>
-          <execution>
-            <id>attach-sources</id>
-            <goals>
-              <goal>jar</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>@mavenSurefirePluginVersion@</version>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
diff --git a/src/it/attach-jar-checksum/setup.groovy 
b/src/it/attach-jar-checksum/setup.groovy
deleted file mode 100644
index 9c52da8..0000000
--- a/src/it/attach-jar-checksum/setup.groovy
+++ /dev/null
@@ -1,29 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
-File file = new File( localRepositoryPath, "org/apache/maven/its/install/ajc" 
);
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/attach-jar-checksum/verify.groovy 
b/src/it/attach-jar-checksum/verify.groovy
deleted file mode 100644
index 66b7d95..0000000
--- a/src/it/attach-jar-checksum/verify.groovy
+++ /dev/null
@@ -1,66 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-String[] paths =
-[
-    "org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.pom",
-    "org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.jar",
-    
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT-sources.jar",
-    
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/maven-metadata-local.xml",
-    "org/apache/maven/its/install/ajc/test/maven-metadata-local.xml",
-];
-
-String[] pathsWhichShouldNotExist =
-[
-    
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.pom.md5",
-    
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.pom.sha1",
-    
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.jar.md5",
-    
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.jar.sha1",
-    
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT-sources.jar.md5",
-    
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT-sources.jar.sha1",
-    
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/maven-metadata-local.xml.md5",
-    
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/maven-metadata-local.xml.sha1",
-    "org/apache/maven/its/install/ajc/test/maven-metadata-local.xml.md5",
-    "org/apache/maven/its/install/ajc/test/maven-metadata-local.xml.sha1",
-];
-
-for ( String path : paths )
-{
-    File file = new File( localRepositoryPath, path );
-    System.out.println( "Checking for existence of " + file );
-    if ( !file.isFile() )
-    {
-        throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() 
);
-    }
-}
-
-for ( String path : pathsWhichShouldNotExist )
-{
-    File file = new File( localRepositoryPath, path );
-    System.out.println( "Checking for existence of " + file );
-    if ( file.isFile() )
-    {
-        throw new IOException( "Existing: " + file.getAbsolutePath() );
-    }
-}
-
-return true;
diff --git a/src/it/gav-validation/invoker.properties 
b/src/it/gav-validation/invoker.properties
deleted file mode 100644
index 70d43e4..0000000
--- a/src/it/gav-validation/invoker.properties
+++ /dev/null
@@ -1,22 +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.
-
-invoker.goals = 
org.apache.maven.plugins:maven-install-plugin:${project.version}:install-file
-invoker.buildResult = failure
-
-invoker.userPropertiesFile.1 = test-invalid.properties
-invoker.userPropertiesFile.2 = test-missing.properties
diff --git a/src/it/gav-validation/pom.xml b/src/it/gav-validation/pom.xml
deleted file mode 100644
index 8e2416b..0000000
--- a/src/it/gav-validation/pom.xml
+++ /dev/null
@@ -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 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>
-
-  <groupId>org.apache.maven.its.install.gv</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the manual installation validates the coordinates of the artifact 
just like the model validator would
-    (MINSTALL-59).
-  </description>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-install-plugin</artifactId>
-        <version>@project.version@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-invoker-plugin</artifactId>
-        <version>@mavenInvokerPluginVersion@</version>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
diff --git a/src/it/gav-validation/setup.groovy 
b/src/it/gav-validation/setup.groovy
deleted file mode 100644
index e9f32a3..0000000
--- a/src/it/gav-validation/setup.groovy
+++ /dev/null
@@ -1,29 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
-File file = new File( localRepositoryPath, "org/apache/maven/its/install/gv" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/gav-validation/test-invalid.properties 
b/src/it/gav-validation/test-invalid.properties
deleted file mode 100644
index 679878f..0000000
--- a/src/it/gav-validation/test-invalid.properties
+++ /dev/null
@@ -1,24 +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.
-
-file = test.jar
-packaging = jar
-
-# using invalid coordinates should have install-file bail out
-groupId = invalid~group
-artifactId = invalid/artifactId
-version = 1+
diff --git a/src/it/gav-validation/test-missing.properties 
b/src/it/gav-validation/test-missing.properties
deleted file mode 100644
index 6efaf08..0000000
--- a/src/it/gav-validation/test-missing.properties
+++ /dev/null
@@ -1,22 +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.
-
-file = test.jar
-packaging = jar
-
-# missing coordinates should have install-file bail out
-groupId = groupId
diff --git a/src/it/gav-validation/test.jar b/src/it/gav-validation/test.jar
deleted file mode 100644
index 226277c..0000000
Binary files a/src/it/gav-validation/test.jar and /dev/null differ
diff --git a/src/it/gav-validation/verify.groovy 
b/src/it/gav-validation/verify.groovy
deleted file mode 100644
index f006b22..0000000
--- a/src/it/gav-validation/verify.groovy
+++ /dev/null
@@ -1,35 +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.
- */
-
-String[] paths =
-[
-    "org/apache/maven/its/install/gv",
-];
-
-for ( String path : paths )
-{
-    assert !new File( localRepositoryPath, path ).exists();
-}
-
-File buildLog = new File( basedir, 'build.log' )
-assert buildLog.exists()
-assert buildLog.text.contains( "The artifact information is incomplete" )
-assert buildLog.text.contains( "The artifact information is not valid" )
-
-return true;
diff --git a/src/it/generate-pom-auto-1/pom.xml 
b/src/it/generate-pom-auto-1/pom.xml
deleted file mode 100644
index bb852eb..0000000
--- a/src/it/generate-pom-auto-1/pom.xml
+++ /dev/null
@@ -1,45 +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>
-
-  <groupId>org.apache.maven.its.install.gpa1</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests that by default a POM is generated for the installed file if no POM 
exists already in the local repo.
-  </description>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-install-plugin</artifactId>
-        <version>@project.version@</version>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
diff --git a/src/it/generate-pom-auto-1/setup.groovy 
b/src/it/generate-pom-auto-1/setup.groovy
deleted file mode 100644
index 2337e4f..0000000
--- a/src/it/generate-pom-auto-1/setup.groovy
+++ /dev/null
@@ -1,29 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
-File file = new File( localRepositoryPath, "org/apache/maven/its/install/gpa1" 
);
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/generate-pom-auto-1/test.jar 
b/src/it/generate-pom-auto-1/test.jar
deleted file mode 100644
index 226277c..0000000
Binary files a/src/it/generate-pom-auto-1/test.jar and /dev/null differ
diff --git a/src/it/generate-pom-auto-1/test.properties 
b/src/it/generate-pom-auto-1/test.properties
deleted file mode 100644
index bfe720e..0000000
--- a/src/it/generate-pom-auto-1/test.properties
+++ /dev/null
@@ -1,22 +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.
-
-file = test.jar
-groupId = org.apache.maven.its.install.gpa1
-artifactId = test
-version = 0.1
-packaging = jar
diff --git a/src/it/generate-pom-auto-1/verify.groovy 
b/src/it/generate-pom-auto-1/verify.groovy
deleted file mode 100644
index 5fe13bb..0000000
--- a/src/it/generate-pom-auto-1/verify.groovy
+++ /dev/null
@@ -1,45 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-String[] paths =
-[
-    "org/apache/maven/its/install/gpa1/test/maven-metadata-local.xml",
-    "org/apache/maven/its/install/gpa1/test/0.1/test-0.1.jar",
-    "org/apache/maven/its/install/gpa1/test/0.1/test-0.1.pom",
-];
-
-Set cksumToCheckPaths = new HashSet( Arrays.asList( [
-    "org/apache/maven/its/install/gpa1/test/0.1/test-0.1.jar",
-    "org/apache/maven/its/install/gpa1/test/0.1/test-0.1.pom",
-] as String[] ) );
-
-for ( String path : paths )
-{
-    File file = new File( localRepositoryPath, path );
-    System.out.println( "Checking for existence of " + file );
-    if ( !file.isFile() )
-    {
-        throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() 
);
-    }
-}
-
-return true;
diff --git a/src/it/generate-pom-auto-2/invoker.properties 
b/src/it/generate-pom-auto-2/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/generate-pom-auto-2/invoker.properties
+++ /dev/null
@@ -1,18 +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.
-
-invoker.goals = 
org.apache.maven.plugins:maven-install-plugin:${project.version}:install-file
diff --git a/src/it/generate-pom-auto-2/pom.xml 
b/src/it/generate-pom-auto-2/pom.xml
deleted file mode 100644
index f2f97e9..0000000
--- a/src/it/generate-pom-auto-2/pom.xml
+++ /dev/null
@@ -1,45 +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>
-
-  <groupId>org.apache.maven.its.install.gpa2</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests that by default no POM is generated for the installed file if 
already a POM exists in the local repo.
-  </description>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-install-plugin</artifactId>
-        <version>@project.version@</version>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
diff --git a/src/it/generate-pom-auto-2/setup.groovy 
b/src/it/generate-pom-auto-2/setup.groovy
deleted file mode 100644
index 635aae6..0000000
--- a/src/it/generate-pom-auto-2/setup.groovy
+++ /dev/null
@@ -1,34 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
-File groupDir = new File( localRepositoryPath, 
"org/apache/maven/its/install/gpa2" );
-System.out.println( "Deleting " + groupDir );
-FileUtils.deleteDirectory( groupDir );
-
-File pomFile = new File( localRepositoryPath, 
"org/apache/maven/its/install/gpa2/test/0.1/test-0.1.pom" );
-System.out.println( "Writing " + pomFile );
-pomFile.getParentFile().mkdirs();
-FileUtils.fileWrite( pomFile.getPath(), "UTF-8", "test" );
-
-return true;
diff --git a/src/it/generate-pom-auto-2/test.jar 
b/src/it/generate-pom-auto-2/test.jar
deleted file mode 100644
index 226277c..0000000
Binary files a/src/it/generate-pom-auto-2/test.jar and /dev/null differ
diff --git a/src/it/generate-pom-auto-2/test.properties 
b/src/it/generate-pom-auto-2/test.properties
deleted file mode 100644
index d96c4f3..0000000
--- a/src/it/generate-pom-auto-2/test.properties
+++ /dev/null
@@ -1,22 +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.
-
-file = test.jar
-groupId = org.apache.maven.its.install.gpa2
-artifactId = test
-version = 0.1
-packaging = jar
diff --git a/src/it/generate-pom-auto-2/verify.groovy 
b/src/it/generate-pom-auto-2/verify.groovy
deleted file mode 100644
index 39f2b4b..0000000
--- a/src/it/generate-pom-auto-2/verify.groovy
+++ /dev/null
@@ -1,48 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-String[] paths =
-[
-    "org/apache/maven/its/install/gpa2/test/maven-metadata-local.xml",
-    "org/apache/maven/its/install/gpa2/test/0.1/test-0.1.jar",
-    "org/apache/maven/its/install/gpa2/test/0.1/test-0.1.pom",
-];
-
-for ( String path : paths )
-{
-    File file = new File( localRepositoryPath, path );
-    System.out.println( "Checking for existence of " + file );
-    if ( !file.isFile() )
-    {
-        throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() 
);
-    }
-    if ( path.endsWith( ".pom" ) )
-    {
-        System.out.println( "Checking for original state of " + file );
-        if ( file.length() != "test".length() )
-        {
-            throw new Exception( "Overwritten: " + file.getAbsolutePath() );
-        }
-    }
-}
-
-return true;
diff --git a/src/it/MINSTALL-108/invoker.properties 
b/src/it/install-at-end-default/invoker.properties
similarity index 100%
rename from src/it/MINSTALL-108/invoker.properties
rename to src/it/install-at-end-default/invoker.properties
diff --git a/src/it/MINSTALL-108/module1/pom.xml 
b/src/it/install-at-end-default/module1/pom.xml
similarity index 100%
rename from src/it/MINSTALL-108/module1/pom.xml
rename to src/it/install-at-end-default/module1/pom.xml
diff --git a/src/it/MINSTALL-108/pom.xml b/src/it/install-at-end-default/pom.xml
similarity index 100%
rename from src/it/MINSTALL-108/pom.xml
rename to src/it/install-at-end-default/pom.xml
diff --git a/src/it/MINSTALL-108/test.properties 
b/src/it/install-at-end-default/test.properties
similarity index 100%
rename from src/it/MINSTALL-108/test.properties
rename to src/it/install-at-end-default/test.properties
diff --git a/src/it/MINSTALL-108/verify.groovy 
b/src/it/install-at-end-default/verify.groovy
similarity index 100%
rename from src/it/MINSTALL-108/verify.groovy
rename to src/it/install-at-end-default/verify.groovy
diff --git a/src/it/MINSTALL-52/invoker.properties 
b/src/it/install-file-embedded-pom/invoker.properties
similarity index 100%
rename from src/it/MINSTALL-52/invoker.properties
rename to src/it/install-file-embedded-pom/invoker.properties
diff --git a/src/it/MINSTALL-52/pom.xml 
b/src/it/install-file-embedded-pom/pom.xml
similarity index 100%
rename from src/it/MINSTALL-52/pom.xml
rename to src/it/install-file-embedded-pom/pom.xml
diff --git a/src/it/MINSTALL-52/test.properties 
b/src/it/install-file-embedded-pom/test.properties
similarity index 100%
rename from src/it/MINSTALL-52/test.properties
rename to src/it/install-file-embedded-pom/test.properties
diff --git a/src/it/MINSTALL-52/verify.groovy 
b/src/it/install-file-embedded-pom/verify.groovy
similarity index 100%
rename from src/it/MINSTALL-52/verify.groovy
rename to src/it/install-file-embedded-pom/verify.groovy
diff --git a/src/it/generate-pom-auto-1/invoker.properties 
b/src/it/install-file-generated-pom/invoker.properties
similarity index 100%
rename from src/it/generate-pom-auto-1/invoker.properties
rename to src/it/install-file-generated-pom/invoker.properties
diff --git a/src/it/minstall-55/pom.xml 
b/src/it/install-file-generated-pom/pom.xml
similarity index 100%
rename from src/it/minstall-55/pom.xml
rename to src/it/install-file-generated-pom/pom.xml
diff --git a/src/it/minstall-55/setup.groovy 
b/src/it/install-file-generated-pom/setup.groovy
similarity index 89%
rename from src/it/minstall-55/setup.groovy
rename to src/it/install-file-generated-pom/setup.groovy
index 149dbca..11f04e3 100644
--- a/src/it/minstall-55/setup.groovy
+++ b/src/it/install-file-generated-pom/setup.groovy
@@ -17,13 +17,8 @@
  * under the License.
  */
 
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
 File file = new File( localRepositoryPath, "org/apache/maven/its/install/55" );
 System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
+file.deleteDir();
 
 return true;
diff --git a/src/it/minstall-55/test-0.1.jar 
b/src/it/install-file-generated-pom/test-0.1.jar
similarity index 100%
rename from src/it/minstall-55/test-0.1.jar
rename to src/it/install-file-generated-pom/test-0.1.jar
diff --git a/src/it/minstall-55/test-0.1.pom 
b/src/it/install-file-generated-pom/test-0.1.pom
similarity index 100%
rename from src/it/minstall-55/test-0.1.pom
rename to src/it/install-file-generated-pom/test-0.1.pom
diff --git a/src/it/minstall-55/test.properties 
b/src/it/install-file-generated-pom/test.properties
similarity index 100%
rename from src/it/minstall-55/test.properties
rename to src/it/install-file-generated-pom/test.properties
diff --git a/src/it/minstall-55/verify.groovy 
b/src/it/install-file-generated-pom/verify.groovy
similarity index 100%
rename from src/it/minstall-55/verify.groovy
rename to src/it/install-file-generated-pom/verify.groovy
diff --git a/src/it/MINSTALL-87/invoker.properties 
b/src/it/install-file-missing-file/invoker.properties
similarity index 100%
rename from src/it/MINSTALL-87/invoker.properties
rename to src/it/install-file-missing-file/invoker.properties
diff --git 
a/src/it/local-repo-override-with-checksum-generatePom/invoker.properties 
b/src/it/local-repo-override-with-checksum-generatePom/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/local-repo-override-with-checksum-generatePom/invoker.properties
+++ /dev/null
@@ -1,18 +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.
-
-invoker.goals = 
org.apache.maven.plugins:maven-install-plugin:${project.version}:install-file
diff --git a/src/it/local-repo-override-with-checksum-generatePom/pom.xml 
b/src/it/local-repo-override-with-checksum-generatePom/pom.xml
deleted file mode 100644
index 0dfca77..0000000
--- a/src/it/local-repo-override-with-checksum-generatePom/pom.xml
+++ /dev/null
@@ -1,46 +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>
-
-  <groupId>org.apache.maven.its.install.lro</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the manual installation into a different local repo than the one 
configured in the settings
-    (MINSTALL-35), also installing checksums.
-  </description>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-install-plugin</artifactId>
-        <version>@project.version@</version>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
diff --git a/src/it/local-repo-override-with-checksum-generatePom/setup.groovy 
b/src/it/local-repo-override-with-checksum-generatePom/setup.groovy
deleted file mode 100644
index d37913a..0000000
--- a/src/it/local-repo-override-with-checksum-generatePom/setup.groovy
+++ /dev/null
@@ -1,29 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
-File file = new File( basedir, "target" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/local-repo-override-with-checksum-generatePom/test.jar 
b/src/it/local-repo-override-with-checksum-generatePom/test.jar
deleted file mode 100644
index 226277c..0000000
Binary files a/src/it/local-repo-override-with-checksum-generatePom/test.jar 
and /dev/null differ
diff --git 
a/src/it/local-repo-override-with-checksum-generatePom/test.properties 
b/src/it/local-repo-override-with-checksum-generatePom/test.properties
deleted file mode 100644
index d796040..0000000
--- a/src/it/local-repo-override-with-checksum-generatePom/test.properties
+++ /dev/null
@@ -1,24 +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.
-
-file = test.jar
-groupId = gid
-artifactId = test
-version = 0.1
-packaging = jar
-generatePom = true
-localRepositoryPath = target/local-repo
diff --git a/src/it/local-repo-override-with-checksum-generatePom/verify.groovy 
b/src/it/local-repo-override-with-checksum-generatePom/verify.groovy
deleted file mode 100644
index 6e913c6..0000000
--- a/src/it/local-repo-override-with-checksum-generatePom/verify.groovy
+++ /dev/null
@@ -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.
- */
-
-import java.io.*;
-import java.util.*;
-import java.lang.*;
-
-String[] paths =
-[
-    "gid/test/0.1/test-0.1.jar",
-    "gid/test/0.1/test-0.1.pom",
-];
-
-String[] pathsWhichShouldNotExist =
-[
-    "gid/test/0.1/test-0.1.jar.md5",
-    "gid/test/0.1/test-0.1.jar.sha1",
-    "gid/test/0.1/test-0.1.pom.md5",
-    "gid/test/0.1/test-0.1.pom.sha1",
-];
-
-for ( String path : paths )
-{
-    File file = new File( new File( basedir, "target/local-repo" ), path );
-    System.out.println( "Checking for existence of " + file );
-    if ( !file.isFile() )
-    {
-        throw new FileNotFoundException( "Existing: " + file.getAbsolutePath() 
);
-    }
-}
-
-for ( String path : pathsWhichShouldNotExist )
-{
-    File file = new File( new File( basedir, "target/local-repo" ), path );
-    System.out.println( "Checking for non existence of " + file );
-    if ( file.isFile() )
-    {
-        throw new IOException( "Existing: " + file.getAbsolutePath() );
-    }
-}
-
-return true;
diff --git a/src/it/local-repo-override-with-checksum/invoker.properties 
b/src/it/local-repo-override-with-checksum/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/local-repo-override-with-checksum/invoker.properties
+++ /dev/null
@@ -1,18 +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.
-
-invoker.goals = 
org.apache.maven.plugins:maven-install-plugin:${project.version}:install-file
diff --git a/src/it/local-repo-override-with-checksum/pom.xml 
b/src/it/local-repo-override-with-checksum/pom.xml
deleted file mode 100644
index 0dfca77..0000000
--- a/src/it/local-repo-override-with-checksum/pom.xml
+++ /dev/null
@@ -1,46 +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>
-
-  <groupId>org.apache.maven.its.install.lro</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the manual installation into a different local repo than the one 
configured in the settings
-    (MINSTALL-35), also installing checksums.
-  </description>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-install-plugin</artifactId>
-        <version>@project.version@</version>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
diff --git a/src/it/local-repo-override-with-checksum/setup.groovy 
b/src/it/local-repo-override-with-checksum/setup.groovy
deleted file mode 100644
index d37913a..0000000
--- a/src/it/local-repo-override-with-checksum/setup.groovy
+++ /dev/null
@@ -1,29 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
-File file = new File( basedir, "target" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/local-repo-override-with-checksum/test.jar 
b/src/it/local-repo-override-with-checksum/test.jar
deleted file mode 100644
index 226277c..0000000
Binary files a/src/it/local-repo-override-with-checksum/test.jar and /dev/null 
differ
diff --git a/src/it/local-repo-override-with-checksum/test.properties 
b/src/it/local-repo-override-with-checksum/test.properties
deleted file mode 100644
index cd619e3..0000000
--- a/src/it/local-repo-override-with-checksum/test.properties
+++ /dev/null
@@ -1,23 +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.
-
-file = test.jar
-groupId = gid
-artifactId = test
-version = 0.1
-packaging = jar
-localRepositoryPath = target/local-repo
diff --git a/src/it/local-repo-override-with-checksum/verify.groovy 
b/src/it/local-repo-override-with-checksum/verify.groovy
deleted file mode 100644
index 75a5001..0000000
--- a/src/it/local-repo-override-with-checksum/verify.groovy
+++ /dev/null
@@ -1,55 +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.
- */
-
-import java.io.*;
-import java.util.*;
-import java.lang.*;
-
-String[] paths =
-[
-    "gid/test/0.1/test-0.1.jar",
-];
-
-String[] pathsWhichAreNotAllowedToBeThere =
-[
-    "gid/test/0.1/test-0.1.jar.md5",
-    "gid/test/0.1/test-0.1.jar.sha1",
-];
-
-for ( String path : pathsWhichAreNotAllowedToBeThere )
-{
-    File file = new File( new File( basedir, "target/local-repo" ), path );
-    System.out.println( "Checking for existence of " + file );
-    if ( file.isFile() )
-    {
-        throw new IOException( "Existing file which should not be there: " + 
file.getAbsolutePath() );
-    }
-}
-
-for ( String path : paths )
-{
-    File file = new File( new File( basedir, "target/local-repo" ), path );
-    System.out.println( "Checking for non existence of " + file );
-    if ( !file.isFile() )
-    {
-        throw new FileNotFoundException( "Existing: " + file.getAbsolutePath() 
);
-    }
-}
-
-return true;
diff --git a/src/it/minstall-55/invoker.properties 
b/src/it/minstall-55/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/minstall-55/invoker.properties
+++ /dev/null
@@ -1,18 +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.
-
-invoker.goals = 
org.apache.maven.plugins:maven-install-plugin:${project.version}:install-file
diff --git a/src/it/no-main-artifact-1/invoker.properties 
b/src/it/no-main-artifact-1/invoker.properties
deleted file mode 100644
index e497ae4..0000000
--- a/src/it/no-main-artifact-1/invoker.properties
+++ /dev/null
@@ -1,17 +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.
-invoker.buildResult=failure
\ No newline at end of file
diff --git a/src/it/no-main-artifact-1/pom.xml 
b/src/it/no-main-artifact-1/pom.xml
deleted file mode 100644
index 9145c6a..0000000
--- a/src/it/no-main-artifact-1/pom.xml
+++ /dev/null
@@ -1,101 +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>
-
-  <groupId>org.apache.maven.its.install.nma1</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0-SNAPSHOT</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the installation of a non-POM project that has no main artifact file 
but only attached artifacts (see
-    MINSTALL-18, MINSTALL-40, MINSTALL-41). This variant of the test checks 
the build when target/classes is
-    non-existent.
-  </description>
-
-  <properties>
-    <maven.test.skip>true</maven.test.skip>
-  </properties>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <version>@mavenAntrunPluginVersion@</version>
-        <configuration>
-          <target>
-            <!--
-            NOTE: The Compiler Plugin sets this as the main artifact file, 
should be non-existent for this test.
-            -->
-            <delete dir="target/classes"/>
-          </target>
-        </configuration>
-        <executions>
-          <execution>
-            <id>delete-output-dir</id>
-            <phase>verify</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>@mavenCompilerPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>@mavenJarPluginVersion@</version>
-        <configuration>
-          <classifier>it</classifier>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-install-plugin</artifactId>
-        <version>@project.version@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-resources-plugin</artifactId>
-        <version>@mavenResourcesPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>@mavenSurefirePluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-invoker-plugin</artifactId>
-        <version>@mavenInvokerPluginVersion@</version>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
diff --git a/src/it/no-main-artifact-1/setup.groovy 
b/src/it/no-main-artifact-1/setup.groovy
deleted file mode 100644
index 8715832..0000000
--- a/src/it/no-main-artifact-1/setup.groovy
+++ /dev/null
@@ -1,29 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
-File file = new File( localRepositoryPath, "org/apache/maven/its/install/nma1" 
);
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/no-main-artifact-1/verify.groovy 
b/src/it/no-main-artifact-1/verify.groovy
deleted file mode 100644
index 7274ba5..0000000
--- a/src/it/no-main-artifact-1/verify.groovy
+++ /dev/null
@@ -1,23 +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.
- */
-
-def buildLog = new File ( basedir, "build.log")
-
-assert buildLog.text.contains( "The packaging plugin for project test did not 
assign "
-                                   + "a main file to the project but it has 
attachments. Change packaging to 'pom'." )
\ No newline at end of file
diff --git a/src/it/no-main-artifact-2/invoker.properties 
b/src/it/no-main-artifact-2/invoker.properties
deleted file mode 100644
index e497ae4..0000000
--- a/src/it/no-main-artifact-2/invoker.properties
+++ /dev/null
@@ -1,17 +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.
-invoker.buildResult=failure
\ No newline at end of file
diff --git a/src/it/no-main-artifact-2/pom.xml 
b/src/it/no-main-artifact-2/pom.xml
deleted file mode 100644
index 2e3f6f8..0000000
--- a/src/it/no-main-artifact-2/pom.xml
+++ /dev/null
@@ -1,100 +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>
-
-  <groupId>org.apache.maven.its.install.nma2</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0-SNAPSHOT</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the installation of a non-POM project that has no main artifact file 
but only attached artifacts (see
-    MINSTALL-18, MINSTALL-40, MINSTALL-41). This variant of the test checks 
the build when target/classes is existent.
-  </description>
-
-  <properties>
-    <maven.test.skip>true</maven.test.skip>
-  </properties>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <version>@mavenAntrunPluginVersion@</version>
-        <configuration>
-          <target>
-            <!--
-            NOTE: The Compiler Plugin sets this as the main artifact file, 
should be existent for this test.
-            -->
-            <mkdir dir="target/classes"/>
-          </target>
-        </configuration>
-        <executions>
-          <execution>
-            <id>make-output-dir</id>
-            <phase>verify</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>@mavenCompilerPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>@mavenJarPluginVersion@</version>
-        <configuration>
-          <classifier>it</classifier>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-install-plugin</artifactId>
-        <version>@project.version@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-resources-plugin</artifactId>
-        <version>@mavenResourcesPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>@mavenSurefirePluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-invoker-plugin</artifactId>
-        <version>@mavenInvokerPluginVersion@</version>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
diff --git a/src/it/no-main-artifact-2/setup.groovy 
b/src/it/no-main-artifact-2/setup.groovy
deleted file mode 100644
index 03c64c1..0000000
--- a/src/it/no-main-artifact-2/setup.groovy
+++ /dev/null
@@ -1,29 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
-File file = new File( localRepositoryPath, "org/apache/maven/its/install/nma2" 
);
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/no-main-artifact-2/verify.groovy 
b/src/it/no-main-artifact-2/verify.groovy
deleted file mode 100644
index 7274ba5..0000000
--- a/src/it/no-main-artifact-2/verify.groovy
+++ /dev/null
@@ -1,23 +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.
- */
-
-def buildLog = new File ( basedir, "build.log")
-
-assert buildLog.text.contains( "The packaging plugin for project test did not 
assign "
-                                   + "a main file to the project but it has 
attachments. Change packaging to 'pom'." )
\ No newline at end of file
diff --git a/src/it/MINSTALL-98/invoker.properties 
b/src/it/parallel-reactor-install/invoker.properties
similarity index 100%
rename from src/it/MINSTALL-98/invoker.properties
rename to src/it/parallel-reactor-install/invoker.properties
diff --git a/src/it/MINSTALL-98/module1/pom.xml 
b/src/it/parallel-reactor-install/module1/pom.xml
similarity index 100%
rename from src/it/MINSTALL-98/module1/pom.xml
rename to src/it/parallel-reactor-install/module1/pom.xml
diff --git a/src/it/MINSTALL-98/module2/pom.xml 
b/src/it/parallel-reactor-install/module2/pom.xml
similarity index 100%
rename from src/it/MINSTALL-98/module2/pom.xml
rename to src/it/parallel-reactor-install/module2/pom.xml
diff --git a/src/it/MINSTALL-98/pom.xml 
b/src/it/parallel-reactor-install/pom.xml
similarity index 100%
rename from src/it/MINSTALL-98/pom.xml
rename to src/it/parallel-reactor-install/pom.xml
diff --git a/src/it/MINSTALL-98/verify.groovy 
b/src/it/parallel-reactor-install/verify.groovy
similarity index 100%
rename from src/it/MINSTALL-98/verify.groovy
rename to src/it/parallel-reactor-install/verify.groovy
diff --git a/src/it/MINSTALL-99/module1/pom.xml 
b/src/it/per-project-config/module1/pom.xml
similarity index 100%
rename from src/it/MINSTALL-99/module1/pom.xml
rename to src/it/per-project-config/module1/pom.xml
diff --git a/src/it/MINSTALL-99/module2/pom.xml 
b/src/it/per-project-config/module2/pom.xml
similarity index 100%
rename from src/it/MINSTALL-99/module2/pom.xml
rename to src/it/per-project-config/module2/pom.xml
diff --git a/src/it/MINSTALL-99/pom.xml b/src/it/per-project-config/pom.xml
similarity index 100%
rename from src/it/MINSTALL-99/pom.xml
rename to src/it/per-project-config/pom.xml
diff --git a/src/it/MINSTALL-99/verify.groovy 
b/src/it/per-project-config/verify.groovy
similarity index 100%
rename from src/it/MINSTALL-99/verify.groovy
rename to src/it/per-project-config/verify.groovy
diff --git a/src/it/pom-checksum/pom.xml b/src/it/pom-checksum/pom.xml
deleted file mode 100644
index 4272bab..0000000
--- a/src/it/pom-checksum/pom.xml
+++ /dev/null
@@ -1,64 +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>
-
-  <groupId>org.apache.maven.its.install.pc</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0-SNAPSHOT</version>
-  <packaging>pom</packaging>
-
-  <description>
-    Tests the installation of a simple snapshot POM with checksums
-  </description>
-
-  <properties>
-    <maven.test.skip>true</maven.test.skip>
-  </properties>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>@mavenCompilerPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-install-plugin</artifactId>
-        <version>@project.version@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-resources-plugin</artifactId>
-        <version>@mavenResourcesPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>@mavenSurefirePluginVersion@</version>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
diff --git a/src/it/pom-checksum/setup.groovy b/src/it/pom-checksum/setup.groovy
deleted file mode 100644
index 0aead3d..0000000
--- a/src/it/pom-checksum/setup.groovy
+++ /dev/null
@@ -1,29 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
-File file = new File( localRepositoryPath, "org/apache/maven/its/install/pc" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/pom-checksum/verify.groovy 
b/src/it/pom-checksum/verify.groovy
deleted file mode 100644
index 7a642f6..0000000
--- a/src/it/pom-checksum/verify.groovy
+++ /dev/null
@@ -1,57 +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.
- */
-
-import java.io.*;
-import java.util.*;
-import java.lang.*;
-
-String[] paths =
-[
-    "org/apache/maven/its/install/pc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.pom",
-    
"org/apache/maven/its/install/pc/test/1.0-SNAPSHOT/maven-metadata-local.xml",
-    "org/apache/maven/its/install/pc/test/maven-metadata-local.xml",
-];
-
-String[] pathsWhichShouldNotExist =
-[
-    
"org/apache/maven/its/install/pc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.pom.md5",
-    
"org/apache/maven/its/install/pc/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.pom.sha1",
-];
-
-for ( String path : paths )
-{
-    File file = new File( localRepositoryPath, path );
-    System.out.println( "Checking for existence of " + file );
-    if ( !file.isFile() )
-    {
-        throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() 
);
-    }
-}
-
-for ( String path : pathsWhichShouldNotExist )
-{
-    File file = new File( localRepositoryPath, path );
-    System.out.println( "Checking for none existence of " + file );
-    if ( file.isFile() )
-    {
-        throw new IOException( "Found: " + file.getAbsolutePath() );
-    }
-}
-
-return true;
diff --git a/src/it/minstall-315/invoker.properties 
b/src/it/pom-packaged-project-installs-pom/invoker.properties
similarity index 100%
rename from src/it/minstall-315/invoker.properties
rename to src/it/pom-packaged-project-installs-pom/invoker.properties
diff --git a/src/it/minstall-315/pom.xml 
b/src/it/pom-packaged-project-installs-pom/pom.xml
similarity index 100%
rename from src/it/minstall-315/pom.xml
rename to src/it/pom-packaged-project-installs-pom/pom.xml
diff --git a/src/it/minstall-315/setup.groovy 
b/src/it/pom-packaged-project-installs-pom/setup.groovy
similarity index 93%
rename from src/it/minstall-315/setup.groovy
rename to src/it/pom-packaged-project-installs-pom/setup.groovy
index bb1ec95..c5d81de 100644
--- a/src/it/minstall-315/setup.groovy
+++ b/src/it/pom-packaged-project-installs-pom/setup.groovy
@@ -17,10 +17,8 @@
  * under the License.
  */
 
-import org.codehaus.plexus.util.*
-
 File dir = new File( localRepositoryPath, 
"org/apache/maven/its/install/minstall315" )
 System.out.println( "Deleting " + dir )
-FileUtils.deleteDirectory( dir )
+dir.deleteDir()
 
 return true
diff --git a/src/it/minstall-315/verify.groovy 
b/src/it/pom-packaged-project-installs-pom/verify.groovy
similarity index 100%
rename from src/it/minstall-315/verify.groovy
rename to src/it/pom-packaged-project-installs-pom/verify.groovy
diff --git a/src/it/skip-install/pom.xml b/src/it/skip-install/pom.xml
deleted file mode 100644
index 64ecd4a..0000000
--- a/src/it/skip-install/pom.xml
+++ /dev/null
@@ -1,72 +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>
-
-  <groupId>org.apache.maven.its.install.skip</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the skip installation of a simple release JAR.
-  </description>
-
-  <properties>
-    <maven.test.skip>true</maven.test.skip>
-  </properties>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>@mavenCompilerPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-install-plugin</artifactId>
-        <version>@project.version@</version>
-        <configuration>
-          <skip>true</skip>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>@mavenJarPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-resources-plugin</artifactId>
-        <version>@mavenResourcesPluginVersion@</version>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>@mavenSurefirePluginVersion@</version>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
diff --git a/src/it/skip-install/setup.groovy b/src/it/skip-install/setup.groovy
deleted file mode 100644
index be3fa1e..0000000
--- a/src/it/skip-install/setup.groovy
+++ /dev/null
@@ -1,29 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-import org.codehaus.plexus.util.*;
-
-File file = new File( localRepositoryPath, "org/apache/maven/its/install/skip" 
);
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/skip-install/verify.groovy 
b/src/it/skip-install/verify.groovy
deleted file mode 100644
index 4f44422..0000000
--- a/src/it/skip-install/verify.groovy
+++ /dev/null
@@ -1,40 +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.
- */
-
-import java.io.*;
-import java.util.*;
-
-String[] paths =
-[
-    "org/apache/maven/its/install/skip/test/maven-metadata-local.xml",
-    "org/apache/maven/its/install/skip/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/install/skip/test/1.0/test-1.0.jar",
-];
-
-for ( String path : paths )
-{
-    File file = new File( localRepositoryPath, path );
-    System.out.println( "Checking for non existence of " + file );
-    if ( file.isFile() )
-    {
-        throw new Exception( "Existence of file: " + file.getAbsolutePath() );
-    }
-}
-
-return true;
diff --git 
a/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java 
b/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java
index 1127cbe..c9cf2e6 100644
--- a/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java
@@ -45,6 +45,7 @@ import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.io.TempDir;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -463,6 +464,143 @@ public class InstallFileMojoTest {
         assertTrue(e.getMessage().contains("not valid"), e.getMessage());
     }
 
+    // 
-------------------------------------------------------------------------
+    // Tests converted from src/it (see the IT-to-unit mapping in the report)
+    // 
-------------------------------------------------------------------------
+
+    @Test
+    @InjectMojo(goal = "install-file")
+    @MojoParameter(name = "packaging", value = "jar")
+    @MojoParameter(name = "file", value = 
"${basedir}/target/maven-install-test-1.0-SNAPSHOT.jar")
+    void installFileWithInvalidGav(InstallFileMojo mojo) throws Exception {
+        setMojoField(mojo, "groupId", "invalid~group");
+        setMojoField(mojo, "artifactId", "invalid/artifactId");
+        setMojoField(mojo, "version", "1+");
+
+        MojoExecutionException e = assertThrows(MojoExecutionException.class, 
mojo::execute);
+        assertTrue(e.getMessage().contains("The artifact information is not 
valid"), e.getMessage());
+        assertFalse(localRepo.exists(), "Nothing should be installed into " + 
localRepo);
+    }
+
+    @Test
+    @InjectMojo(goal = "install-file")
+    @MojoParameter(name = "file", value = 
"${basedir}/target/maven-install-test-1.0-SNAPSHOT.jar")
+    void installFileWithMissingGav(InstallFileMojo mojo) throws Exception {
+        setMojoField(mojo, "groupId", "groupId");
+        setMojoField(mojo, "artifactId", null);
+        setMojoField(mojo, "version", null);
+        setMojoField(mojo, "packaging", null);
+        // A jar without an embedded POM, like the test.jar of the 
gav-validation IT.
+        setMojoField(mojo, "file", createJarWithEntries("test", 
"test.txt").toFile());
+
+        MojoExecutionException e = assertThrows(MojoExecutionException.class, 
mojo::execute);
+        assertTrue(e.getMessage().contains("The artifact information is 
incomplete"), e.getMessage());
+        assertFalse(localRepo.exists(), "Nothing should be installed into " + 
localRepo);
+    }
+
+    @Test
+    @InjectMojo(goal = "install-file")
+    @MojoParameter(name = "packaging", value = "jar")
+    @MojoParameter(name = "file", value = 
"${basedir}/target/maven-install-test-1.0-SNAPSHOT.jar")
+    void installFileGeneratesPomAutomatically(InstallFileMojo mojo) throws 
Exception {
+        mojo.execute();
+
+        assertInstalled(
+                localRepo,
+                "org/apache/maven/test/maven-install-file-test/1.0-SNAPSHOT/"
+                        + "maven-install-file-test-1.0-SNAPSHOT.jar");
+        assertInstalled(
+                localRepo,
+                "org/apache/maven/test/maven-install-file-test/1.0-SNAPSHOT/"
+                        + "maven-install-file-test-1.0-SNAPSHOT.pom");
+        assertInstalled(localRepo, 
"org/apache/maven/test/maven-install-file-test/maven-metadata-local.xml");
+    }
+
+    @Test
+    @InjectMojo(goal = "install-file")
+    @MojoParameter(name = "packaging", value = "jar")
+    @MojoParameter(name = "file", value = 
"${basedir}/target/maven-install-test-1.0-SNAPSHOT.jar")
+    void installFileDoesNotOverwriteExistingPom(InstallFileMojo mojo) throws 
Exception {
+        File pom = new File(
+                localRepo,
+                
"org/apache/maven/test/maven-install-file-test/1.0-SNAPSHOT/maven-install-file-test-1.0-SNAPSHOT.pom");
+        assertTrue(pom.getParentFile().isDirectory() || 
pom.getParentFile().mkdirs());
+        Files.write(pom.toPath(), "test".getBytes(StandardCharsets.UTF_8));
+
+        mojo.execute();
+
+        assertInstalled(
+                localRepo,
+                "org/apache/maven/test/maven-install-file-test/1.0-SNAPSHOT/"
+                        + "maven-install-file-test-1.0-SNAPSHOT.jar");
+        assertInstalled(
+                localRepo,
+                "org/apache/maven/test/maven-install-file-test/1.0-SNAPSHOT/"
+                        + "maven-install-file-test-1.0-SNAPSHOT.pom");
+        assertEquals(
+                "test",
+                new String(Files.readAllBytes(pom.toPath()), 
StandardCharsets.UTF_8),
+                "The existing POM must not be overwritten");
+        assertInstalled(localRepo, 
"org/apache/maven/test/maven-install-file-test/maven-metadata-local.xml");
+    }
+
+    @Test
+    @InjectMojo(goal = "install-file")
+    @MojoParameter(name = "groupId", value = "gid")
+    @MojoParameter(name = "artifactId", value = "test")
+    @MojoParameter(name = "version", value = "0.1")
+    @MojoParameter(name = "packaging", value = "jar")
+    @MojoParameter(name = "file", value = 
"${basedir}/target/maven-install-test-1.0-SNAPSHOT.jar")
+    void 
installFileToLocalRepositoryOverrideDoesNotCreateChecksums(InstallFileMojo 
mojo) throws Exception {
+        File overrideRepo =
+                tempDir.resolve("target/local-repo").toAbsolutePath().toFile();
+        setMojoField(mojo, "localRepositoryPath", overrideRepo);
+
+        mojo.execute();
+
+        String jarPath = "gid/test/0.1/test-0.1.jar";
+        assertInstalled(overrideRepo, jarPath);
+        assertNoChecksum(overrideRepo, jarPath);
+        assertFalse(new File(localRepo, jarPath).exists(), "The artifact 
should only be installed in " + overrideRepo);
+    }
+
+    @Test
+    @InjectMojo(goal = "install-file")
+    @MojoParameter(name = "groupId", value = "gid")
+    @MojoParameter(name = "artifactId", value = "test")
+    @MojoParameter(name = "version", value = "0.1")
+    @MojoParameter(name = "packaging", value = "jar")
+    @MojoParameter(name = "generatePom", value = "true")
+    @MojoParameter(name = "file", value = 
"${basedir}/target/maven-install-test-1.0-SNAPSHOT.jar")
+    void 
installFileToLocalRepositoryOverrideWithGeneratedPomDoesNotCreateChecksums(InstallFileMojo
 mojo)
+            throws Exception {
+        File overrideRepo =
+                tempDir.resolve("target/local-repo").toAbsolutePath().toFile();
+        setMojoField(mojo, "localRepositoryPath", overrideRepo);
+
+        mojo.execute();
+
+        String jarPath = "gid/test/0.1/test-0.1.jar";
+        String pomPath = "gid/test/0.1/test-0.1.pom";
+        assertInstalled(overrideRepo, jarPath);
+        assertInstalled(overrideRepo, pomPath);
+        assertNoChecksum(overrideRepo, jarPath);
+        assertNoChecksum(overrideRepo, pomPath);
+        assertFalse(new File(localRepo, jarPath).exists(), "The artifact 
should only be installed in " + overrideRepo);
+    }
+
+    private void assertInstalled(File repo, String path) {
+        File installed = new File(repo, path);
+        assertTrue(installed.isFile(), "Missing installed file: " + installed);
+    }
+
+    private void assertNoChecksum(File repo, String path) {
+        File md5 = new File(repo, path + ".md5");
+        File sha1 = new File(repo, path + ".sha1");
+        assertFalse(md5.exists(), "Unexpected checksum: " + md5);
+        assertFalse(sha1.exists(), "Unexpected checksum: " + sha1);
+    }
+
     // 
-------------------------------------------------------------------------
     // Helpers
     // 
-------------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java 
b/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java
index cd18e23..2e2d332 100644
--- a/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java
@@ -46,6 +46,7 @@ import org.junit.jupiter.api.io.TempDir;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.junit.jupiter.api.Assertions.fail;
 import static org.mockito.Mockito.lenient;
@@ -260,6 +261,9 @@ class InstallMojoTest {
     @MojoParameter(name = "skip", value = "true")
     void testSkip(InstallMojo mojo) throws Exception {
         mojo.setPluginContext(new HashMap<>());
+        mavenProject.setGroupId("org.apache.maven.its.install.skip");
+        mavenProject.setArtifactId("test");
+        mavenProject.setVersion("1.0");
         setProjectArtifact(mavenProject);
 
         mojo.execute();
@@ -267,17 +271,142 @@ class InstallMojoTest {
         Artifact artifact = mavenProject.getArtifact();
         String groupId = dotToSlashReplacer(artifact.getGroupId());
 
-        String packaging = mavenProject.getPackaging();
-
-        File installedArtifact =
-                new File(localRepo + groupId + "/" + artifact.getArtifactId() 
+ "/" + artifact.getVersion() + "/"
-                        + artifact.getArtifactId() + "-" + 
artifact.getVersion() + "." + packaging);
+        File installedArtifact = new File(
+                localRepo,
+                groupId + "/" + artifact.getArtifactId() + "/" + 
artifact.getVersion() + "/"
+                        + artifact.getArtifactId() + "-" + 
artifact.getVersion() + "."
+                        + artifact.getArtifactHandler().getExtension());
 
         assertFalse(installedArtifact.exists());
 
+        // Assertions from the skip-install IT
+        assertNotInstalled(localRepo, 
"org/apache/maven/its/install/skip/test/maven-metadata-local.xml");
+        assertNotInstalled(localRepo, 
"org/apache/maven/its/install/skip/test/1.0/test-1.0.pom");
+        assertNotInstalled(localRepo, 
"org/apache/maven/its/install/skip/test/1.0/test-1.0.jar");
+
         assertFalse(localRepo.exists());
     }
 
+    // 
-------------------------------------------------------------------------
+    // Tests converted from src/it (see the IT-to-unit mapping in the report)
+    // 
-------------------------------------------------------------------------
+
+    @Test
+    @InjectMojo(goal = "install")
+    void installWithNoMainArtifactAndAttachmentsWithoutClassesDir(InstallMojo 
mojo) throws Exception {
+        assertNoMainArtifactWithAttachments(mojo, false);
+    }
+
+    @Test
+    @InjectMojo(goal = "install")
+    void installWithNoMainArtifactAndAttachmentsWithClassesDir(InstallMojo 
mojo) throws Exception {
+        assertNoMainArtifactWithAttachments(mojo, true);
+    }
+
+    @Test
+    @InjectMojo(goal = "install")
+    void installWithAttachedArtifactDoesNotCreateChecksums(InstallMojo mojo) 
throws Exception {
+        mojo.setPluginContext(new HashMap<>());
+        mavenProject.setGroupId("org.apache.maven.its.install.ajc");
+        mavenProject.setArtifactId("test");
+        mavenProject.setVersion("1.0-SNAPSHOT");
+        setProjectArtifact(mavenProject);
+        mavenProjectHelper.attachArtifact(
+                mavenProject,
+                "jar",
+                "sources",
+                Files.createTempFile(tempDir, "test-1.0-SNAPSHOT-sources", 
"jar")
+                        .toFile());
+
+        mojo.execute();
+
+        String versionDir = 
"org/apache/maven/its/install/ajc/test/1.0-SNAPSHOT/";
+        String[] installed = {
+            versionDir + "test-1.0-SNAPSHOT.pom",
+            versionDir + "test-1.0-SNAPSHOT.jar",
+            versionDir + "test-1.0-SNAPSHOT-sources.jar",
+            versionDir + "maven-metadata-local.xml",
+            "org/apache/maven/its/install/ajc/test/maven-metadata-local.xml"
+        };
+        for (String path : installed) {
+            assertInstalled(localRepo, path);
+            assertNoChecksum(localRepo, path);
+        }
+    }
+
+    @Test
+    @InjectMojo(goal = "install")
+    void installPomDoesNotCreateChecksums(InstallMojo mojo) throws Exception {
+        mojo.setPluginContext(new HashMap<>());
+        mavenProject.setGroupId("org.apache.maven.its.install.pc");
+        mavenProject.setArtifactId("test");
+        mavenProject.setVersion("1.0-SNAPSHOT");
+        mavenProject.setPackaging("pom");
+        mavenProject.setPomFile(Files.createTempFile(tempDir, "test", 
"pom").toFile());
+
+        mojo.execute();
+
+        String versionDir = 
"org/apache/maven/its/install/pc/test/1.0-SNAPSHOT/";
+        String[] installed = {
+            versionDir + "test-1.0-SNAPSHOT.pom",
+            versionDir + "maven-metadata-local.xml",
+            "org/apache/maven/its/install/pc/test/maven-metadata-local.xml"
+        };
+        for (String path : installed) {
+            assertInstalled(localRepo, path);
+        }
+        assertNoChecksum(localRepo, versionDir + "test-1.0-SNAPSHOT.pom");
+    }
+
+    private void assertNoMainArtifactWithAttachments(InstallMojo mojo, boolean 
classesDirPresent) throws Exception {
+        mojo.setPluginContext(new HashMap<>());
+        mavenProject.setGroupId(
+                classesDirPresent ? "org.apache.maven.its.install.nma2" : 
"org.apache.maven.its.install.nma1");
+        mavenProject.setArtifactId("test");
+        mavenProject.setVersion("1.0-SNAPSHOT");
+        setProjectArtifact(mavenProject);
+        mavenProjectHelper.attachArtifact(
+                mavenProject,
+                "jar",
+                "it",
+                Files.createTempFile(tempDir, "test", "jar").toFile());
+
+        // The two IT variants differ only by the presence of target/classes. 
Mirror that under the temp
+        // directory so the real build output is untouched.
+        Path classesDir = tempDir.resolve("target/classes");
+        if (classesDirPresent) {
+            Files.createDirectories(classesDir);
+            assertTrue(Files.isDirectory(classesDir));
+        } else {
+            assertFalse(Files.exists(classesDir));
+        }
+
+        mavenProject.getArtifact().setFile(null);
+
+        MojoExecutionException e = assertThrows(MojoExecutionException.class, 
mojo::execute);
+        assertEquals(
+                "The packaging plugin for project test did not assign a main 
file to the project but it has "
+                        + "attachments. Change packaging to 'pom'.",
+                e.getMessage());
+    }
+
+    private void assertInstalled(File repo, String path) {
+        File installed = new File(repo, path);
+        assertTrue(installed.isFile(), "Missing installed file: " + installed);
+    }
+
+    private void assertNotInstalled(File repo, String path) {
+        File installed = new File(repo, path);
+        assertFalse(installed.isFile(), "File should not be installed: " + 
installed);
+    }
+
+    private void assertNoChecksum(File repo, String path) {
+        File md5 = new File(repo, path + ".md5");
+        File sha1 = new File(repo, path + ".sha1");
+        assertFalse(md5.exists(), "Unexpected checksum: " + md5);
+        assertFalse(sha1.exists(), "Unexpected checksum: " + sha1);
+    }
+
     private String dotToSlashReplacer(String parameter) {
         return parameter.replace('.', '/');
     }

Reply via email to