@Mojo(name="release",
defaultPhase=DEPLOY)
public class UploadMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
| Constructor and Description |
|---|
UploadMojo() |
| Modifier and Type | Method and Description |
|---|---|
static String |
computeRepositoryId(String id) |
void |
contextualize(org.codehaus.plexus.context.Context context) |
org.kohsuke.github.GitHub |
createGithub(String serverId) |
void |
execute() |
protected org.apache.maven.settings.Server |
getServer(org.apache.maven.settings.Settings settings,
String serverId)
Get server with given id
|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionpublic org.kohsuke.github.GitHub createGithub(String serverId) throws org.apache.maven.plugin.MojoExecutionException, IOException
org.apache.maven.plugin.MojoExecutionExceptionIOExceptionprotected org.apache.maven.settings.Server getServer(org.apache.maven.settings.Settings settings,
String serverId)
settings - serverId - must be non-null and non-emptypublic void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizableorg.codehaus.plexus.context.ContextExceptionCopyright © 2023. All rights reserved.