- Using latest Maven Artifact Transfer (re-versioned to 0.9.0-SNAPSHOT).
- Adding ITs for the manual installation of files with POM and generating checksums in a overridden local repository

git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1767174 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 37145bb..8777bef 100644
--- a/pom.xml
+++ b/pom.xml
@@ -83,7 +83,7 @@
     <dependency>
       <groupId>org.apache.maven.shared</groupId>
       <artifactId>maven-artifact-transfer</artifactId>
-      <version>3.0.0-SNAPSHOT</version>
+      <version>0.9.0-SNAPSHOT</version>
     </dependency>
     <!-- Upgrade of transitive dependency. -->
     <dependency>
diff --git a/src/it/local-repo-override-with-checksum-generatePom/invoker.properties b/src/it/local-repo-override-with-checksum-generatePom/invoker.properties
new file mode 100644
index 0000000..0413238
--- /dev/null
+++ b/src/it/local-repo-override-with-checksum-generatePom/invoker.properties
@@ -0,0 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+invoker.goals = org.apache.maven.plugins:maven-install-plugin:${project.version}:install-file
diff --git a/src/it/local-repo-override-with-checksum-generatePom/pom.xml b/src/it/local-repo-override-with-checksum-generatePom/pom.xml
new file mode 100644
index 0000000..0dfca77
--- /dev/null
+++ b/src/it/local-repo-override-with-checksum-generatePom/pom.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.install.lro</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <description>
+    Tests the manual installation into a different local repo than the one configured in the settings
+    (MINSTALL-35), also installing checksums.
+  </description>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-install-plugin</artifactId>
+        <version>@project.version@</version>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>
diff --git a/src/it/local-repo-override-with-checksum-generatePom/setup.bsh b/src/it/local-repo-override-with-checksum-generatePom/setup.bsh
new file mode 100644
index 0000000..d37913a
--- /dev/null
+++ b/src/it/local-repo-override-with-checksum-generatePom/setup.bsh
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.*;
+import java.util.*;
+
+import org.codehaus.plexus.util.*;
+
+File file = new File( basedir, "target" );
+System.out.println( "Deleting " + file );
+FileUtils.deleteDirectory( file );
+
+return true;
diff --git a/src/it/local-repo-override-with-checksum-generatePom/test.jar b/src/it/local-repo-override-with-checksum-generatePom/test.jar
new file mode 100644
index 0000000..226277c
--- /dev/null
+++ b/src/it/local-repo-override-with-checksum-generatePom/test.jar
Binary files differ
diff --git a/src/it/local-repo-override-with-checksum-generatePom/test.properties b/src/it/local-repo-override-with-checksum-generatePom/test.properties
new file mode 100644
index 0000000..26a7bbf
--- /dev/null
+++ b/src/it/local-repo-override-with-checksum-generatePom/test.properties
@@ -0,0 +1,25 @@
+# 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
+createChecksum = true
+generatePom = true
+localRepositoryPath = target/local-repo
diff --git a/src/it/local-repo-override-with-checksum-generatePom/verify.bsh b/src/it/local-repo-override-with-checksum-generatePom/verify.bsh
new file mode 100644
index 0000000..443ded9
--- /dev/null
+++ b/src/it/local-repo-override-with-checksum-generatePom/verify.bsh
@@ -0,0 +1,56 @@
+/*
+ * 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.apache.maven.plugin.install.Utils;
+
+String[] paths =
+{
+    "gid/test/0.1/test-0.1.jar",
+    "gid/test/0.1/test-0.1.jar.md5",
+    "gid/test/0.1/test-0.1.jar.sha1",
+    "gid/test/0.1/test-0.1.pom",
+    "gid/test/0.1/test-0.1.pom.md5",
+    "gid/test/0.1/test-0.1.pom.sha1",
+};
+
+Set cksumToCheckPaths = new HashSet( Arrays.asList( new String[]
+{
+    "gid/test/0.1/test-0.1.pom",
+    "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() );
+    }
+    if ( cksumToCheckPaths.contains( path ) )
+    {    
+        System.out.println( "Verifying " + file );
+        Utils.verifyChecksum( file );
+    }
+}
+
+return true;
diff --git a/src/it/local-repo-override-with-checksum/verify.bsh b/src/it/local-repo-override-with-checksum/verify.bsh
index b7b2757..56ee1d8 100644
--- a/src/it/local-repo-override-with-checksum/verify.bsh
+++ b/src/it/local-repo-override-with-checksum/verify.bsh
@@ -20,6 +20,8 @@
 import java.io.*;
 import java.util.*;
 
+import org.apache.maven.plugin.install.Utils;
+
 String[] paths =
 {
     "gid/test/0.1/test-0.1.jar",
@@ -27,6 +29,11 @@
     "gid/test/0.1/test-0.1.jar.sha1",
 };
 
+Set cksumToCheckPaths = new HashSet( Arrays.asList( new String[]
+{
+    "gid/test/0.1/test-0.1.jar"
+} ) );
+
 for ( String path : paths )
 {
     File file = new File( new File( basedir, "target/local-repo" ), path );
@@ -35,6 +42,11 @@
     {
         throw new FileNotFoundException( "Existing: " + file.getAbsolutePath() );
     }
+    if ( cksumToCheckPaths.contains( path ) )
+    {    
+        System.out.println( "Verifying " + file );
+        Utils.verifyChecksum( file );
+    }
 }
 
 return true;
diff --git a/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java b/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java
index b87884c..1740871 100644
--- a/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java
+++ b/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java
@@ -22,11 +22,11 @@
 import java.io.File;
 
 import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.execution.MavenSession;
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.project.ProjectBuildingRequest;
 import org.apache.maven.project.artifact.ProjectArtifactMetadata;
 import org.apache.maven.shared.repository.RepositoryManager;
 
@@ -44,11 +44,6 @@
     protected RepositoryManager repositoryManager;
 
     /**
-     */
-    @Parameter( property = "localRepository", required = true, readonly = true )
-    protected ArtifactRepository localRepository;
-
-    /**
      * Flag whether to create checksums (MD5, SHA-1) or not.
      *
      * @since 2.2
@@ -72,10 +67,10 @@
      * @param artifact The artifact whose local repo path should be determined, must not be <code>null</code>.
      * @return The absolute path to the artifact when installed, never <code>null</code>.
      */
