org.apache.maven.plugins.repository
Class BundlePackMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugins.repository.BundlePackMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class BundlePackMojo
extends org.apache.maven.plugin.AbstractMojo

Packs artifacts already available in a local repository in a bundle for an upload requests. It requires that the artifact has a POM in the local repository. It will check for mandatory elements, asking interactively for missing values. Can be used to generate bundles for third parties artifacts that have been manually added to the local repository.

Since:
2.1

Field Summary
protected  org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
          Artifact factory.
protected  String artifactId
          ArtifactId for the artifact to create an upload bundle for.
protected  org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
          Artifact resolver.
protected  String basedir
          Directory where the upload-bundle will be created.
protected  String groupId
          GroupId for the artifact to create an upload bundle for.
protected  org.codehaus.plexus.components.interactivity.InputHandler inputHandler
           
protected  org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver
          Jar archiver.
protected  org.apache.maven.artifact.repository.ArtifactRepository localRepository
          Local maven repository.
static String POM
           
protected  String scmConnection
          Read-only URL for SCM tool connections, in cases where this isn't provided by the POM.
protected  String scmUrl
          Viewable URL for SCM connections, in cases where this isn't provided by the POM.
protected  org.apache.maven.settings.Settings settings
           
protected  String version
          Version for the artifact to create an upload bundle for.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
BundlePackMojo()
           
 
Method Summary
 void execute()
           
 
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
 

Field Detail

POM

public static final String POM
See Also:
Constant Field Values

jarArchiver

protected org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver
Jar archiver.


artifactResolver

protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
Artifact resolver.


artifactFactory

protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
Artifact factory.


localRepository

protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
Local maven repository.


inputHandler

protected org.codehaus.plexus.components.interactivity.InputHandler inputHandler

basedir

protected String basedir
Directory where the upload-bundle will be created.


groupId

protected String groupId
GroupId for the artifact to create an upload bundle for.


artifactId

protected String artifactId
ArtifactId for the artifact to create an upload bundle for.


version

protected String version
Version for the artifact to create an upload bundle for.


scmUrl

protected String scmUrl
Viewable URL for SCM connections, in cases where this isn't provided by the POM.


scmConnection

protected String scmConnection
Read-only URL for SCM tool connections, in cases where this isn't provided by the POM.
NOTE: This should be a standard maven-scm URL. See the format guidelines for more information.


settings

protected org.apache.maven.settings.Settings settings
Constructor Detail

BundlePackMojo

public BundlePackMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.