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 48619b3  Convert remaining file-existence ITs to unit tests
48619b3 is described below

commit 48619b3ecea92d77251a9e3b16310501a971a9f6
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sat Nov 21 15:59:58 2026 +0100

    Convert remaining file-existence ITs to unit tests
    
    Part of #501
---
 src/it/attach-release-jar/pom.xml                  |  85 ---------------------
 src/it/attach-release-jar/setup.groovy             |  29 -------
 src/it/attach-release-jar/verify.groovy            |  41 ----------
 .../install-file-generated-pom/invoker.properties  |  18 -----
 src/it/install-file-generated-pom/pom.xml          |  46 -----------
 src/it/install-file-generated-pom/setup.groovy     |  24 ------
 src/it/install-file-generated-pom/test-0.1.jar     | Bin 345 -> 0 bytes
 src/it/install-file-generated-pom/test-0.1.pom     |  35 ---------
 src/it/install-file-generated-pom/test.properties  |  19 -----
 src/it/install-file-generated-pom/verify.groovy    |  46 -----------
 src/it/jar-sources-javadoc/invoker.properties      |  18 -----
 src/it/jar-sources-javadoc/javadoc.jar             | Bin 345 -> 0 bytes
 src/it/jar-sources-javadoc/pom.xml                 |  45 -----------
 src/it/jar-sources-javadoc/setup.groovy            |  29 -------
 src/it/jar-sources-javadoc/sources.jar             | Bin 345 -> 0 bytes
 src/it/jar-sources-javadoc/test.jar                | Bin 345 -> 0 bytes
 src/it/jar-sources-javadoc/test.properties         |  24 ------
 src/it/jar-sources-javadoc/verify.groovy           |  65 ----------------
 src/it/release-jar/pom.xml                         |  69 -----------------
 src/it/release-jar/setup.groovy                    |  29 -------
 src/it/release-jar/verify.groovy                   |  40 ----------
 src/it/release-pom/pom.xml                         |  64 ----------------
 src/it/release-pom/setup.groovy                    |  29 -------
 src/it/release-pom/verify.groovy                   |  39 ----------
 src/it/snapshot-jar/pom.xml                        |  69 -----------------
 src/it/snapshot-jar/setup.groovy                   |  29 -------
 src/it/snapshot-jar/verify.groovy                  |  41 ----------
 src/it/snapshot-pom/pom.xml                        |  64 ----------------
 src/it/snapshot-pom/setup.groovy                   |  29 -------
 src/it/snapshot-pom/verify.groovy                  |  40 ----------
 .../maven/plugins/install/InstallFileMojoTest.java |  40 ++++++++++
 .../maven/plugins/install/InstallMojoTest.java     |  54 +++++++++++++
 32 files changed, 94 insertions(+), 1066 deletions(-)

