Package org.vafer.jdeb.maven
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
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Main entry pointprotected VariableResolverinitializeVariableResolver(Map<String,String> variables)readPropertiesFromActiveProfiles(String prefix, String... properties)Read properties from the active profiles.voidsetCloseReplaceToken(String closeReplaceToken)protected voidvoidsetOpenReplaceToken(String openReplaceToken)Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
DebMojo
public DebMojo()
-
-
Method Details
-
setOpenReplaceToken
-
setCloseReplaceToken
-
setData
-
initializeVariableResolver
-
execute
Main entry point- Throws:
org.apache.maven.plugin.MojoExecutionException- on error
-
readPropertiesFromActiveProfiles
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 usedproperties- The properties to read- Returns:
- A map containing the values for the properties that were found
-