Author: rfscholte Date: Sun Dec 27 20:15:12 2015 New Revision: 1721840 URL: http://svn.apache.org/viewvc?rev=1721840&view=rev Log: Adjust package of RepositoryManager
Added: maven/plugins/trunk/maven-install-plugin/pom.xml.bak Modified: maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java Added: maven/plugins/trunk/maven-install-plugin/pom.xml.bak URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/pom.xml.bak?rev=1721840&view=auto ============================================================================== --- maven/plugins/trunk/maven-install-plugin/pom.xml.bak (added) +++ maven/plugins/trunk/maven-install-plugin/pom.xml.bak Sun Dec 27 20:15:12 2015 @@ -0,0 +1,189 @@ +<?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> + <artifactId>maven-plugins</artifactId> + <groupId>org.apache.maven.plugins</groupId> + <version>28-SNAPSHOT</version> + <relativePath>../maven-plugins/pom.xml</relativePath> + </parent> + + <artifactId>maven-install-plugin</artifactId> + <version>3.0-SNAPSHOT</version> + <packaging>maven-plugin</packaging> + + <name>Apache Maven Install Plugin</name> + <description>Copies the project artifacts to the user's local repository.</description> + <inceptionYear>2004</inceptionYear> + + <prerequisites> + <maven>${mavenVersion}</maven> + </prerequisites> + + <scm> + <connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin/</connection> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin/ + </developerConnection> + <url>http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/</url> + </scm> + <issueManagement> + <system>jira</system> + <url>https://issues.apache.org/jira/browse/MINSTALL</url> + </issueManagement> + <distributionManagement> + <site> + <id>apache.website</id> + <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/components/${maven.site.path}</url> + </site> + </distributionManagement> + + <properties> + <mavenVersion>3.0</mavenVersion> + <maven.compiler.source>1.6</maven.compiler.source> + <maven.compiler.target>1.6</maven.compiler.target> + </properties> + + <dependencies> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + <version>${mavenVersion}</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-model</artifactId> + <version>${mavenVersion}</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact</artifactId> + <version>${mavenVersion}</version> + </dependency> + + <dependency> + <groupId>org.apache.maven.shared</groupId> + <artifactId>maven-artifact-transfer</artifactId> + <version>0.0.1-SNAPSHOT</version> + </dependency> + + <!-- dependencies to annotations --> + <dependency> + <groupId>org.apache.maven.plugin-tools</groupId> + <artifactId>maven-plugin-annotations</artifactId> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.11</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.plugin-testing</groupId> + <artifactId>maven-plugin-testing-harness</artifactId> + <version>2.1</version> + <scope>test</scope> + <exclusions> + <exclusion> + <artifactId>plexus-container-default</artifactId> + <groupId>org.codehaus.plexus</groupId> + </exclusion> + </exclusions> + </dependency> + <dependency> <!-- used by maven-plugin-testing-harness, don't give it compile scope! --> + <groupId>org.apache.maven</groupId> + <artifactId>maven-compat</artifactId> + <version>${mavenVersion}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-core</artifactId> + <version>1.9.5</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>commons-codec</groupId> + <artifactId>commons-codec</artifactId> + <version>1.6</version> + </dependency> + <dependency> + <groupId>org.apache.maven.shared</groupId> + <artifactId>maven-shared-utils</artifactId> + <version>0.7</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-utils</artifactId> + <version>3.0.20</version> + </dependency> + </dependencies> + + <contributors> + <!-- alphabetic order --> + <contributor> + <name>Hermann Josef Hill</name> + </contributor> + <contributor> + <name>Ludwig Magnusson</name> + </contributor> + </contributors> + + <profiles> + <profile> + <id>run-its</id> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-invoker-plugin</artifactId> + <version>1.10</version> + <configuration> + <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> + <cloneClean>true</cloneClean> + <pomIncludes> + <pomInclude>*/pom.xml</pomInclude> + <pomInclude>*/non-default-pom.xml</pomInclude> + </pomIncludes> + <preBuildHookScript>setup</preBuildHookScript> + <postBuildHookScript>verify</postBuildHookScript> + <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> + <settingsFile>src/it/settings.xml</settingsFile> + <addTestClassPath>true</addTestClassPath> + <goals> + <goal>clean</goal> + <goal>install</goal> + </goals> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + </profile> + </profiles> + +</project> Modified: maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java?rev=1721840&r1=1721839&r2=1721840&view=diff ============================================================================== --- maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java (original) +++ maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java Sun Dec 27 20:15:12 2015 @@ -33,7 +33,7 @@ import org.apache.maven.plugin.MojoExecu import org.apache.maven.plugins.annotations.Component; import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.shared.artifact.install.ArtifactInstaller; -import org.apache.maven.shared.artifact.repository.RepositoryManager; +import org.apache.maven.shared.repository.RepositoryManager; import org.apache.maven.shared.utils.io.FileUtils; /** @@ -141,7 +141,7 @@ public abstract class AbstractInstallMoj return; } - @SuppressWarnings( "unchecked" ) Collection<ArtifactMetadata> metadatas = artifact.getMetadataList(); + Collection<ArtifactMetadata> metadatas = artifact.getMetadataList(); if ( metadatas != null ) { for ( ArtifactMetadata metadata : metadatas )