Class MavenDependenciesResolverConfigurer
- java.lang.Object
-
- org.eclipse.sisu.equinox.embedder.EquinoxLifecycleListener
-
- org.eclipse.tycho.osgi.configuration.MavenDependenciesResolverConfigurer
-
- All Implemented Interfaces:
MavenDependenciesResolver
@Component(role=EquinoxLifecycleListener.class, hint="MavenDependenciesResolver") public class MavenDependenciesResolverConfigurer extends EquinoxLifecycleListener implements MavenDependenciesResolver
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.plugin.LegacySupport
context
private org.codehaus.plexus.logging.Logger
logger
private org.apache.maven.repository.RepositorySystem
repositorySystem
-
Constructor Summary
Constructors Constructor Description MavenDependenciesResolverConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterFrameworkStarted(EmbeddedEquinox framework)
java.io.File
getRepositoryRoot()
java.util.Collection<?>
resolve(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String packaging, java.lang.String classifier, java.lang.String dependencyScope)
Resolves the given artifact, optionally with the given dependency scope
-
-
-
Method Detail
-
resolve
public java.util.Collection<?> resolve(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String packaging, java.lang.String classifier, java.lang.String dependencyScope)
Description copied from interface:MavenDependenciesResolver
Resolves the given artifact, optionally with the given dependency scope- Specified by:
resolve
in interfaceMavenDependenciesResolver
- Parameters:
groupId
- group id of the artifact, requiredartifactId
- artifact id of the artifact, requiredversion
- version of the artifact, requiredpackaging
- the packaging type, might menull
in witch case "jar" is assumedclassifier
- the classifier ornull
if no classifier is desireddependencyScope
- optional dependency scope, if given it tries to resolve transitive dependencies of the given artifact as well- Returns:
-
afterFrameworkStarted
public void afterFrameworkStarted(EmbeddedEquinox framework)
- Specified by:
afterFrameworkStarted
in classEquinoxLifecycleListener
-
getRepositoryRoot
public java.io.File getRepositoryRoot()
- Specified by:
getRepositoryRoot
in interfaceMavenDependenciesResolver
-
-