com.versioneye
Class SuperMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.versioneye.SuperMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
PingMojo, ProjectMojo

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

The Mother of all Mojos!


Field Summary
protected  String apiKey
           
protected  String apiPath
           
protected  String baseUrl
           
protected  File homeDirectory
           
protected  Properties homeProperties
           
protected  File outputDirectory
           
protected  org.apache.maven.project.MavenProject project
           
protected  File projectDirectory
           
protected  String projectId
           
protected  Properties properties
           
protected static String propertiesFile
           
protected  String propertiesPath
           
protected  List<org.eclipse.aether.repository.RemoteRepository> repos
           
protected  org.eclipse.aether.RepositorySystemSession session
           
protected  org.eclipse.aether.RepositorySystem system
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
SuperMojo()
           
 
Method Summary
 void execute()
           
protected  String fetchApiKey()
           
protected  Properties fetchHomeProperties()
           
protected  String fetchProjectId()
           
protected  Properties fetchProjectProperties()
           
protected  Properties fetchPropertiesFor(String key)
           
protected  String getPropertiesPath()
           
protected  void initTls()
           
protected  void writeProperties(ProjectJsonResponse response)
           
 
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

propertiesFile

protected static final String propertiesFile
See Also:
Constant Field Values

system

@Component
protected org.eclipse.aether.RepositorySystem system

project

@Parameter(defaultValue="${project}")
protected org.apache.maven.project.MavenProject project

session

@Parameter(defaultValue="${repositorySystemSession}")
protected org.eclipse.aether.RepositorySystemSession session

repos

@Parameter(defaultValue="${project.remoteProjectRepositories}")
protected List<org.eclipse.aether.repository.RemoteRepository> repos

projectDirectory

@Parameter(defaultValue="${basedir}",
           property="basedir",
           required=true)
protected File projectDirectory

outputDirectory

@Parameter(defaultValue="${project.build.directory}",
           property="outputDir",
           required=true)
protected File outputDirectory

homeDirectory

@Parameter(defaultValue="${user.home}")
protected File homeDirectory

baseUrl

@Parameter(property="baseUrl",
           defaultValue="https://www.versioneye.com")
protected String baseUrl

apiPath

@Parameter(property="apiPath",
           defaultValue="/api/v2")
protected String apiPath

projectId

@Parameter(property="projectId")
protected String projectId

apiKey

@Parameter(property="apiKey")
protected String apiKey

propertiesPath

@Parameter(property="propertiesPath")
protected String propertiesPath

properties

protected Properties properties

homeProperties

protected Properties homeProperties
Constructor Detail

SuperMojo

public SuperMojo()
Method Detail

execute

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

fetchApiKey

protected String fetchApiKey()
                      throws Exception
Throws:
Exception

fetchProjectId

protected String fetchProjectId()
                         throws Exception
Throws:
Exception

fetchPropertiesFor

protected Properties fetchPropertiesFor(String key)
                                 throws Exception
Throws:
Exception

fetchProjectProperties

protected Properties fetchProjectProperties()
                                     throws Exception
Throws:
Exception

fetchHomeProperties

protected Properties fetchHomeProperties()
                                  throws Exception
Throws:
Exception

getPropertiesPath

protected String getPropertiesPath()
                            throws Exception
Throws:
Exception

writeProperties

protected void writeProperties(ProjectJsonResponse response)
                        throws Exception
Throws:
Exception

initTls

protected void initTls()


Copyright © 2014. All rights reserved.