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

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


The following commit(s) were added to refs/heads/maven-install-plugin-4.x by 
this push:
     new 17a8aef  Replace minstall-121 ITs with parameterized unit tests and 
use descriptive names
17a8aef is described below

commit 17a8aef7021869a6294a40759e39974a4dd0774b
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sat Nov 21 15:45:39 2026 +0100

    Replace minstall-121 ITs with parameterized unit tests and use descriptive 
names
    
    Part of #501
---
 pom.xml                                            |   5 +
 .../invoker.properties                             |  18 ---
 src/it/install-file-minstall-121-bundle/pom.xml    |  41 -------
 .../install-file-minstall-121-bundle/setup.groovy  |  29 -----
 .../test.properties                                |  20 ----
 .../install-file-minstall-121-bundle/verify.groovy |  52 ---------
 .../invoker.properties                             |  18 ---
 .../install-file-minstall-121-java-source/pom.xml  |  41 -------
 .../setup.groovy                                   |  29 -----
 .../test.properties                                |  20 ----
 .../verify.groovy                                  |  52 ---------
 .../invoker.properties                             |  18 ---
 .../pom.xml                                        |  41 -------
 .../setup.groovy                                   |  29 -----
 .../test.properties                                |  20 ----
 .../verify.groovy                                  |  52 ---------
 .../invoker.properties                             |  18 ---
 src/it/install-file-minstall-121-targz/pom.xml     |  41 -------
 .../install-file-minstall-121-targz/setup.groovy   |  29 -----
 .../test.properties                                |  20 ----
 .../install-file-minstall-121-targz/verify.groovy  |  52 ---------
 .../invoker.properties                             |  18 ---
 src/it/install-file-minstall-121-war/pom.xml       |  41 -------
 src/it/install-file-minstall-121-war/setup.groovy  |  29 -----
 .../install-file-minstall-121-war/test.properties  |  20 ----
 src/it/install-file-minstall-121-war/verify.groovy |  52 ---------
 .../install-file-minstall-121/invoker.properties   |  18 ---
 src/it/install-file-minstall-121/pom.xml           |  41 -------
 src/it/install-file-minstall-121/setup.groovy      |  29 -----
 src/it/install-file-minstall-121/test.properties   |  20 ----
 src/it/install-file-minstall-121/verify.groovy     |  52 ---------
 .../install-file-missing-file/invoker.properties   |  19 ----
 src/it/local-repo-override/invoker.properties      |  18 ---
 src/it/local-repo-override/pom.xml                 |  41 -------
 src/it/local-repo-override/setup.groovy            |  29 -----
 src/it/local-repo-override/test.jar                | Bin 345 -> 0 bytes
 src/it/local-repo-override/test.properties         |  23 ----
 src/it/local-repo-override/verify.groovy           |  38 -------
 .../maven/plugins/install/InstallFileMojoTest.java | 122 +++++++++++++++++++++
 .../unit/artifact-extension/bundle}/test-0.1.jar   | Bin
 .../unit/artifact-extension/bundle}/test-0.1.pom   |   0
 .../artifact-extension/java-source}/test-0.1.jar   | Bin
 .../artifact-extension/java-source}/test-0.1.pom   |   0
 .../maven-archetype}/test-0.1.jar                  | Bin
 .../maven-archetype}/test-0.1.pom                  |   0
 .../unit/artifact-extension/targz}/test-0.1.pom    |   0
 .../unit/artifact-extension/targz}/test-0.1.tar.gz | Bin
 .../unit/artifact-extension/test}/test-0.1.jar     | Bin
 .../unit/artifact-extension/test}/test-0.1.pom     |   0
 .../unit/artifact-extension/war}/test-0.1.pom      |   0
 .../unit/artifact-extension/war}/test-0.1.war      | Bin
 51 files changed, 127 insertions(+), 1128 deletions(-)

diff --git a/pom.xml b/pom.xml
index 0c2f2fc..2c381be 100644
--- a/pom.xml
+++ b/pom.xml
@@ -185,6 +185,11 @@
       <artifactId>junit-jupiter-api</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.junit.jupiter</groupId>
+      <artifactId>junit-jupiter-params</artifactId>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
 
   <build>
