com.isomorphic.maven.mojo.DeployMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isc-maven-plugin Show documentation
Show all versions of isc-maven-plugin Show documentation
An officially supported collection of goals useful for using SmartClient / SmartGWT products in a Maven environment.
package com.isomorphic.maven.mojo;
import java.util.Set;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.eclipse.aether.artifact.Artifact;
import org.eclipse.aether.deployment.DeployRequest;
import org.eclipse.aether.deployment.DeploymentException;
import org.eclipse.aether.repository.Authentication;
import org.eclipse.aether.repository.RemoteRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.isomorphic.maven.packaging.Module;
/**
* Deploys a collection of {@link Module}s to the Maven repository location indicated by the given {@link #repositoryUrl} property.
* Functionally, pretty much just like the Deploy Plugin's deploy-file goal, except this one works on a collection.
*
* Refer to http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
*/
@Mojo(name="deploy", requiresProject=false)
public final class DeployMojo extends AbstractPackagerMojo {
private static final Logger LOGGER = LoggerFactory.getLogger(DeployMojo.class);
/**
* The identifier of a server entry from which Maven should read the authentication credentials
* to be used during deployment to {@link #repositoryUrl}.
*
* Refer to http://maven.apache.org/ref/3.1.1/maven-settings/settings.html#class_server
* @since 1.0.0
*/
@Parameter(property="repositoryId")
private String repositoryId;
/**
* The URL of the location to which the artifacts should be deployed. e.g.,
*
* http://nexus.corp.int/nexus/content/repositories/thirdparty/
*
* @since 1.0.0
*/
@Parameter(property="repositoryUrl", required=true)
private String repositoryUrl;
/**
* The repositoryType, as required by the Builder(String, String, String) constructor.
*