Class 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 MojoSupport
    Assemble a kar archive from a features.xml file
    • 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.
    • Constructor Detail

      • KarMojo

        public KarMojo()
    • 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
      • isMavenUrl

        protected static boolean isMavenUrl​(String name)
      • getArchiveFile

        protected static File getArchiveFile​(File basedir,
                                             String finalName,
                                             String classifier)