diff --git a/src/it/install-file-minstall-121-bundle/invoker.properties 
b/src/it/install-file-minstall-121-bundle/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/install-file-minstall-121-bundle/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/install-file-minstall-121-bundle/pom.xml 
b/src/it/install-file-minstall-121-bundle/pom.xml
deleted file mode 100644
index 5c8f5bf..0000000
--- a/src/it/install-file-minstall-121-bundle/pom.xml
+++ /dev/null
@@ -1,41 +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.121</groupId>
-  <artifactId>test-maven-bundle</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>Test to install a file via install:install-file using 
-    packaging and expected having a different file extension.</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/install-file-minstall-121-bundle/setup.groovy 
b/src/it/install-file-minstall-121-bundle/setup.groovy
deleted file mode 100644
index d6aed1d..0000000
--- a/src/it/install-file-minstall-121-bundle/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/121/maven-bundle" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/install-file-minstall-121-bundle/test.properties 
b/src/it/install-file-minstall-121-bundle/test.properties
deleted file mode 100644
index 2aced53..0000000
--- a/src/it/install-file-minstall-121-bundle/test.properties
+++ /dev/null
@@ -1,20 +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-0.1.jar
-pomFile = test-0.1.pom
-packaging = bundle
diff --git a/src/it/install-file-minstall-121-bundle/verify.groovy 
b/src/it/install-file-minstall-121-bundle/verify.groovy
deleted file mode 100644
index 78adf39..0000000
--- a/src/it/install-file-minstall-121-bundle/verify.groovy
+++ /dev/null
@@ -1,52 +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/121/maven-bundle/maven-metadata-local.xml",
-    "org/apache/maven/its/install/121/maven-bundle/1.0/maven-bundle-1.0.pom",
-    "org/apache/maven/its/install/121/maven-bundle/1.0/maven-bundle-1.0.jar",
-];
-
-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() 
);
-    }
-}
-
-File file = new File( basedir, "test-0.1.pom" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-file = new File( basedir, "test-0.1.jar" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-return true;
diff --git a/src/it/install-file-minstall-121-java-source/invoker.properties 
b/src/it/install-file-minstall-121-java-source/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/install-file-minstall-121-java-source/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/install-file-minstall-121-java-source/pom.xml 
b/src/it/install-file-minstall-121-java-source/pom.xml
deleted file mode 100644
index 1681729..0000000
--- a/src/it/install-file-minstall-121-java-source/pom.xml
+++ /dev/null
@@ -1,41 +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.121</groupId>
-  <artifactId>test-java-source</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>Test to install a file via install:install-file using 
-    packaging and expected having a different file extension.</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/install-file-minstall-121-java-source/setup.groovy 
b/src/it/install-file-minstall-121-java-source/setup.groovy
deleted file mode 100644
index 13320f2..0000000
--- a/src/it/install-file-minstall-121-java-source/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/121/test-java-source" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/install-file-minstall-121-java-source/test.properties 
b/src/it/install-file-minstall-121-java-source/test.properties
deleted file mode 100644
index 0ece313..0000000
--- a/src/it/install-file-minstall-121-java-source/test.properties
+++ /dev/null
@@ -1,20 +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-0.1.jar
-pomFile = test-0.1.pom
-packaging = java-source
diff --git a/src/it/install-file-minstall-121-java-source/verify.groovy 
b/src/it/install-file-minstall-121-java-source/verify.groovy
deleted file mode 100644
index b479f37..0000000
--- a/src/it/install-file-minstall-121-java-source/verify.groovy
+++ /dev/null
@@ -1,52 +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/121/test-java-source/maven-metadata-local.xml",
-    
"org/apache/maven/its/install/121/test-java-source/1.0/test-java-source-1.0.pom",
-    
"org/apache/maven/its/install/121/test-java-source/1.0/test-java-source-1.0-sources.jar",
-];
-
-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() 
);
-    }
-}
-
-File file = new File( basedir, "test-0.1.pom" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-file = new File( basedir, "test-0.1.jar" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-return true;
diff --git 
a/src/it/install-file-minstall-121-maven-archetype/invoker.properties 
b/src/it/install-file-minstall-121-maven-archetype/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/install-file-minstall-121-maven-archetype/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/install-file-minstall-121-maven-archetype/pom.xml 
b/src/it/install-file-minstall-121-maven-archetype/pom.xml
deleted file mode 100644
index 58fbbbd..0000000
--- a/src/it/install-file-minstall-121-maven-archetype/pom.xml
+++ /dev/null
@@ -1,41 +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.121</groupId>
-  <artifactId>test-maven-archetype</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>Test to install a file via install:install-file using 
-    packaging and expected having a different file extension.</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/install-file-minstall-121-maven-archetype/setup.groovy 
b/src/it/install-file-minstall-121-maven-archetype/setup.groovy
deleted file mode 100644
index 9e901ad..0000000
--- a/src/it/install-file-minstall-121-maven-archetype/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/121/maven-archetype" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/install-file-minstall-121-maven-archetype/test.properties 
b/src/it/install-file-minstall-121-maven-archetype/test.properties
deleted file mode 100644
index 4ab80ed..0000000
--- a/src/it/install-file-minstall-121-maven-archetype/test.properties
+++ /dev/null
@@ -1,20 +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-0.1.jar
-pomFile = test-0.1.pom
-packaging = maven-archetype
diff --git a/src/it/install-file-minstall-121-maven-archetype/verify.groovy 
b/src/it/install-file-minstall-121-maven-archetype/verify.groovy
deleted file mode 100644
index 8bc5e68..0000000
--- a/src/it/install-file-minstall-121-maven-archetype/verify.groovy
+++ /dev/null
@@ -1,52 +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/121/maven-archetype/maven-metadata-local.xml",
-    
"org/apache/maven/its/install/121/maven-archetype/1.0/maven-archetype-1.0.pom",
-    
"org/apache/maven/its/install/121/maven-archetype/1.0/maven-archetype-1.0.jar",
-];
-
-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() 
);
-    }
-}
-
-File file = new File( basedir, "test-0.1.pom" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-file = new File( basedir, "test-0.1.jar" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-return true;
diff --git a/src/it/install-file-minstall-121-targz/invoker.properties 
b/src/it/install-file-minstall-121-targz/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/install-file-minstall-121-targz/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/install-file-minstall-121-targz/pom.xml 
b/src/it/install-file-minstall-121-targz/pom.xml
deleted file mode 100644
index 88270c2..0000000
--- a/src/it/install-file-minstall-121-targz/pom.xml
+++ /dev/null
@@ -1,41 +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.121</groupId>
-  <artifactId>test-targz</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>Test to install a file via install:install-file using 
-    packaging and expected having a different file extension.</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/install-file-minstall-121-targz/setup.groovy 
b/src/it/install-file-minstall-121-targz/setup.groovy
deleted file mode 100644
index 44849e7..0000000
--- a/src/it/install-file-minstall-121-targz/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/121/test-targz" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/install-file-minstall-121-targz/test.properties 
b/src/it/install-file-minstall-121-targz/test.properties
deleted file mode 100644
index 8485d14..0000000
--- a/src/it/install-file-minstall-121-targz/test.properties
+++ /dev/null
@@ -1,20 +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-0.1.tar.gz
-pomFile = test-0.1.pom
-packaging = war
diff --git a/src/it/install-file-minstall-121-targz/verify.groovy 
b/src/it/install-file-minstall-121-targz/verify.groovy
deleted file mode 100644
index d09c83c..0000000
--- a/src/it/install-file-minstall-121-targz/verify.groovy
+++ /dev/null
@@ -1,52 +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/121/test-targz/maven-metadata-local.xml",
-    "org/apache/maven/its/install/121/test-targz/1.0/test-targz-1.0.pom",
-    "org/apache/maven/its/install/121/test-targz/1.0/test-targz-1.0.tar.gz",
-];
-
-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() 
);
-    }
-}
-
-File file = new File( basedir, "test-0.1.pom" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-file = new File( basedir, "test-0.1.tar.gz" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-return true;
diff --git a/src/it/install-file-minstall-121-war/invoker.properties 
b/src/it/install-file-minstall-121-war/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/install-file-minstall-121-war/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/install-file-minstall-121-war/pom.xml 
b/src/it/install-file-minstall-121-war/pom.xml
deleted file mode 100644
index 51c44da..0000000
--- a/src/it/install-file-minstall-121-war/pom.xml
+++ /dev/null
@@ -1,41 +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.121</groupId>
-  <artifactId>test-war</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>Test to install a file via install:install-file using 
-    packaging and expected having a different file extension.</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/install-file-minstall-121-war/setup.groovy 
b/src/it/install-file-minstall-121-war/setup.groovy
deleted file mode 100644
index 3d2bc79..0000000
--- a/src/it/install-file-minstall-121-war/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/121/test-war" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/install-file-minstall-121-war/test.properties 
b/src/it/install-file-minstall-121-war/test.properties
deleted file mode 100644
index 40edeff..0000000
--- a/src/it/install-file-minstall-121-war/test.properties
+++ /dev/null
@@ -1,20 +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-0.1.war
-pomFile = test-0.1.pom
-packaging = war
diff --git a/src/it/install-file-minstall-121-war/verify.groovy 
b/src/it/install-file-minstall-121-war/verify.groovy
deleted file mode 100644
index e4e5842..0000000
--- a/src/it/install-file-minstall-121-war/verify.groovy
+++ /dev/null
@@ -1,52 +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/121/test-war/maven-metadata-local.xml",
-    "org/apache/maven/its/install/121/test-war/1.0/test-war-1.0.pom",
-    "org/apache/maven/its/install/121/test-war/1.0/test-war-1.0.war",
-];
-
-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() 
);
-    }
-}
-
-File file = new File( basedir, "test-0.1.pom" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-file = new File( basedir, "test-0.1.war" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-return true;
diff --git a/src/it/install-file-minstall-121/invoker.properties 
b/src/it/install-file-minstall-121/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/install-file-minstall-121/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/install-file-minstall-121/pom.xml 
b/src/it/install-file-minstall-121/pom.xml
deleted file mode 100644
index 4b61455..0000000
--- a/src/it/install-file-minstall-121/pom.xml
+++ /dev/null
@@ -1,41 +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.121</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>Test to install a file via install:install-file using 
-    packaging and expected having a different file extension.</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/install-file-minstall-121/setup.groovy 
b/src/it/install-file-minstall-121/setup.groovy
deleted file mode 100644
index 623cb65..0000000
--- a/src/it/install-file-minstall-121/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/121" 
);
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/install-file-minstall-121/test.properties 
b/src/it/install-file-minstall-121/test.properties
deleted file mode 100644
index 0bf34e9..0000000
--- a/src/it/install-file-minstall-121/test.properties
+++ /dev/null
@@ -1,20 +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-0.1.jar
-pomFile = test-0.1.pom
-packaging = maven-plugin
diff --git a/src/it/install-file-minstall-121/verify.groovy 
b/src/it/install-file-minstall-121/verify.groovy
deleted file mode 100644
index c77965d..0000000
--- a/src/it/install-file-minstall-121/verify.groovy
+++ /dev/null
@@ -1,52 +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/121/test/maven-metadata-local.xml",
-    "org/apache/maven/its/install/121/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/install/121/test/1.0/test-1.0.jar",
-];
-
-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() 
);
-    }
-}
-
-File file = new File( basedir, "test-0.1.pom" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-file = new File( basedir, "test-0.1.jar" );
-if ( !file.isFile() )
-{
-    throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
-}
-
-return true;
diff --git a/src/it/install-file-missing-file/invoker.properties 
b/src/it/install-file-missing-file/invoker.properties
deleted file mode 100644
index c7485d3..0000000
--- a/src/it/install-file-missing-file/invoker.properties
+++ /dev/null
@@ -1,19 +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 
-DgroupId=foo -DartifactId=foo -Dversion=1 
-Dfile=/tmp/doesnotexit-foo-bar-wine-beer -Dpackaging=jar -DgeneratePom=true
-invoker.buildResult = failure
diff --git a/src/it/local-repo-override/invoker.properties 
b/src/it/local-repo-override/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/local-repo-override/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/pom.xml 
b/src/it/local-repo-override/pom.xml
deleted file mode 100644
index 936c3ee..0000000
--- a/src/it/local-repo-override/pom.xml
+++ /dev/null
@@ -1,41 +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).</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/setup.groovy 
b/src/it/local-repo-override/setup.groovy
deleted file mode 100644
index d37913a..0000000
--- a/src/it/local-repo-override/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/test.jar 
b/src/it/local-repo-override/test.jar
deleted file mode 100644
index 226277c..0000000
Binary files a/src/it/local-repo-override/test.jar and /dev/null differ
diff --git a/src/it/local-repo-override/test.properties 
b/src/it/local-repo-override/test.properties
deleted file mode 100644
index cd619e3..0000000
--- a/src/it/local-repo-override/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/verify.groovy 
b/src/it/local-repo-override/verify.groovy
deleted file mode 100644
index 0967f3e..0000000
--- a/src/it/local-repo-override/verify.groovy
+++ /dev/null
@@ -1,38 +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 =
-[
-    "gid/test/0.1/test-0.1.jar",
-];
-
-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() 
);
-    }
-}
-
-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 321df52..d26dee9 100644
--- a/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java
@@ -31,6 +31,7 @@ import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.Consumer;
 import java.util.jar.JarEntry;
 import java.util.jar.JarOutputStream;