-    protected File getLocalRepoFile( Artifact artifact )
+    protected File getLocalRepoFile( ProjectBuildingRequest buildingRequest, Artifact artifact )
     {
-        String path = repositoryManager.getPathForLocalArtifact( session.getProjectBuildingRequest(), artifact );
-        return new File( localRepository.getBasedir(), path );
+        String path = repositoryManager.getPathForLocalArtifact( buildingRequest, artifact );
+        return new File( repositoryManager.getLocalRepositoryBasedir( buildingRequest ), path );
     }
 
     /**
@@ -85,10 +80,10 @@
      * @param metadata The artifact metadata whose local repo path should be determined, must not be <code>null</code>.
      * @return The absolute path to the artifact metadata when installed, never <code>null</code>.
      */
-    protected File getLocalRepoFile( ProjectArtifactMetadata metadata )
+    protected File getLocalRepoFile( ProjectBuildingRequest buildingRequest, ProjectArtifactMetadata metadata )
     {
-        String path = localRepository.pathOfLocalRepositoryMetadata( metadata, localRepository );
-        return new File( localRepository.getBasedir(), path );
+        String path = repositoryManager.getPathForLocalMetadata( buildingRequest, metadata );
+        return new File( repositoryManager.getLocalRepositoryBasedir( buildingRequest ), path );
     }
 
 }
diff --git a/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java b/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java
index fcdfaf3..d7d6f9f 100644
--- a/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java
+++ b/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java
@@ -227,7 +227,7 @@
         MavenProject project = createMavenProject();
         Artifact artifact = project.getArtifact();
         
