public class ExecutionListCreator extends Object
Constructor and Description |
---|
ExecutionListCreator(org.apache.maven.plugin.logging.Log log,
org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource,
org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List remoteRepositories,
org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
String throwExceptionOnConflictStr,
StartSpec[] startSpecs) |
Modifier and Type | Method and Description |
---|---|
List |
createArtifactExecutionList(org.apache.maven.project.MavenProject mavenProject,
Set<String> separatedArtifactDepsOfRootMvnUrls,
boolean includeTestRuntimes,
boolean useMwComposite)
Creates execution list for given MavenProject.
|
List |
createArtifactExecutionList(String[] provisions,
boolean defaultTransitive,
boolean includeTestRuntimes)
Creates execution list on basis of provisions list and parameter
specifying default transitiveness.
|
org.apache.maven.artifact.Artifact |
parseMvnUrlWithType(String mvnurl)
Parses mvn url which has to be in the following format:
mvn:/groupId/artifactId/version/type.
|
public ExecutionListCreator(org.apache.maven.plugin.logging.Log log, org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List remoteRepositories, org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver, String throwExceptionOnConflictStr, StartSpec[] startSpecs)
public org.apache.maven.artifact.Artifact parseMvnUrlWithType(String mvnurl)
mvnurl
- public List createArtifactExecutionList(org.apache.maven.project.MavenProject mavenProject, Set<String> separatedArtifactDepsOfRootMvnUrls, boolean includeTestRuntimes, boolean useMwComposite) throws Exception
mavenProject
- org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Exception
public List createArtifactExecutionList(String[] provisions, boolean defaultTransitive, boolean includeTestRuntimes) throws Exception
provisions
- list of provision strings. Each provision string has to have
the following format:
(nontransitive|transitive)?mvn:/groupId/artifactId/version.
Information at the beginning: "transitive", "nontransitive" is
optional. If it is present it overrides the defaultTransitive
parameter but only for given provision string.defaultTransitive
- default value of transitive parameter for all provision
strings. If transitive is true then artifact related to each
provision string is recursively resolved and all its regular
and uAAL-Runtime maven dependencies are included in returned
artifact list. If transitive is false then only artifacts
(related to provision strings) themselves are resolved without
looking at their dependencies. Thanks to that, providing
explicit list of artifact to be launched is possible.org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Exception
Copyright © 2018 universAAL Consortium. All rights reserved.