diff --git a/src/it/attach-release-jar/pom.xml 
b/src/it/attach-release-jar/pom.xml
deleted file mode 100644
index 1527897..0000000
--- a/src/it/attach-release-jar/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.arj</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the installation of a simple release JAR with an attached artifact.
-  </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-release-jar/setup.groovy 
b/src/it/attach-release-jar/setup.groovy
deleted file mode 100644
index f402522..0000000
--- a/src/it/attach-release-jar/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/arj" 
);
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/attach-release-jar/verify.groovy 
b/src/it/attach-release-jar/verify.groovy
deleted file mode 100644
index 3652c5e..0000000
--- a/src/it/attach-release-jar/verify.groovy
+++ /dev/null
@@ -1,41 +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/arj/test/maven-metadata-local.xml",
-    "org/apache/maven/its/install/arj/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/install/arj/test/1.0/test-1.0.jar",
-    "org/apache/maven/its/install/arj/test/1.0/test-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() 
);
-    }
-}
-
-return true;
diff --git a/src/it/install-file-generated-pom/invoker.properties 
b/src/it/install-file-generated-pom/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/install-file-generated-pom/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-generated-pom/pom.xml 
b/src/it/install-file-generated-pom/pom.xml
deleted file mode 100644
index fcf8f33..0000000
--- a/src/it/install-file-generated-pom/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.55</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the manual installation of a simple release JAR with a corresponding 
POM whose coordinates are inherited
-    from the parent.
-  </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-generated-pom/setup.groovy 
b/src/it/install-file-generated-pom/setup.groovy
deleted file mode 100644
index 11f04e3..0000000
--- a/src/it/install-file-generated-pom/setup.groovy
+++ /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 file = new File( localRepositoryPath, "org/apache/maven/its/install/55" );
-System.out.println( "Deleting " + file );
-file.deleteDir();
-
-return true;
diff --git a/src/it/install-file-generated-pom/test-0.1.jar 
b/src/it/install-file-generated-pom/test-0.1.jar
deleted file mode 100644
index 226277c..0000000
Binary files a/src/it/install-file-generated-pom/test-0.1.jar and /dev/null 
differ
diff --git a/src/it/install-file-generated-pom/test-0.1.pom 
b/src/it/install-file-generated-pom/test-0.1.pom
deleted file mode 100644
index c07e440..0000000
--- a/src/it/install-file-generated-pom/test-0.1.pom
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-  <modelVersion>4.0.0</modelVersion>
-
-  <parent>
-    <groupId>org.apache.maven.its.install.55</groupId>
-    <artifactId>parent</artifactId>
-    <version>1.0</version>
-  </parent>
-
-  <!-- NOTE: Inherit everything from the parent -->
-  <artifactId>test</artifactId>
-
-</project>
diff --git a/src/it/install-file-generated-pom/test.properties 
b/src/it/install-file-generated-pom/test.properties
deleted file mode 100644
index 5b4e2ae..0000000
--- a/src/it/install-file-generated-pom/test.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.
-
-file = test-0.1.jar
-pomFile = test-0.1.pom
diff --git a/src/it/install-file-generated-pom/verify.groovy 
b/src/it/install-file-generated-pom/verify.groovy
deleted file mode 100644
index 2affff8..0000000
--- a/src/it/install-file-generated-pom/verify.groovy
+++ /dev/null
@@ -1,46 +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/55/test/maven-metadata-local.xml",
-    "org/apache/maven/its/install/55/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/install/55/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() );
-}
-
-return true;
diff --git a/src/it/jar-sources-javadoc/invoker.properties 
b/src/it/jar-sources-javadoc/invoker.properties
deleted file mode 100644
index 0413238..0000000
--- a/src/it/jar-sources-javadoc/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/jar-sources-javadoc/javadoc.jar 
b/src/it/jar-sources-javadoc/javadoc.jar
deleted file mode 100644
index 226277c..0000000
Binary files a/src/it/jar-sources-javadoc/javadoc.jar and /dev/null differ
diff --git a/src/it/jar-sources-javadoc/pom.xml 
b/src/it/jar-sources-javadoc/pom.xml
deleted file mode 100644
index 32ca82e..0000000
--- a/src/it/jar-sources-javadoc/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.jsj</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests combined installation of a JAR together with its API docs and 
sources (cf. MINSTALL-49).
-  </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/jar-sources-javadoc/setup.groovy 
b/src/it/jar-sources-javadoc/setup.groovy
deleted file mode 100644
index 19b1ee1..0000000
--- a/src/it/jar-sources-javadoc/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 groupDir = new File( localRepositoryPath, 
"org/apache/maven/its/install/jsj" );
-System.out.println( "Deleting " + groupDir );
-FileUtils.deleteDirectory( groupDir );
-
-return true;
diff --git a/src/it/jar-sources-javadoc/sources.jar 
b/src/it/jar-sources-javadoc/sources.jar
deleted file mode 100644
index 226277c..0000000
Binary files a/src/it/jar-sources-javadoc/sources.jar and /dev/null differ
diff --git a/src/it/jar-sources-javadoc/test.jar 
b/src/it/jar-sources-javadoc/test.jar
deleted file mode 100644
index 226277c..0000000
Binary files a/src/it/jar-sources-javadoc/test.jar and /dev/null differ
diff --git a/src/it/jar-sources-javadoc/test.properties 
b/src/it/jar-sources-javadoc/test.properties
deleted file mode 100644
index b7330af..0000000
--- a/src/it/jar-sources-javadoc/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 = org.apache.maven.its.install.jsj
-artifactId = test
-version = 0.1
-packaging = jar
-javadoc = javadoc.jar
-sources = sources.jar
diff --git a/src/it/jar-sources-javadoc/verify.groovy 
b/src/it/jar-sources-javadoc/verify.groovy
deleted file mode 100644
index 8ca0f99..0000000
--- a/src/it/jar-sources-javadoc/verify.groovy
+++ /dev/null
@@ -1,65 +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/jsj/test/maven-metadata-local.xml",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1.jar",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1.pom",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1-sources.jar",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1-javadoc.jar",
-];
-
-String[] pathsWhichShouldNotExist =
-[
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1.jar.md5",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1.jar.sha1",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1.pom.md5",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1.pom.sha1",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1-sources.jar.md5",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1-sources.jar.sha1",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1-javadoc.jar.md5",
-    "org/apache/maven/its/install/jsj/test/0.1/test-0.1-javadoc.jar.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 non existence of " + file );
-    if ( file.isFile() )
-    {
-        throw new IOException( "Missing: " + file.getAbsolutePath() );
-    }
-}
-
-return true;
diff --git a/src/it/release-jar/pom.xml b/src/it/release-jar/pom.xml
deleted file mode 100644
index f243b3c..0000000
--- a/src/it/release-jar/pom.xml
+++ /dev/null
@@ -1,69 +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.rj</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the 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>
-      </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/release-jar/setup.groovy b/src/it/release-jar/setup.groovy
deleted file mode 100644
index dd33a5e..0000000
--- a/src/it/release-jar/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/rj" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/release-jar/verify.groovy b/src/it/release-jar/verify.groovy
deleted file mode 100644
index a862f37..0000000
--- a/src/it/release-jar/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/rj/test/maven-metadata-local.xml",
-    "org/apache/maven/its/install/rj/test/1.0/test-1.0.pom",
-    "org/apache/maven/its/install/rj/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() 
);
-    }
-}
-
-return true;
diff --git a/src/it/release-pom/pom.xml b/src/it/release-pom/pom.xml
deleted file mode 100644
index 163efa3..0000000
--- a/src/it/release-pom/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.rp</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0</version>
-  <packaging>pom</packaging>
-
-  <description>
-    Tests the installation of a simple release POM.
-  </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/release-pom/setup.groovy b/src/it/release-pom/setup.groovy
deleted file mode 100644
index d1b2074..0000000
--- a/src/it/release-pom/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/rp" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/release-pom/verify.groovy b/src/it/release-pom/verify.groovy
deleted file mode 100644
index 943f28f..0000000
--- a/src/it/release-pom/verify.groovy
+++ /dev/null
@@ -1,39 +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/rp/test/maven-metadata-local.xml",
-    "org/apache/maven/its/install/rp/test/1.0/test-1.0.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() 
);
-    }
-}
-
-return true;
diff --git a/src/it/snapshot-jar/pom.xml b/src/it/snapshot-jar/pom.xml
deleted file mode 100644
index 392da48..0000000
--- a/src/it/snapshot-jar/pom.xml
+++ /dev/null
@@ -1,69 +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.sj</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0-SNAPSHOT</version>
-  <packaging>jar</packaging>
-
-  <description>
-    Tests the installation of a simple snapshot 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-jar-plugin</artifactId>
-        <version>@mavenJarPluginVersion@</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/snapshot-jar/setup.groovy b/src/it/snapshot-jar/setup.groovy
deleted file mode 100644
index d8cd355..0000000
--- a/src/it/snapshot-jar/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/sj" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/snapshot-jar/verify.groovy 
b/src/it/snapshot-jar/verify.groovy
deleted file mode 100644
index 811ed08..0000000
--- a/src/it/snapshot-jar/verify.groovy
+++ /dev/null
@@ -1,41 +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/sj/test/maven-metadata-local.xml",
-    
"org/apache/maven/its/install/sj/test/1.0-SNAPSHOT/maven-metadata-local.xml",
-    "org/apache/maven/its/install/sj/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.pom",
-    "org/apache/maven/its/install/sj/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.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() 
);
-    }
-}
-
-return true;
diff --git a/src/it/snapshot-pom/pom.xml b/src/it/snapshot-pom/pom.xml
deleted file mode 100644
index 2532c85..0000000
--- a/src/it/snapshot-pom/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.sp</groupId>
-  <artifactId>test</artifactId>
-  <version>1.0-SNAPSHOT</version>
-  <packaging>pom</packaging>
-
-  <description>
-    Tests the installation of a simple snapshot POM.
-  </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/snapshot-pom/setup.groovy b/src/it/snapshot-pom/setup.groovy
deleted file mode 100644
index 27cbf2c..0000000
--- a/src/it/snapshot-pom/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/sp" );
-System.out.println( "Deleting " + file );
-FileUtils.deleteDirectory( file );
-
-return true;
diff --git a/src/it/snapshot-pom/verify.groovy 
b/src/it/snapshot-pom/verify.groovy
deleted file mode 100644
index 7403ead..0000000
--- a/src/it/snapshot-pom/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/sp/test/maven-metadata-local.xml",
-    
"org/apache/maven/its/install/sp/test/1.0-SNAPSHOT/maven-metadata-local.xml",
-    "org/apache/maven/its/install/sp/test/1.0-SNAPSHOT/test-1.0-SNAPSHOT.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() 
);
-    }
-}
-
-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 e8f8520..c1e21fe 100644
--- a/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/install/InstallFileMojoTest.java
@@ -747,6 +747,46 @@ public class InstallFileMojoTest {
                 "The installed POM must be the supplied pomFile, not a 
generated one");
     }
 
