protoj.lang.internal
Class PublishCommand

java.lang.Object
  extended by protoj.lang.internal.PublishCommand

public final class PublishCommand
extends java.lang.Object

Publishes project artifacts to a maven repository by performing a maven deploy. The repository url and additional configuration must be performed in-code. The following options are supported:

  1. -artifact: the name of the artifact to be published. The artifacts directory is checked for classes, source and javadoc containing artifacts that match the name. If this option isn't specified then all discovered artifacts are published.
  2. -user: used if the publish command has been configured for a remote protocol such as scp.
  3. -key: the path to the private key for scp key-based authentication. If not specified then the default key location is used if it exists.
  4. -password: the password for scp transport if specified.
  5. -passphrase: the passphrase for scp key-based authentication. Can be left out if there is no passphrase for the given key.
Example: publish Example: "publish -user bob" Example: "publish -user bob -key ~/.ssh/myprivatekey"

Author:
Ashley Williams

Nested Class Summary
 class PublishCommand.Body
           
 
Constructor Summary
PublishCommand(StandardProject project)
           
 
Method Summary
 joptsimple.OptionSpec<java.lang.String> getArtifactOption()
           
 Command getDelegate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishCommand

public PublishCommand(StandardProject project)
Method Detail

getArtifactOption

public joptsimple.OptionSpec<java.lang.String> getArtifactOption()

getDelegate

public Command getDelegate()