Class BuildPluginClasspathMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.dependency.AbstractDependencyMojo
org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo
org.apache.maven.plugins.dependency.fromDependencies.BuildClasspathMojo
de.iip_ecosphere.platform.tools.maven.dependencies.BuildClasspathMojo
de.iip_ecosphere.platform.tools.maven.dependencies.BuildPluginClasspathMojo
All Implemented Interfaces:
Comparator<org.apache.maven.artifact.Artifact>, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="build-plugin-classpath", requiresDependencyResolution=TEST, defaultPhase=PACKAGE, threadSafe=true) public class BuildPluginClasspathMojo extends BuildClasspathMojo
Specialized mojo for building plugin classpath files.
Author:
Holger Eichelberger, SSE
  • Field Details

    • KEY_PREFIX

      public static final String KEY_PREFIX
      See Also:
    • KEY_UNPACK_MODE

      public static final String KEY_UNPACK_MODE
      See Also:
    • KEY_SETUP_DESCRIPTOR

      public static final String KEY_SETUP_DESCRIPTOR
      See Also:
    • KEY_PLUGIN_IDS

      public static final String KEY_PLUGIN_IDS
      See Also:
    • KEY_SEQUENCE_NR

      public static final String KEY_SEQUENCE_NR
      See Also:
    • prefix

      private final String prefix
      See Also:
    • addTestArtifact

      @Parameter(property="mdep.addTestArtifact", defaultValue="false") private boolean addTestArtifact
    • unpackMode

      @Parameter(property="mdep.unpackMode", defaultValue="jars") private String unpackMode
    • setupDescriptor

      @Parameter(property="mdep.setupDescriptor", defaultValue="FolderClasspath") private String setupDescriptor
    • pluginIds

      @Parameter(property="mdep.pluginIds", defaultValue="") private List<String> pluginIds
    • asTest

      @Parameter(required=false) private boolean asTest
    • targetDirectory

      @Parameter(defaultValue="${project.build.directory}", readonly=true) private File targetDirectory
  • Constructor Details

    • BuildPluginClasspathMojo

      public BuildPluginClasspathMojo()
  • Method Details

    • getRelTargetDirectory

      private String getRelTargetDirectory()
      Returns the relative target directory.
      Returns:
      the relative target directory
    • composeMyArtifact

      private String composeMyArtifact(String classifier, String extension)
      Composes the path for one of the own artifacts.
      Parameters:
      classifier - optional classifier, may be empty or null
      extension - optional file extension, defaults to "jar" if empty or null
      Returns:
      the path to the composed artifact
    • doExecute

      protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException
      Overrides:
      doExecute in class BuildClasspathMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • adjustTo

      public void adjustTo(Function<String,String> func)
      Description copied from class: BuildClasspathMojo
      Adjusts the setup.
      Overrides:
      adjustTo in class BuildClasspathMojo
      Parameters:
      func - the adjustment function
    • composeBefores

      private void composeBefores(Function<String,String> func)
      Composes and sets the befores.
      Parameters:
      func - a path adjustment function, may be null