eu.lindenbaum.maven.mojo
Class ProjectUploader
java.lang.Object
org.apache.maven.plugin.AbstractMojo
eu.lindenbaum.maven.ErlangMojo
eu.lindenbaum.maven.mojo.ProjectUploader
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public final class ProjectUploader
- extends ErlangMojo
This Mojo
uploads a project onto a remote node. In case of
application projects this includes remote loading of the compiled application
modules, loading of the application resource file using
application:load/1
and uploading the project's private resources
making them available using code:priv_dir/1
. To achieve this the
temporary upload directory is added to the remote node's code path. The
modules will be purged once as if c:c/1
would have been called
on a shell. In case of a release project the release package (
.tar.gz
) will be uploaded in the remote nodes releases
directory ready to be unpacked and installed using the
release_handler
.
Note: Uploading of releases will require that the remote erlang process has
write access to its releases
directory.
- Since:
- 2.0.0
- Author:
- Tobias Schlager
- Goal:
- upload
- Execute:
- phase="package" lifecycle="upload"
- Requires dependency resolution: true
- runtime
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 |
ProjectUploader
public ProjectUploader()
execute
protected void execute(org.apache.maven.plugin.logging.Log log,
Properties p)
throws org.apache.maven.plugin.MojoExecutionException
- 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
- See Also:
Mojo.execute()
Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.