"Maven Anno Mojo" the problem that the
JavaMojoAnnotaitonDescriptorExtraction from Apache Maven does not work
sometimes for Maven 2.0.X was found: the class path of the compile
dependencies was not created correctly and so done manually within this
class as extendsion the Apache Maven JavaMojoAnnotaitonDescriptorExtraction.
- Version:
- $Id: EfapsAnnotationDescriptorExtractor.java 4165 2010-04-20 15:17:19Z jan.moxter $
- Author:
- tmo
- See Also:
JavaMojoAnnotationDescriptorExtractor
| Fields inherited from interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor |
ROLE |
|
Method Summary |
void |
contextualize(org.codehaus.plexus.context.Context _context)
Initialize the container from the context. |
java.util.List<org.apache.maven.plugin.descriptor.MojoDescriptor> |
execute(org.apache.maven.project.MavenProject _project,
org.apache.maven.plugin.descriptor.PluginDescriptor _pluginDescriptor)
|
java.util.List |
execute(org.apache.maven.tools.plugin.PluginToolsRequest _pluginToolRequest)
|
protected java.lang.ClassLoader |
getClassLoader(org.apache.maven.project.MavenProject _project)
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
getLocalRepository()
Retrieve the local repository path using the following search pattern:
System Property
localRepository specified in user settings file
${user.home}/.m2/repository
|
protected java.util.Map<java.lang.String,org.apache.maven.artifact.Artifact> |
getManagedVersionMap(org.apache.maven.project.MavenProject _project)
|
protected boolean |
isCompileScope(java.lang.String _scope)
Test if given scope is a compile scope. |
protected java.lang.String |
nullify(java.lang.String _value)
Returns a null if the string value is a zero length string. |
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EfapsAnnotationDescriptorExtractor
public EfapsAnnotationDescriptorExtractor()
contextualize
public void contextualize(org.codehaus.plexus.context.Context _context)
throws org.codehaus.plexus.context.ContextException
- Initialize the container from the context.
- Specified by:
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Throws:
org.codehaus.plexus.context.ContextException
execute
public java.util.List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(org.apache.maven.project.MavenProject _project,
org.apache.maven.plugin.descriptor.PluginDescriptor _pluginDescriptor)
throws org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- Specified by:
execute in interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor
- Parameters:
_project - _pluginDescriptor -
- Throws:
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
getClassLoader
protected java.lang.ClassLoader getClassLoader(org.apache.maven.project.MavenProject _project)
throws org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- Parameters:
_project - maven project
- Returns:
-
- Throws:
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
getManagedVersionMap
protected java.util.Map<java.lang.String,org.apache.maven.artifact.Artifact> getManagedVersionMap(org.apache.maven.project.MavenProject _project)
throws org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- Parameters:
_project -
- Returns:
-
- Throws:
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
getLocalRepository
protected org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
throws org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- Retrieve the local repository path using the following search pattern:
- System Property
- localRepository specified in user settings file
${user.home}/.m2/repository
- Throws:
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException- See Also:
PROP_KEY_LOCAL_REPOSITORY_LOCATION,
PROP_KEY_USER_SETTINGS_XML_LOCATION,
PROP_KEY_USER_HOME
isCompileScope
protected boolean isCompileScope(java.lang.String _scope)
- Test if given scope is a compile scope.
- Parameters:
_scope - scope to test
- Returns:
- true if given scope is not a system, test or runtime scrope
nullify
protected java.lang.String nullify(java.lang.String _value)
- Returns a
null if the string value is a zero length string.
- Parameters:
_value - text value to nullify
- Returns:
null if string is null or a zero length
string; otherwise the value itself is returned
execute
public java.util.List execute(org.apache.maven.tools.plugin.PluginToolsRequest _pluginToolRequest)
throws org.apache.maven.tools.plugin.extractor.ExtractionException,
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- Specified by:
execute in interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor
- Throws:
org.apache.maven.tools.plugin.extractor.ExtractionException
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Copyright © 2007-2010 eFaps. All Rights Reserved.