+import java.util.stream.Stream;
 
 import org.apache.maven.api.Artifact;
 import org.apache.maven.api.LocalRepository;
@@ -41,6 +42,7 @@ import org.apache.maven.api.di.Priority;
 import org.apache.maven.api.di.Provides;
 import org.apache.maven.api.di.Singleton;
 import org.apache.maven.api.model.Model;
+import org.apache.maven.api.plugin.Log;
 import org.apache.maven.api.plugin.MojoException;
 import org.apache.maven.api.plugin.testing.InjectMojo;
 import org.apache.maven.api.plugin.testing.MojoParameter;
@@ -56,6 +58,8 @@ import org.apache.maven.testing.plugin.stubs.ArtifactStub;
 import org.codehaus.plexus.util.FileUtils;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
 
 import static org.apache.maven.api.plugin.testing.MojoExtension.getBasedir;
 import static 
org.apache.maven.api.plugin.testing.MojoExtension.getVariableValueFromObject;
@@ -794,6 +798,124 @@ class InstallFileMojoTest {
         InstallTestHelper.assertNoChecksumFiles(Paths.get(getBasedir(), 
OVERRIDE_REPO));
     }
 
+    /**
+     * The six converted install-file ITs supplied only {@code file}, {@code 
pomFile} and
+     * {@code packaging} through {@code test.properties}; groupId/version were 
adopted from the supplied POM's
+     * parent and artifactId from the POM itself. Each IT asserted that these 
files existed in the local repository:
+     *
+     * <pre>
+     *   
org/apache/maven/its/install/121/&lt;artifactId&gt;/maven-metadata-local.xml
+     *   
org/apache/maven/its/install/121/&lt;artifactId&gt;/1.0/&lt;artifactId&gt;-1.0.&lt;extension&gt;
+     *   
org/apache/maven/its/install/121/&lt;artifactId&gt;/1.0/&lt;artifactId&gt;-1.0.pom
+     * </pre>
+     *
+     * plus that the source {@code test-0.1.pom} and input file still existed 
in the working directory. The metadata
+     * file is written by the real ArtifactInstaller (mocked by this harness), 
so it is the one IT assertion that
+     * cannot be made here; the coordinates that determine its path are 
asserted below.
+     */
+    @ParameterizedTest(name = "{0}")
+    @MethodSource("packagingCases")
+    void installFileUsesPackagingForArtifactExtension(PackagingCase testCase) 
throws Exception {
+        // The MojoTest harness's ParameterResolver cannot be combined with 
@ParameterizedTest (both claim the
+        // mojo parameter), so wire the mojo with the same injected services 
the harness would supply.
+        InstallFileMojo mojo = new InstallFileMojo();
+        setVariableValueToObject(mojo, "log", mock(Log.class));
+        setVariableValueToObject(mojo, "session", session);
+
+        Path fixtureDir = Paths.get(getBasedir(), 
"target/test-classes/unit/artifact-extension", testCase.directory());
+        Path file = fixtureDir.resolve(testCase.fileName());
+        Path pomFile = fixtureDir.resolve("test-0.1.pom");
+        assertTrue(Files.isRegularFile(file), () -> "missing IT fixture " + 
file);
+        assertTrue(Files.isRegularFile(pomFile), () -> "missing IT fixture " + 
pomFile);
+
+        // Reproduce the IT inputs: only file/pomFile/packaging were supplied; 
the coordinates come from the POM.
+        setVariableValueToObject(mojo, "file", file);
+        setVariableValueToObject(mojo, "pomFile", pomFile);
+        setVariableValueToObject(mojo, "packaging", testCase.packaging());
+        if (testCase.classifier() != null) {
+            // A real Maven ArtifactTypeRegistry maps java-source to 
classifier "sources"; the MojoTest harness's
+            // ArtifactFactory stub does not, so supply it to preserve the 
IT's asserted -sources.jar coordinates.
+            setVariableValueToObject(mojo, "classifier", 
testCase.classifier());
+        }
+
+        this.groupId = "org.apache.maven.its.install.121";
+        this.artifactId = testCase.artifactId();
+        this.version = "1.0";
+
+        AtomicReference<Model> model = new AtomicReference<>();
+        ArtifactInstallerRequest request =
+                execute(mojo, air -> model.set(readModelFrom(air, 
getArtifact(null, "pom"))));
+
+        assertNotNull(request);
+        Artifact main = getArtifact(testCase.classifier(), 
testCase.extension());
+        Artifact pom = getArtifact(null, "pom");
+        assertEquals(new HashSet<>(Arrays.asList(main, pom)), new 
HashSet<>(request.getArtifacts()));
+
+        String groupPath = "org/apache/maven/its/install/121/" + 
testCase.artifactId();
+        String versionPath = groupPath + "/1.0/" + testCase.artifactId() + 
"-1.0";
+        assertEquals(
+                versionPath
+                        + (testCase.classifier() != null ? "-" + 
testCase.classifier() : "")
+                        + "." + testCase.extension(),
+                repoRelativePath(session.getPathForLocalArtifact(main)));
+        assertEquals(versionPath + ".pom", 
repoRelativePath(session.getPathForLocalArtifact(pom)));
+
+        // The POM installed is the one supplied by the IT, and its 
coordinates are the ones used for install.
+        assertEquals(pomFile, artifactManager.getPath(pom).orElse(null));
+        assertEquals(testCase.artifactId(), model.get().getArtifactId());
+        assertEquals("org.apache.maven.its.install.121", 
model.get().getParent().getGroupId());
+        assertEquals("1.0", model.get().getParent().getVersion());
+        assertEquals(groupId, getVariableValueFromObject(mojo, "groupId"));
+        assertEquals(artifactId, getVariableValueFromObject(mojo, 
"artifactId"));
+        assertEquals(version, getVariableValueFromObject(mojo, "version"));
+
+        assertFileExists(artifactManager.getPath(main).orElse(null));
+        assertEquals(
+                LOCAL_REPO,
+                
request.getSession().getLocalRepository().getPath().toString().replace(File.separator,
 "/"));
+        InstallTestHelper.assertNoChecksumFiles(Paths.get(getBasedir(), 
LOCAL_REPO));
+    }
+
+    static Stream<PackagingCase> packagingCases() {
+        return Stream.of(
+                new PackagingCase("maven-plugin", "test", "test-0.1.jar", 
"maven-plugin", "test", null, "jar"),
+                new PackagingCase("bundle", "bundle", "test-0.1.jar", 
"bundle", "maven-bundle", null, "jar"),
+                new PackagingCase(
+                        "java-source",
+                        "java-source",
+                        "test-0.1.jar",
+                        "java-source",
+                        "test-java-source",
+                        "sources",
+                        "jar"),
+                new PackagingCase(
+                        "maven-archetype",
+                        "maven-archetype",
+                        "test-0.1.jar",
+                        "maven-archetype",
+                        "maven-archetype",
+                        null,
+                        "jar"),
+                new PackagingCase("targz", "targz", "test-0.1.tar.gz", "war", 
"test-targz", null, "tar.gz"),
+                new PackagingCase("war", "war", "test-0.1.war", "war", 
"test-war", null, "war"));
+    }
+
+    record PackagingCase(
+            String name,
+            String directory,
+            String fileName,
+            String packaging,
+            String artifactId,
+            String classifier,
+            String extension) {}
+
+    private static String repoRelativePath(Path path) {
+        // The harness returns relative Paths from a different FileSystem 
provider than Paths.get, so compare strings.
+        String prefix = LOCAL_REPO + "/";
+        String value = path.toString().replace(File.separator, "/");
+        return value.startsWith(prefix) ? value.substring(prefix.length()) : 
value;
+    }
+
     private void assertFileExistsInRequest(ArtifactInstallerRequest request, 
Artifact artifact) {
         ArtifactManager requestArtifactManager = 
request.getSession().getService(ArtifactManager.class);
         
assertFileExists(requestArtifactManager.getPath(artifact).orElse(null));
diff --git a/src/it/install-file-minstall-121-bundle/test-0.1.jar 
b/src/test/resources/unit/artifact-extension/bundle/test-0.1.jar
similarity index 100%
rename from src/it/install-file-minstall-121-bundle/test-0.1.jar
rename to src/test/resources/unit/artifact-extension/bundle/test-0.1.jar
diff --git a/src/it/install-file-minstall-121-bundle/test-0.1.pom 
b/src/test/resources/unit/artifact-extension/bundle/test-0.1.pom
similarity index 100%
rename from src/it/install-file-minstall-121-bundle/test-0.1.pom
rename to src/test/resources/unit/artifact-extension/bundle/test-0.1.pom
diff --git a/src/it/install-file-minstall-121-java-source/test-0.1.jar 
b/src/test/resources/unit/artifact-extension/java-source/test-0.1.jar
similarity index 100%
rename from src/it/install-file-minstall-121-java-source/test-0.1.jar
rename to src/test/resources/unit/artifact-extension/java-source/test-0.1.jar
diff --git a/src/it/install-file-minstall-121-java-source/test-0.1.pom 
b/src/test/resources/unit/artifact-extension/java-source/test-0.1.pom
similarity index 100%
rename from src/it/install-file-minstall-121-java-source/test-0.1.pom
rename to src/test/resources/unit/artifact-extension/java-source/test-0.1.pom
diff --git a/src/it/install-file-minstall-121-maven-archetype/test-0.1.jar 
b/src/test/resources/unit/artifact-extension/maven-archetype/test-0.1.jar
similarity index 100%
rename from src/it/install-file-minstall-121-maven-archetype/test-0.1.jar
rename to 
src/test/resources/unit/artifact-extension/maven-archetype/test-0.1.jar
diff --git a/src/it/install-file-minstall-121-maven-archetype/test-0.1.pom 
b/src/test/resources/unit/artifact-extension/maven-archetype/test-0.1.pom
similarity index 100%
rename from src/it/install-file-minstall-121-maven-archetype/test-0.1.pom
rename to 
src/test/resources/unit/artifact-extension/maven-archetype/test-0.1.pom
diff --git a/src/it/install-file-minstall-121-targz/test-0.1.pom 
b/src/test/resources/unit/artifact-extension/targz/test-0.1.pom
similarity index 100%
rename from src/it/install-file-minstall-121-targz/test-0.1.pom
rename to src/test/resources/unit/artifact-extension/targz/test-0.1.pom
diff --git a/src/it/install-file-minstall-121-targz/test-0.1.tar.gz 
b/src/test/resources/unit/artifact-extension/targz/test-0.1.tar.gz
similarity index 100%
rename from src/it/install-file-minstall-121-targz/test-0.1.tar.gz
rename to src/test/resources/unit/artifact-extension/targz/test-0.1.tar.gz
diff --git a/src/it/install-file-minstall-121/test-0.1.jar 
b/src/test/resources/unit/artifact-extension/test/test-0.1.jar
similarity index 100%
rename from src/it/install-file-minstall-121/test-0.1.jar
rename to src/test/resources/unit/artifact-extension/test/test-0.1.jar
diff --git a/src/it/install-file-minstall-121/test-0.1.pom 
b/src/test/resources/unit/artifact-extension/test/test-0.1.pom
similarity index 100%
rename from src/it/install-file-minstall-121/test-0.1.pom
rename to src/test/resources/unit/artifact-extension/test/test-0.1.pom
diff --git a/src/it/install-file-minstall-121-war/test-0.1.pom 
b/src/test/resources/unit/artifact-extension/war/test-0.1.pom
similarity index 100%
rename from src/it/install-file-minstall-121-war/test-0.1.pom
rename to src/test/resources/unit/artifact-extension/war/test-0.1.pom
diff --git a/src/it/install-file-minstall-121-war/test-0.1.war 
b/src/test/resources/unit/artifact-extension/war/test-0.1.war
similarity index 100%
rename from src/it/install-file-minstall-121-war/test-0.1.war
rename to src/test/resources/unit/artifact-extension/war/test-0.1.war

Reply via email to