@Mojo(name="artifact",
defaultPhase=PROCESS_RESOURCES,
requiresProject=false)
public class ArtifactMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.ProjectBuilder |
projectBuilder
The (injected)
ProjectBuilder instance. |
protected org.eclipse.aether.RepositorySystem |
repositorySystem
The (injected)
RepositorySystem instance. |
protected org.apache.maven.execution.MavenSession |
session
The Maven Session.
|
| Constructor and Description |
|---|
ArtifactMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Will download the specified artifact in the specified directory.
|
@Parameter(defaultValue="${session}",
required=true,
readonly=true)
protected org.apache.maven.execution.MavenSession session
@Inject protected org.eclipse.aether.RepositorySystem repositorySystem
RepositorySystem instance.@Inject protected org.apache.maven.project.ProjectBuilder projectBuilder
ProjectBuilder instance.public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - thrown if there is a problem while processing the requestMojo.execute()Copyright © 2009-2023 Open-Source. All Rights Reserved.