Package com.isomorphic.maven.mojo
Class DownloadMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.isomorphic.maven.mojo.AbstractBaseMojo
com.isomorphic.maven.mojo.AbstractPackagerMojo
com.isomorphic.maven.mojo.DownloadMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="download",
requiresProject=false,
requiresDirectInvocation=true)
public final class DownloadMojo
extends AbstractPackagerMojo
Downloads and unpacks a given distribution, but does not actually do anything with the resulting Maven artifacts.
-
Field Summary
Fields inherited from class com.isomorphic.maven.mojo.AbstractPackagerMojo
buildDate, buildNumber, copyToLatestFolder, includeAnalytics, includeMessaging, license, overwrite, product, serverId, skipDownload, skipExtraction, snapshots, workdirFields inherited from class com.isomorphic.maven.mojo.AbstractBaseMojo
artifactResolver, modelBuilder, project, remoteRepositoryManager, repositorySystem, repositorySystemSession, settings -
Constructor Summary
Constructors Constructor Description DownloadMojo() -
Method Summary
Modifier and Type Method Description voiddoExecute(Set<Module> artifacts)The point where a subclass is able to manipulate the collection of artifacts prepared for it by this object'sAbstractPackagerMojo.execute()method.Methods inherited from class com.isomorphic.maven.mojo.AbstractBaseMojo
getAuthentication, getCredentials
-
Constructor Details
-
DownloadMojo
public DownloadMojo()
-
-
Method Details
-
doExecute
public void doExecute(Set<Module> artifacts) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractPackagerMojoThe point where a subclass is able to manipulate the collection of artifacts prepared for it by this object'sAbstractPackagerMojo.execute()method.- Specified by:
doExecutein classAbstractPackagerMojo- Parameters:
artifacts- A collection of Maven artifacts resulting from the download and preparation of a supported Isomorphic SDK.- Throws:
org.apache.maven.plugin.MojoExecutionException- When any fatal error occurs. e.g., there is no distribution to work with.org.apache.maven.plugin.MojoFailureException- When any non-fatal error occurs. e.g., documentation cannot be copied to some other folder.
-