Class DebMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.vafer.jdeb.maven.DebMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="jdeb", defaultPhase=PACKAGE, threadSafe=true) public class DebMojo extends org.apache.maven.plugin.AbstractMojo
Creates Debian package
  • Constructor Details

  • Method Details

    • setOpenReplaceToken

      public void setOpenReplaceToken(String openReplaceToken)
    • setCloseReplaceToken

      public void setCloseReplaceToken(String closeReplaceToken)
    • setData

      protected void setData(Data[] dataSet)
    • initializeVariableResolver

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Main entry point
      Throws:
      org.apache.maven.plugin.MojoExecutionException - on error
    • readPropertiesFromActiveProfiles

      public Map<String,​String> readPropertiesFromActiveProfiles(String prefix, String... properties)
      Read properties from the active profiles. Goes through all active profiles (in the order the profiles are defined in settings.xml) and extracts the desired properties (if present). The prefix is used when looking up properties in the profile but not in the returned map.
      Parameters:
      prefix - The prefix to use or null if no prefix should be used
      properties - The properties to read
      Returns:
      A map containing the values for the properties that were found