org.apache.karaf.tooling.features
Class GenerateFeaturesFileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.karaf.tooling.features.MojoSupport
          extended by org.apache.karaf.tooling.features.GenerateFeaturesFileMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class GenerateFeaturesFileMojo
extends MojoSupport

Generates the features XML file


Field Summary
protected static String SEPARATOR
           
 
Fields inherited from class org.apache.karaf.tooling.features.MojoSupport
artifactMetadataSource, collector, factory, localRepo, project, projectBuilder, projectHelper, remoteRepos, resolver, workDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GenerateFeaturesFileMojo()
           
 
Method Summary
 void execute()
           
protected  String getBestVersionForArtifact(org.apache.maven.artifact.Artifact artifact, List<org.apache.maven.artifact.versioning.ArtifactVersion> versions)
           
protected  boolean isValidDependency(org.apache.maven.model.Dependency dependency)
           
protected  void populateProperties(PrintStream out)
           
protected  void writeBundle(PrintStream out, String groupId, String artifactId, String version)
           
 
Methods inherited from class org.apache.karaf.tooling.features.MojoSupport
createManagedVersionMap, excludeBranch, getArtifacts, getClassLoader, getLocalRepoUrl, getProject, getProjectHelper, getWorkDirectory, print, removeBranch, removeChildren, resolveProject, resourceToArtifact, retainArtifacts, translateFromMaven
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR

protected static final String SEPARATOR
See Also:
Constant Field Values
Constructor Detail

GenerateFeaturesFileMojo

public GenerateFeaturesFileMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

populateProperties

protected void populateProperties(PrintStream out)
                           throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
                                  org.apache.maven.artifact.resolver.ArtifactNotFoundException,
                                  IOException
Throws:
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
IOException

getBestVersionForArtifact

protected String getBestVersionForArtifact(org.apache.maven.artifact.Artifact artifact,
                                           List<org.apache.maven.artifact.versioning.ArtifactVersion> versions)
                                    throws org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
Throws:
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException

isValidDependency

protected boolean isValidDependency(org.apache.maven.model.Dependency dependency)

writeBundle

protected void writeBundle(PrintStream out,
                           String groupId,
                           String artifactId,
                           String version)


Copyright © 2007-2013 FuseSource, Corp.. All Rights Reserved.