+    @Test
+    @InjectMojo(goal = "install-file")
+    @MojoParameter(name = "groupId", value = 
"org.apache.maven.its.install.jsj")
+    @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 
installFileWithSourcesAndJavadocInstallsAllArtifactsWithoutChecksums(InstallFileMojo
 mojo) throws Exception {
+        setMojoField(
+                mojo,
+                "sources",
+                Files.createTempFile(tempDir, "sources", ".jar").toFile());
+        setMojoField(
+                mojo,
+                "javadoc",
+                Files.createTempFile(tempDir, "javadoc", ".jar").toFile());
+
+        mojo.execute();
+
+        String versionDir = "org/apache/maven/its/install/jsj/test/0.1/";
+        String[] installed = {
+            "org/apache/maven/its/install/jsj/test/maven-metadata-local.xml",
+            versionDir + "test-0.1.jar",
+            versionDir + "test-0.1.pom",
+            versionDir + "test-0.1-sources.jar",
+            versionDir + "test-0.1-javadoc.jar"
+        };
+        for (String path : installed) {
+            assertInstalled(localRepo, path);
+        }
+        for (String path : new String[] {
+            versionDir + "test-0.1.jar",
+            versionDir + "test-0.1.pom",
+            versionDir + "test-0.1-sources.jar",
+            versionDir + "test-0.1-javadoc.jar"
+        }) {
+            InstallTestHelper.assertNoChecksum(localRepo, path);
+        }
+    }
+
     @Test
     @InjectMojo(goal = "install-file")
     @MojoParameter(name = "packaging", value = "jar")
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 36ef131..8a0c797 100644
--- a/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/install/InstallMojoTest.java
@@ -358,6 +358,60 @@ class InstallMojoTest {
         InstallTestHelper.assertNoChecksum(localRepo, versionDir + 
"test-1.0-SNAPSHOT.pom");
     }
 
