@Mojo(name="generate-features-xml",
requiresDependencyResolution=RUNTIME,
threadSafe=true,
defaultPhase=GENERATE_RESOURCES)
public class GenerateFeaturesXmlMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.repository.RepositorySystem |
repositorySystem |
| Constructor and Description |
|---|
GenerateFeaturesXmlMojo()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected String |
formatArtifactAsBundle(org.apache.maven.artifact.Artifact artifact)
Format the given artifact as a bundle string with the appropriate syntax
used by the karaf features.xml file.
|
protected boolean |
isBundle(org.apache.maven.artifact.Artifact artifact)
Detect if this artifact is already an osgi bundle.
|
protected org.apache.maven.project.MavenProject |
resolveProject(org.apache.maven.artifact.Artifact artifact)
Resolves the given artifact to a maven project.
|
@Component protected org.apache.maven.repository.RepositorySystem repositorySystem
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionMojo.execute()protected String formatArtifactAsBundle(org.apache.maven.artifact.Artifact artifact) throws Exception
artifact - Exceptionprotected boolean isBundle(org.apache.maven.artifact.Artifact artifact)
throws Exception
artifact - ExceptionCopyright © 2013–2015 JBoss, a division of Red Hat. All rights reserved.