eu.lindenbaum.maven
Class DefaultMavenComponents

java.lang.Object
  extended by eu.lindenbaum.maven.DefaultMavenComponents
All Implemented Interfaces:
MavenComponents

public class DefaultMavenComponents
extends Object
implements MavenComponents

Implementation of the MavenComponents bean that provides maven components to be used by the plugin.

Author:
Tobias Schlager

Constructor Summary
DefaultMavenComponents(org.apache.maven.artifact.repository.ArtifactRepository localRepository, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver)
           
 
Method Summary
 org.apache.maven.artifact.factory.ArtifactFactory artifactFactory()
          Returns a factory that can be used create Artifact objects.
 org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver()
          Returns an ArtifactResolver that can resolve/download artifacts from remote repositories into the local repository.
 org.apache.maven.artifact.repository.ArtifactRepository localRepository()
          Returns the local ArtifactRepository storing dependencies of this MavenProject.
 org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource()
          Returns the ArtifactMetadataSource used to query metadata information for Artifacts.
 List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories()
          Returns a list of remote ArtifactRepository storing dependencies of this MavenProject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMavenComponents

public DefaultMavenComponents(org.apache.maven.artifact.repository.ArtifactRepository localRepository,
                              List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
                              org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource,
                              org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
                              org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver)
Method Detail

localRepository

public org.apache.maven.artifact.repository.ArtifactRepository localRepository()
Description copied from interface: MavenComponents
Returns the local ArtifactRepository storing dependencies of this MavenProject.

Specified by:
localRepository in interface MavenComponents

remoteRepositories

public List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories()
Description copied from interface: MavenComponents
Returns a list of remote ArtifactRepository storing dependencies of this MavenProject.

Specified by:
remoteRepositories in interface MavenComponents

metadataSource

public org.apache.maven.artifact.metadata.ArtifactMetadataSource metadataSource()
Description copied from interface: MavenComponents
Returns the ArtifactMetadataSource used to query metadata information for Artifacts.

Specified by:
metadataSource in interface MavenComponents

artifactFactory

public org.apache.maven.artifact.factory.ArtifactFactory artifactFactory()
Description copied from interface: MavenComponents
Returns a factory that can be used create Artifact objects.

Specified by:
artifactFactory in interface MavenComponents

artifactResolver

public org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver()
Description copied from interface: MavenComponents
Returns an ArtifactResolver that can resolve/download artifacts from remote repositories into the local repository.

Specified by:
artifactResolver in interface MavenComponents


Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.