public abstract class AbstractPlay2Mojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepo
Location of the local repository.
|
protected String |
playVersion
Used to automatically select one of the "well known" Play! providers if no provider added explicitly as plugin's dependency.
|
protected String |
pluginGroupId
Plugin's groupId used for well known providers resolution
|
protected String |
pluginVersion
Plugin's version used for well known providers resolution
|
protected org.apache.maven.project.MavenProject |
project
Maven Internal: Project to interact with.
|
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepos
Remote repositories used by the resolver
|
protected org.apache.maven.repository.RepositorySystem |
repositorySystem
...
|
protected org.apache.maven.artifact.resolver.ResolutionErrorHandler |
resolutionErrorHandler
...
|
protected org.apache.maven.execution.MavenSession |
session
The current build session instance.
|
Constructor and Description |
---|
AbstractPlay2Mojo() |
Modifier and Type | Method and Description |
---|---|
protected BufferedReader |
createBufferedFileReader(File file,
String encoding) |
protected BufferedWriter |
createBufferedFileWriter(File file,
String encoding) |
protected void |
createDirectory(File directory,
boolean overwrite) |
void |
execute() |
protected Play2Provider |
getProvider() |
protected Set<org.apache.maven.artifact.Artifact> |
getResolvedArtifact(org.apache.maven.artifact.Artifact artifact,
boolean transitively) |
protected Set<org.apache.maven.artifact.Artifact> |
getResolvedArtifact(String groupId,
String artifactId,
String version) |
protected Set<org.apache.maven.artifact.Artifact> |
getResolvedArtifact(String groupId,
String artifactId,
String version,
boolean transitively) |
protected abstract void |
internalExecute() |
protected boolean |
isMatchingProject(org.apache.maven.project.MavenProject p,
String selector) |
protected String |
readFileFirstLine(File file,
String encoding) |
protected void |
writeToFile(File file,
String encoding,
String line) |
@Parameter(property="play2.version") protected String playVersion
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session
@Parameter(property="localRepository", readonly=true, required=true) protected org.apache.maven.artifact.repository.ArtifactRepository localRepo
@Parameter(property="project.remoteArtifactRepositories", readonly=true, required=true) protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepos
@Component protected org.apache.maven.repository.RepositorySystem repositorySystem
@Component protected org.apache.maven.artifact.resolver.ResolutionErrorHandler resolutionErrorHandler
@Parameter(property="plugin.groupId", readonly=true, required=true) protected String pluginGroupId
@Parameter(property="plugin.version", readonly=true, required=true) protected String pluginVersion
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected abstract void internalExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, IOException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
IOException
protected final BufferedReader createBufferedFileReader(File file, String encoding) throws FileNotFoundException, UnsupportedEncodingException
protected final BufferedWriter createBufferedFileWriter(File file, String encoding) throws FileNotFoundException, UnsupportedEncodingException
protected String readFileFirstLine(File file, String encoding) throws IOException
IOException
protected void writeToFile(File file, String encoding, String line) throws IOException
IOException
protected void createDirectory(File directory, boolean overwrite) throws IOException
IOException
protected Play2Provider getProvider() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected Set<org.apache.maven.artifact.Artifact> getResolvedArtifact(String groupId, String artifactId, String version) throws org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactResolutionException
protected Set<org.apache.maven.artifact.Artifact> getResolvedArtifact(String groupId, String artifactId, String version, boolean transitively) throws org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactResolutionException
protected Set<org.apache.maven.artifact.Artifact> getResolvedArtifact(org.apache.maven.artifact.Artifact artifact, boolean transitively) throws org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactResolutionException
protected boolean isMatchingProject(org.apache.maven.project.MavenProject p, String selector)
Copyright © 2013–2019. All rights reserved.