maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gb...@apache.org
Subject svn commit: r1767178 - in /maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install: ProjectInstaller.java internal/DefaultProjectInstaller.java
Date Sun, 30 Oct 2016 19:25:53 GMT
Author: gboue
Date: Sun Oct 30 19:25:53 2016
New Revision: 1767178

URL: http://svn.apache.org/viewvc?rev=1767178&view=rev
Log:
[MSHARED-598] Simplify ProjectInstaller by not requiring an ArtifactRepository

Part 2 - Removing the "install" overload taking the ArtifactRepository

Modified:
    maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install/ProjectInstaller.java
    maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install/internal/DefaultProjectInstaller.java

Modified: maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install/ProjectInstaller.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install/ProjectInstaller.java?rev=1767178&r1=1767177&r2=1767178&view=diff
==============================================================================
--- maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install/ProjectInstaller.java
(original)
+++ maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install/ProjectInstaller.java
Sun Oct 30 19:25:53 2016
@@ -21,7 +21,6 @@ package org.apache.maven.shared.project.
 
 import java.io.IOException;
 
-import org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.project.ProjectBuildingRequest;
 import org.apache.maven.shared.artifact.install.ArtifactInstallerException;
 import org.apache.maven.shared.project.NoFileAssignedException;
@@ -75,9 +74,4 @@ public interface ProjectInstaller
     void install( ProjectBuildingRequest projectBuildingRequest, ProjectInstallerRequest
projectInstallerRequest )
         throws IOException, ArtifactInstallerException, NoFileAssignedException;
 
-    // to be removed
-    void install( ProjectBuildingRequest projectBuildingRequest, ProjectInstallerRequest
projectInstallerRequest,
-                  ArtifactRepository artifactRepository )
-        throws IOException, ArtifactInstallerException, NoFileAssignedException;
-
 }

Modified: maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install/internal/DefaultProjectInstaller.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install/internal/DefaultProjectInstaller.java?rev=1767178&r1=1767177&r2=1767178&view=diff
==============================================================================
--- maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install/internal/DefaultProjectInstaller.java
(original)
+++ maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/project/install/internal/DefaultProjectInstaller.java
Sun Oct 30 19:25:53 2016
@@ -28,7 +28,6 @@ import java.util.List;
 
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.artifact.metadata.ArtifactMetadata;
-import org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.project.MavenProject;
 import org.apache.maven.project.ProjectBuildingRequest;
 import org.apache.maven.project.artifact.ProjectArtifact;
@@ -65,16 +64,10 @@ public class DefaultProjectInstaller
 
     private final DualDigester digester = new DualDigester();
 
-    public void install( ProjectBuildingRequest buildingRequest, ProjectInstallerRequest
request,
-                         ArtifactRepository artifactRepository )
-        throws IOException, ArtifactInstallerException, NoFileAssignedException
-    {
-        install( buildingRequest, request );
-    }
-
     /**
      * {@inheritDoc}
      */
+    @Override
     public void install( ProjectBuildingRequest buildingRequest, ProjectInstallerRequest
request )
         throws IOException, ArtifactInstallerException, NoFileAssignedException
     {



Mime
View raw message