eu.lindenbaum.maven.mojo.app
Class Packager
java.lang.Object
org.apache.maven.plugin.AbstractMojo
eu.lindenbaum.maven.ErlangMojo
eu.lindenbaum.maven.mojo.app.Packager
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public final class Packager
- extends ErlangMojo
This Mojo
packages all application artifacts into a single
.tar.gz
package. This includes .beam
files, the .hrl
include files and private data from the priv
directory.
Besides that this Mojo
also copies the erlang application resource
file. In order to manage the project over the project pom there is the
possibility to let the Mojo
automatically fill in values from the
project pom into the .app
and .appup
files. This can be done
by using one of the supported variables into the application resource files.
Below is a list of supported variables and their substitutions:
${ARTIFACT}
: the projects artifact id (atom)
${DESCRIPTION}
: the projects description (string)
${ID}
: the project id (string)
${NAME}
: the projects name (string)
${VERSION}
: the projects version (string)
${MODULES}
: all compiled .beam
files found in the
target ebin folder (list)
${REGISTERED}
: all registered names, based on the
-registered(Names).
attribute retrieved from the compiled
.beam
files (list)
${APPLICATIONS}
: all dependency applications of the project
as configured in the project's pom.xml
(string)
The resulting application resource file as well as the application upgrade
file will be checked for plausability.
- Author:
- Olivier Sambourg, Tobias Schlager , Gregory Haskins
- Goal:
- package
- Phase:
- package
- Requires dependency resolution: true
- test
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Packager
public Packager()
execute
protected void execute(org.apache.maven.plugin.logging.Log log,
Properties p)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Description copied from class:
ErlangMojo
- Will be invoked when
ErlangMojo.execute()
gets invoked on the base class.
- Specified by:
execute
in class ErlangMojo
- Parameters:
log
- logger to be used for output loggingp
- to be passed by the base class.
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
- See Also:
Mojo.execute()
Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.