Package org.apache.karaf.tooling
Class KarMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.karaf.tooling.utils.MojoSupport
-
- org.apache.karaf.tooling.KarMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="kar", defaultPhase=PACKAGE, requiresDependencyResolution=RUNTIME, threadSafe=true) public class KarMojo extends MojoSupportAssemble a kar archive from a features.xml file
-
-
Field Summary
Fields Modifier and Type Field Description protected StringclassifierClassifier to add to the artifact generated.-
Fields inherited from class org.apache.karaf.tooling.utils.MojoSupport
artifactMetadataSource, artifactResolver, container, factory, localRepo, mavenSession, project, projectBuilder, projectHelper, remoteRepos, workDirectory
-
-
Constructor Summary
Constructors Constructor Description KarMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected static FilegetArchiveFile(File basedir, String finalName, String classifier)protected static booleanisMavenUrl(String name)-
Methods inherited from class org.apache.karaf.tooling.utils.MojoSupport
copy, createManagedVersionMap, getLocalRepoUrl, getProject, getProjectHelper, getWorkDirectory, resourceToArtifact, setMavenSession, translateFromMaven
-
-
-
-
Field Detail
-
classifier
@Parameter protected String classifier
Classifier to add to the artifact generated. If given, the artifact will be attached. If it's not given, it will merely be written to the output directory according to the finalName.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
isMavenUrl
protected static boolean isMavenUrl(String name)
-
-