|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.dotnet.artifact.impl.ArtifactInstallerImpl
public class ArtifactInstallerImpl
Provides an implementation of the ArtifactInstaller
interface.
Field Summary |
---|
Fields inherited from interface org.apache.maven.dotnet.artifact.ArtifactInstaller |
---|
ROLE |
Constructor Summary | |
---|---|
ArtifactInstallerImpl()
Constructor. |
Method Summary | |
---|---|
void |
enableLogging(org.codehaus.plexus.logging.Logger logger)
|
void |
init(ArtifactContext artifactContext,
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteArtifactRepositories,
java.io.File localRepository)
Initializes the installer. |
protected void |
initTest(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
org.codehaus.plexus.logging.Logger logger)
|
void |
installArtifactAndDependenciesIntoPrivateApplicationBase(java.io.File localRepository,
org.apache.maven.artifact.Artifact artifact,
java.util.List<org.apache.maven.model.Dependency> dependencies)
Installs both the artifact and all of its dependencies into the private application base. |
void |
installArtifactWithPom(org.apache.maven.artifact.Artifact artifact,
java.io.File pomFile,
boolean modifyProjectMetadata)
Installs artifacts into the local Maven repository. |
void |
installFileWithoutPom(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String packaging,
java.io.File artifactFile)
Installs a non-maven artifact into the local maven repository so that the artifact can be used within a Maven build process. |
void |
resolveAndInstallNetDependenciesForProfile(java.lang.String profile,
java.util.List<org.apache.maven.model.Dependency> netDependencies,
java.util.List<org.apache.maven.model.Dependency> javaDependencies)
Resolves and installs the .NET artifacts (as given in the net-dependencies.xml file) and the specified .NET and java dependencies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArtifactInstallerImpl()
Method Detail |
---|
protected void initTest(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, org.codehaus.plexus.logging.Logger logger)
public void enableLogging(org.codehaus.plexus.logging.Logger logger)
enableLogging
in interface org.codehaus.plexus.logging.LogEnabled
LogEnabled.enableLogging(org.codehaus.plexus.logging.Logger)
public void resolveAndInstallNetDependenciesForProfile(java.lang.String profile, java.util.List<org.apache.maven.model.Dependency> netDependencies, java.util.List<org.apache.maven.model.Dependency> javaDependencies) throws java.io.IOException
ArtifactInstaller
resolveAndInstallNetDependenciesForProfile
in interface ArtifactInstaller
profile
- the specified profile to resolve. This value may be null.netDependencies
- additional .NET artifacts to resolve and install.javaDependencies
- the Java Dependencies to resolve. Typically these should be the java bindings for the
.NET plugins.
java.io.IOException
- if there is a problem with installationorg.apache.maven.dotnet.artifact.ArtifactInstaller#resolveAndInstallNetDependenciesForProfile(String, java.util.List, java.util.List)
public void installArtifactAndDependenciesIntoPrivateApplicationBase(java.io.File localRepository, org.apache.maven.artifact.Artifact artifact, java.util.List<org.apache.maven.model.Dependency> dependencies) throws java.io.IOException
ArtifactInstaller
installArtifactAndDependenciesIntoPrivateApplicationBase
in interface ArtifactInstaller
localRepository
- the root directory of the private application baseartifact
- the artifact to installdependencies
- the dependencies to install
java.io.IOException
- if there is a problem installing any of the artifacts into the private application baseorg.apache.maven.dotnet.artifact.ArtifactInstaller#installArtifactAndDependenciesIntoPrivateApplicationBase(java.io.File, org.apache.maven.artifact.Artifact, java.util.List)
public void installArtifactWithPom(org.apache.maven.artifact.Artifact artifact, java.io.File pomFile, boolean modifyProjectMetadata) throws org.apache.maven.artifact.installer.ArtifactInstallationException
ArtifactInstaller
installFile
method, this method
will also check whether an exe.config file is associated with the artifact and install the exe.config into
the local maven repository. This will allow installed artifacts, with their associated configuration information,
to be directly executed from the local maven repository.
Typically the artifact parameter will be obtained directly through the maven project:
MavenProject.getArtifact
. In those cases where the MavenProject object is unavailable, then
you can use the installFile
method from this interface.
installArtifactWithPom
in interface ArtifactInstaller
artifact
- the artifact to installpomFile
- the pom file of the installed artifact
org.apache.maven.artifact.installer.ArtifactInstallationException
- if there is a problem installing the artifactArtifactInstaller.installArtifactWithPom(org.apache.maven.artifact.Artifact,java.io.File,boolean)
public void installFileWithoutPom(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String packaging, java.io.File artifactFile) throws org.apache.maven.artifact.installer.ArtifactInstallationException
ArtifactInstaller
installFileWithoutPom
in interface ArtifactInstaller
groupId
- the group id of the artifact to installartifactId
- the artifact id of the artifact to installversion
- the version of the artifact to installpackaging
- the packaging type of the artifact to installartifactFile
- the artifact to install
org.apache.maven.artifact.installer.ArtifactInstallationException
- if there is a problem installing the artifactArtifactInstaller.installFileWithoutPom(String, String, String, String, java.io.File)
public void init(ArtifactContext artifactContext, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteArtifactRepositories, java.io.File localRepository)
ArtifactInstaller
init
in interface ArtifactInstaller
artifactContext
- the artifact context associated with this installerremoteArtifactRepositories
- the list of remote artifact repositorieslocalRepository
- the location of the local maven repositoryorg.apache.maven.dotnet.artifact.ArtifactInstaller#init(org.apache.maven.dotnet.artifact.ArtifactContext, java.util.List, java.io.File)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |