KIE EAP - Maven plugin 6.1.0.Final

org.kie.integration.eap.maven.util
Class EAPArtifactsHolder

java.lang.Object
  extended by org.kie.integration.eap.maven.util.EAPArtifactsHolder

public class EAPArtifactsHolder
extends Object

This class holds all the module artifacts that the Maven plugin handles when generating a distribution. Provides: - All base / static module artifacts and the module model instance that contains each one. - Artifact resolution based on current maven project repositories. - Artifact duplication validation (an artifact only can be present in a single module)


Field Summary
protected  List<org.sonatype.aether.repository.RemoteRepository> remoteRepos
          The project's remote repositories to use for the resolution of plugins and their dependencies.
protected  org.sonatype.aether.RepositorySystemSession repoSession
          The current repository/network configuration of Maven.
protected  org.sonatype.aether.RepositorySystem repoSystem
          The entry point to Aether, i.e. the component doing all the work.
 
Constructor Summary
EAPArtifactsHolder(org.sonatype.aether.RepositorySystem repoSystem, org.sonatype.aether.RepositorySystemSession repoSession, List<org.sonatype.aether.repository.RemoteRepository> remoteRepos)
           
 
Method Summary
 void add(org.sonatype.aether.artifact.Artifact obj)
           
 void add(org.sonatype.aether.artifact.Artifact obj, EAPModule module)
           
protected  void applyArtifactMapping(String artifactCoordinates, EAPModule module)
           
 boolean contains(org.sonatype.aether.artifact.Artifact artifact)
           
 org.sonatype.aether.artifact.Artifact contains(String groupId, String artifactId, String type)
           
protected  Object[] get(String artifactCoordinates)
           
 org.sonatype.aether.artifact.Artifact getArtifact(org.sonatype.aether.artifact.Artifact artifact)
           
 org.sonatype.aether.artifact.Artifact getArtifact(String artifactCoordinates)
           
 Collection<org.sonatype.aether.artifact.Artifact> getArtifacts()
           
 Map<String,String> getMappedCoordinates()
           
 EAPModule getModule(org.sonatype.aether.artifact.Artifact artifact)
           
 EAPModule getModule(String artifactCoordinates)
           
 org.sonatype.aether.artifact.Artifact resolveArtifact(org.sonatype.aether.artifact.Artifact artifact)
           
 org.sonatype.aether.artifact.Artifact resolveArtifact(String groupId, String artifactId, String version, String packaging)
           
 void setModule(org.sonatype.aether.artifact.Artifact artifact, EAPModule module)
           
 void setModule(String artifactCoordinates, EAPModule module)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repoSystem

protected org.sonatype.aether.RepositorySystem repoSystem
The entry point to Aether, i.e. the component doing all the work.


repoSession

protected org.sonatype.aether.RepositorySystemSession repoSession
The current repository/network configuration of Maven.


remoteRepos

protected List<org.sonatype.aether.repository.RemoteRepository> remoteRepos
The project's remote repositories to use for the resolution of plugins and their dependencies.

Constructor Detail

EAPArtifactsHolder

public EAPArtifactsHolder(org.sonatype.aether.RepositorySystem repoSystem,
                          org.sonatype.aether.RepositorySystemSession repoSession,
                          List<org.sonatype.aether.repository.RemoteRepository> remoteRepos)
Method Detail

add

public void add(org.sonatype.aether.artifact.Artifact obj)

add

public void add(org.sonatype.aether.artifact.Artifact obj,
                EAPModule module)
         throws EAPModuleResourceDuplicationException
Throws:
EAPModuleResourceDuplicationException

setModule

public void setModule(String artifactCoordinates,
                      EAPModule module)
               throws EAPModuleResourceDuplicationException
Throws:
EAPModuleResourceDuplicationException

applyArtifactMapping

protected void applyArtifactMapping(String artifactCoordinates,
                                    EAPModule module)

setModule

public void setModule(org.sonatype.aether.artifact.Artifact artifact,
                      EAPModule module)
               throws EAPModuleResourceDuplicationException
Throws:
EAPModuleResourceDuplicationException

getArtifact

public org.sonatype.aether.artifact.Artifact getArtifact(String artifactCoordinates)

getModule

public EAPModule getModule(String artifactCoordinates)

getArtifact

public org.sonatype.aether.artifact.Artifact getArtifact(org.sonatype.aether.artifact.Artifact artifact)

getModule

public EAPModule getModule(org.sonatype.aether.artifact.Artifact artifact)

contains

public boolean contains(org.sonatype.aether.artifact.Artifact artifact)

get

protected Object[] get(String artifactCoordinates)

getMappedCoordinates

public Map<String,String> getMappedCoordinates()

resolveArtifact

public org.sonatype.aether.artifact.Artifact resolveArtifact(org.sonatype.aether.artifact.Artifact artifact)
                                                      throws org.sonatype.aether.resolution.ArtifactResolutionException
Throws:
org.sonatype.aether.resolution.ArtifactResolutionException

resolveArtifact

public org.sonatype.aether.artifact.Artifact resolveArtifact(String groupId,
                                                             String artifactId,
                                                             String version,
                                                             String packaging)
                                                      throws org.sonatype.aether.resolution.ArtifactResolutionException
Throws:
org.sonatype.aether.resolution.ArtifactResolutionException

getArtifacts

public Collection<org.sonatype.aether.artifact.Artifact> getArtifacts()

contains

public org.sonatype.aether.artifact.Artifact contains(String groupId,
                                                      String artifactId,
                                                      String type)

KIE EAP - Maven plugin 6.1.0.Final

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.