-        if ( file.equals( getLocalRepoFile( artifact ) ) )
+        if ( file.equals( getLocalRepoFile( buildingRequest, artifact ) ) )
         {
             throw new MojoFailureException( "Cannot install artifact. "
                 + "Artifact is already in the local repository.\n\nFile in question is: " + file + "\n" );
@@ -264,7 +264,7 @@
                 File generatedPomFile = generatePomFile();
                 ProjectArtifactMetadata pomMetadata = new ProjectArtifactMetadata( artifact, generatedPomFile );
                 if ( Boolean.TRUE.equals( generatePom )
-                    || ( generatePom == null && !getLocalRepoFile( pomMetadata ).exists() ) )
+                    || ( generatePom == null && !getLocalRepoFile( buildingRequest, pomMetadata ).exists() ) )
                 {
                     getLog().debug( "Installing generated POM" );
                     if ( classifier == null )
@@ -300,7 +300,7 @@
                 new ProjectInstallerRequest().setProject( project ).setCreateChecksum( createChecksum ).setUpdateReleaseInfo( updateReleaseInfo );
             // CHECKSTYLE_ON: LineLength
 
-            installer.install( buildingRequest, projectInstallerRequest, localRepository );
+            installer.install( buildingRequest, projectInstallerRequest );
         }
         catch ( Exception e )
         {
diff --git a/src/main/java/org/apache/maven/plugin/install/InstallMojo.java b/src/main/java/org/apache/maven/plugin/install/InstallMojo.java
index c0b16eb..03b52ac 100644
--- a/src/main/java/org/apache/maven/plugin/install/InstallMojo.java
+++ b/src/main/java/org/apache/maven/plugin/install/InstallMojo.java
@@ -138,8 +138,7 @@
     {
         try
         {
-            installer.install( session.getProjectBuildingRequest(), pir,
-                                      localRepository );
+            installer.install( session.getProjectBuildingRequest(), pir );
         }
         catch ( IOException e )
         {
diff --git a/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java b/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java
index 5ed59ec..48e4b94 100644
--- a/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java
+++ b/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java
@@ -29,7 +29,6 @@
 
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.artifact.metadata.ArtifactMetadata;
-import org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.execution.MavenSession;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.install.stubs.AttachedArtifactStub0;
@@ -38,6 +37,7 @@
 import org.apache.maven.project.DefaultProjectBuildingRequest;
 import org.apache.maven.project.MavenProject;
 import org.apache.maven.project.ProjectBuildingRequest;
+import org.apache.maven.shared.repository.RepositoryManager;
 import org.apache.maven.shared.utils.io.FileUtils;
 import org.sonatype.aether.impl.internal.EnhancedLocalRepositoryManager;
 import org.sonatype.aether.util.ChecksumUtils;
@@ -264,10 +264,11 @@
         File file = new File( getBasedir(), "target/test-classes/unit/basic-install-checksum/" + "maven-test-jar.jar" );
 
         MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "project" );
+        MavenSession mavenSession = createMavenSession();
         updateMavenProject( project );
 
         setVariableValueToObject( mojo, "reactorProjects", Collections.singletonList( project ) );
-        setVariableValueToObject( mojo, "session", createMavenSession() );
+        setVariableValueToObject( mojo, "session", mavenSession );
 
         artifact = (InstallArtifactStub) project.getArtifact();
 
@@ -289,9 +290,12 @@
             }
         }
 
-        ArtifactRepository localRepo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" );
+        RepositoryManager repoManager = (RepositoryManager) getVariableValueFromObject( mojo, "repositoryManager" );
+        
+        ProjectBuildingRequest pbr = mavenSession.getProjectBuildingRequest();
 
-        File pom = new File( localRepo.getBasedir(), localRepo.pathOfLocalRepositoryMetadata( metadata, localRepo ) );
+        File pom = new File( repoManager.getLocalRepositoryBasedir( pbr ),
+                             repoManager.getPathForLocalMetadata( pbr, metadata ) );
 
         assertTrue( pom.exists() );
 
diff --git a/src/test/resources/unit/basic-install-checksum/plugin-config.xml b/src/test/resources/unit/basic-install-checksum/plugin-config.xml
index 3c7a81b..1783431 100644
--- a/src/test/resources/unit/basic-install-checksum/plugin-config.xml
+++ b/src/test/resources/unit/basic-install-checksum/plugin-config.xml
@@ -22,7 +22,6 @@
       <plugin>
         <artifactId>maven-install-plugin</artifactId>
         <configuration>
-          <localRepository>${localRepository}</localRepository>
           <createChecksum>true</createChecksum>
           <project implementation="org.apache.maven.plugin.testing.stubs.MavenProjectStub">
             <file>${basedir}/src/test/resources/unit/basic-install-checksum/plugin-config.xml</file>
diff --git a/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml b/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml
index 8f63aaf..b57f115 100644
--- a/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml
+++ b/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml
@@ -22,7 +22,6 @@
       <plugin>
         <artifactId>maven-install-plugin</artifactId>
         <configuration>
-          <localRepository>${localRepository}</localRepository>
           <project implementation="org.apache.maven.plugin.testing.stubs.MavenProjectStub">
             <file>${basedir}/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml</file>
             <packaging>pom</packaging>
diff --git a/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml b/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml
index 4d480e2..c777c07 100644
--- a/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml
+++ b/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml
@@ -22,7 +22,6 @@
       <plugin>
         <artifactId>maven-install-plugin</artifactId>
         <configuration>
-          <localRepository>${localRepository}</localRepository>
           <project implementation="org.apache.maven.plugin.testing.stubs.MavenProjectStub">
             <file>${basedir}/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml</file>
             <packaging>jar</packaging>
diff --git a/src/test/resources/unit/basic-install-test/plugin-config.xml b/src/test/resources/unit/basic-install-test/plugin-config.xml
index 970d6bc..fd6b8b1 100644
--- a/src/test/resources/unit/basic-install-test/plugin-config.xml
+++ b/src/test/resources/unit/basic-install-test/plugin-config.xml
@@ -22,7 +22,6 @@
       <plugin>
         <artifactId>maven-install-plugin</artifactId>
         <configuration>
-          <localRepository>${localRepository}</localRepository>
           <project implementation="org.apache.maven.plugin.testing.stubs.MavenProjectStub">
             <file>${basedir}/src/test/resources/unit/basic-install-test/plugin-config.xml</file>
             <packaging>jar</packaging>
