mirror of https://github.com/apache/maven.git
rename group metadata
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@265618 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c0b0b37e2b
commit
9b6a7939db
|
@ -16,26 +16,29 @@ package org.apache.maven.artifact.repository.metadata;
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
public class PluginMappingMetadata
|
||||
public class GroupRepositoryMetadata
|
||||
implements RepositoryMetadata
|
||||
{
|
||||
private static final String PLUGIN_MAPPING_FILE = "plugins.xml";
|
||||
/**
|
||||
* TODO: reuse.
|
||||
*/
|
||||
protected static final String METADATA_FILE = "maven-metadata.xml";
|
||||
|
||||
private final String groupId;
|
||||
|
||||
public PluginMappingMetadata( String groupId )
|
||||
public GroupRepositoryMetadata( String groupId )
|
||||
{
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public String getRepositoryPath()
|
||||
{
|
||||
return groupId + "/" + PLUGIN_MAPPING_FILE;
|
||||
return groupId + "/" + METADATA_FILE;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
return PLUGIN_MAPPING_FILE + " (plugin mappings) for group: \'" + groupId + "\'";
|
||||
return "repository metadata for group: \'" + groupId + "\'";
|
||||
}
|
||||
|
||||
}
|
|
@ -17,9 +17,9 @@ package org.apache.maven.plugin;
|
|||
*/
|
||||
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
import org.apache.maven.artifact.repository.metadata.GroupRepositoryMetadata;
|
||||
import org.apache.maven.artifact.repository.metadata.Metadata;
|
||||
import org.apache.maven.artifact.repository.metadata.Plugin;
|
||||
import org.apache.maven.artifact.repository.metadata.PluginMappingMetadata;
|
||||
import org.apache.maven.artifact.repository.metadata.RepositoryMetadataManagementException;
|
||||
import org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager;
|
||||
import org.apache.maven.artifact.repository.metadata.io.xpp3.MetadataXpp3Reader;
|
||||
|
@ -97,7 +97,7 @@ public class DefaultPluginMappingManager
|
|||
private void loadPluginMappings( String groupId, List pluginRepositories, ArtifactRepository localRepository )
|
||||
throws RepositoryMetadataManagementException
|
||||
{
|
||||
PluginMappingMetadata metadata = new PluginMappingMetadata( groupId );
|
||||
GroupRepositoryMetadata metadata = new GroupRepositoryMetadata( groupId );
|
||||
|
||||
// TOOD: aggregate the results of this instead
|
||||
repositoryMetadataManager.resolve( metadata, pluginRepositories, localRepository );
|
||||
|
|
|
@ -17,7 +17,7 @@ package org.apache.maven.plugin.plugin.metadata;
|
|||
*/
|
||||
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
import org.apache.maven.artifact.repository.metadata.PluginMappingMetadata;
|
||||
import org.apache.maven.artifact.repository.metadata.GroupRepositoryMetadata;
|
||||
import org.apache.maven.artifact.repository.metadata.RepositoryMetadata;
|
||||
import org.apache.maven.artifact.repository.metadata.RepositoryMetadataManagementException;
|
||||
import org.apache.maven.plugin.MojoExecutionException;
|
||||
|
@ -36,7 +36,7 @@ public class PluginMappingDeployMojo
|
|||
public void execute()
|
||||
throws MojoExecutionException
|
||||
{
|
||||
RepositoryMetadata metadata = new PluginMappingMetadata( getProject().getGroupId() );
|
||||
RepositoryMetadata metadata = new GroupRepositoryMetadata( getProject().getGroupId() );
|
||||
|
||||
ArtifactRepository distributionRepository = getProject().getDistributionManagementArtifactRepository();
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ package org.apache.maven.plugin.plugin.metadata;
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import org.apache.maven.artifact.repository.metadata.PluginMappingMetadata;
|
||||
import org.apache.maven.artifact.repository.metadata.GroupRepositoryMetadata;
|
||||
import org.apache.maven.artifact.repository.metadata.RepositoryMetadata;
|
||||
import org.apache.maven.artifact.repository.metadata.RepositoryMetadataManagementException;
|
||||
import org.apache.maven.plugin.MojoExecutionException;
|
||||
|
@ -34,7 +34,7 @@ public class PluginMappingInstallMojo
|
|||
public void execute()
|
||||
throws MojoExecutionException
|
||||
{
|
||||
RepositoryMetadata metadata = new PluginMappingMetadata( getProject().getGroupId() );
|
||||
RepositoryMetadata metadata = new GroupRepositoryMetadata( getProject().getGroupId() );
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue