public final class MavenDependencyInjector extends Object
Modifier and Type | Method and Description |
---|---|
static List<org.apache.maven.artifact.Artifact> |
filterInjectedDependencies(Collection<? extends org.apache.maven.artifact.Artifact> artifacts)
Filters out the system scope artifacts added through this class.
|
static void |
injectMavenDependencies(org.apache.maven.project.MavenProject project,
TargetPlatform target,
BundleReader bundleReader,
org.codehaus.plexus.logging.Logger logger)
Injects the dependencies of a project (as determined by the p2 target platform resolver) back
into the Maven model.
|
public static void injectMavenDependencies(org.apache.maven.project.MavenProject project, TargetPlatform target, BundleReader bundleReader, org.codehaus.plexus.logging.Logger logger)
project
- A projecttarget
- The p2-resolved target platform of the project.public static List<org.apache.maven.artifact.Artifact> filterInjectedDependencies(Collection<? extends org.apache.maven.artifact.Artifact> artifacts)
artifacts
- the list of the resolved artifacts of a project which may have dependencies
injected by this classCopyright © 2008-2012 Eclipse Foundation. All Rights Reserved.