diff --git a/src/test/resources/unit/configured-install-test/plugin-config.xml b/src/test/resources/unit/configured-install-test/plugin-config.xml
index f17adb1..39366b9 100644
--- a/src/test/resources/unit/configured-install-test/plugin-config.xml
+++ b/src/test/resources/unit/configured-install-test/plugin-config.xml
@@ -23,7 +23,6 @@
         <artifactId>maven-install-plugin</artifactId>
         <configuration>
           <updateReleaseInfo>true</updateReleaseInfo>
-          <localRepository>${localRepository}</localRepository>
           <project implementation="org.apache.maven.plugin.testing.stubs.MavenProjectStub">
             <file>${basedir}/src/test/resources/unit/configured-install-test/plugin-config.xml</file>
             <packaging>jar</packaging>
diff --git a/src/test/resources/unit/install-file-basic-test/plugin-config.xml b/src/test/resources/unit/install-file-basic-test/plugin-config.xml
index 26647a5..4052343 100644
--- a/src/test/resources/unit/install-file-basic-test/plugin-config.xml
+++ b/src/test/resources/unit/install-file-basic-test/plugin-config.xml
@@ -28,7 +28,6 @@
           <packaging>jar</packaging>
           <file>${basedir}/target/test-classes/unit/install-file-basic-test/target/maven-install-test-1.0-SNAPSHOT.jar
           </file>
-          <localRepository>${localRepository}</localRepository>
         </configuration>
       </plugin>
     </plugins>
diff --git a/src/test/resources/unit/install-file-test-generatePom/plugin-config.xml b/src/test/resources/unit/install-file-test-generatePom/plugin-config.xml
index aea7895..f6624f6 100644
--- a/src/test/resources/unit/install-file-test-generatePom/plugin-config.xml
+++ b/src/test/resources/unit/install-file-test-generatePom/plugin-config.xml
@@ -30,7 +30,6 @@
             ${basedir}/src/test/resources/unit/install-file-test-generatePom/target/maven-install-test-1.0-SNAPSHOT.jar
           </file>
           <generatePom>true</generatePom>
-          <localRepository>${localRepository}</localRepository>
         </configuration>
       </plugin>
     </plugins>
diff --git a/src/test/resources/unit/install-file-with-checksum/plugin-config.xml b/src/test/resources/unit/install-file-with-checksum/plugin-config.xml
index f01a30e..384b003 100644
--- a/src/test/resources/unit/install-file-with-checksum/plugin-config.xml
+++ b/src/test/resources/unit/install-file-with-checksum/plugin-config.xml
@@ -27,7 +27,6 @@
           <version>1.0-SNAPSHOT</version>
           <packaging>jar</packaging>
           <file>${basedir}/src/test/resources/unit/install-file-with-checksum/maven-test-jar.jar</file>
-          <localRepository>${localRepository}</localRepository>
           <createChecksum>true</createChecksum>
           <generatePom>true</generatePom>
         </configuration>
diff --git a/src/test/resources/unit/install-file-with-classifier/plugin-config.xml b/src/test/resources/unit/install-file-with-classifier/plugin-config.xml
index 44a8be7..8d6a18e 100644
--- a/src/test/resources/unit/install-file-with-classifier/plugin-config.xml
+++ b/src/test/resources/unit/install-file-with-classifier/plugin-config.xml
@@ -29,7 +29,6 @@
           <classifier>sources</classifier>
           <file>${basedir}/target/test-classes/unit/install-file-with-classifier/target/maven-install-test-1.0-SNAPSHOT.jar
           </file>
-          <localRepository>${localRepository}</localRepository>
         </configuration>
       </plugin>
     </plugins>
diff --git a/src/test/resources/unit/install-file-with-pom-as-packaging/plugin-config.xml b/src/test/resources/unit/install-file-with-pom-as-packaging/plugin-config.xml
index f128804..4ec759d 100644
--- a/src/test/resources/unit/install-file-with-pom-as-packaging/plugin-config.xml
+++ b/src/test/resources/unit/install-file-with-pom-as-packaging/plugin-config.xml
@@ -27,7 +27,6 @@
           <version>1.0-SNAPSHOT</version>
           <packaging>pom</packaging>
           <file>${basedir}/src/test/resources/unit/install-file-with-pomFile-test/plugin-config.xml</file>
-          <localRepository>${localRepository}</localRepository>
         </configuration>
       </plugin>
     </plugins>
diff --git a/src/test/resources/unit/install-file-with-pomFile-test/plugin-config.xml b/src/test/resources/unit/install-file-with-pomFile-test/plugin-config.xml
index 8bb20a6..fc7c108 100644
--- a/src/test/resources/unit/install-file-with-pomFile-test/plugin-config.xml
+++ b/src/test/resources/unit/install-file-with-pomFile-test/plugin-config.xml
Binary files differ