+    @Test
+    @InjectMojo(goal = "install")
+    void releaseJarInstallsPomJarAndGroupMetadata(InstallMojo mojo) throws 
Exception {
+        mojo.setPluginContext(new HashMap<>());
+        mavenProject.setGroupId("org.apache.maven.its.install.rj");
+        mavenProject.setArtifactId("test");
+        mavenProject.setVersion("1.0");
+        setProjectArtifact(mavenProject);
+
+        mojo.execute();
+
+        assertInstalled(localRepo, 
"org/apache/maven/its/install/rj/test/maven-metadata-local.xml");
+        assertInstalled(localRepo, 
"org/apache/maven/its/install/rj/test/1.0/test-1.0.pom");
+        assertInstalled(localRepo, 
"org/apache/maven/its/install/rj/test/1.0/test-1.0.jar");
+    }
+
+    @Test
+    @InjectMojo(goal = "install")
+    void 
releaseJarWithAttachedSourcesInstallsPomJarSourcesAndMetadata(InstallMojo mojo) 
throws Exception {
+        mojo.setPluginContext(new HashMap<>());
+        mavenProject.setGroupId("org.apache.maven.its.install.arj");
+        mavenProject.setArtifactId("test");
+        mavenProject.setVersion("1.0");
+        setProjectArtifact(mavenProject);
+        mavenProjectHelper.attachArtifact(
+                mavenProject,
+                "jar",
+                "sources",
+                Files.createTempFile(tempDir, "test-1.0-sources", 
"jar").toFile());
+
+        mojo.execute();
+
+        assertInstalled(localRepo, 
"org/apache/maven/its/install/arj/test/maven-metadata-local.xml");
+        assertInstalled(localRepo, 
"org/apache/maven/its/install/arj/test/1.0/test-1.0.pom");
+        assertInstalled(localRepo, 
"org/apache/maven/its/install/arj/test/1.0/test-1.0.jar");
+        assertInstalled(localRepo, 
"org/apache/maven/its/install/arj/test/1.0/test-1.0-sources.jar");
+    }
+
+    @Test
+    @InjectMojo(goal = "install")
+    void releasePomInstallsPomAndGroupMetadata(InstallMojo mojo) throws 
Exception {
+        mojo.setPluginContext(new HashMap<>());
+        mavenProject.setGroupId("org.apache.maven.its.install.rp");
+        mavenProject.setArtifactId("test");
+        mavenProject.setVersion("1.0");
+        mavenProject.setPackaging("pom");
+        mavenProject.setPomFile(Files.createTempFile(tempDir, "test-1.0", 
"pom").toFile());
+
+        mojo.execute();
+
+        assertInstalled(localRepo, 
"org/apache/maven/its/install/rp/test/maven-metadata-local.xml");
+        assertInstalled(localRepo, 
"org/apache/maven/its/install/rp/test/1.0/test-1.0.pom");
+    }
+
     private void assertNoMainArtifactWithAttachments(InstallMojo mojo, boolean 
classesDirPresent) throws Exception {
         mojo.setPluginContext(new HashMap<>());
         mavenProject.setGroupId(

Reply via email to