org.apache.maven.plugin.eclipse
Class M2EclipseMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.ide.AbstractIdeSupportMojo
          extended by org.apache.maven.plugin.eclipse.EclipsePlugin
              extended by org.apache.maven.plugin.eclipse.M2EclipseMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.logging.LogEnabled

public class M2EclipseMojo
extends EclipsePlugin

Creates an eclipse project that is ready to use with the M2Elipse plugin.

Since:
2.4
Is defined to be executed in:
phase:
generate-resources
Is defined by the goal name:
m2eclipse

Field Summary
protected static java.lang.String M2ECLIPSE_BUILD_COMMAND
           
protected static java.lang.String M2ECLIPSE_CLASSPATH_CONTAINER
           
protected static java.lang.String M2ECLIPSE_NATURE
           
 
Fields inherited from class org.apache.maven.plugin.eclipse.EclipsePlugin
ASPECTJ_FILE_PATTERN, ASPECTJ_RT_CONTAINER, BUILDER_WST_VALIDATION, COMMON_PATH_JDT_LAUNCHING_JRE_CONTAINER, JAVA_FILE_PATTERN, limitProjectReferencesToWorkspace, REQUIRED_PLUGINS_CONTAINER, workspace, WTP_SUPPORTED_VERSIONS
 
Fields inherited from class org.apache.maven.plugin.ide.AbstractIdeSupportMojo
artifactCollector, artifactFactory, artifactMetadataSource, artifactResolver, downloadJavadocs, downloadSources, executedProject, forceRecheck, localRepository, logger, packaging, project, reactorProjects, remoteArtifactRepositories
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
M2EclipseMojo()
           
 
Method Summary
protected  void setupExtras()
          Extension point for subclasses.
 
Methods inherited from class org.apache.maven.plugin.eclipse.EclipsePlugin
buildDirectoryList, checkDeprecationsExtras, convertBuildCommandList, createEclipseWriterConfig, fillDefaultBuilders, fillDefaultClasspathContainers, fillDefaultNatures, getAdditionalBuildcommands, getAdditionalProjectnatures, getBuildcommands, getBuildOutputDirectory, getClasspathContainers, getEclipseProjectDir, getExcludes, getProjectNameForArifact, getProjectNameTemplate, getProjectnatures, getUseProjectReferences, getWorkspaceArtefacts, getWorkspaceConfiguration, getWtpversion, hasToResolveJar, isAddGroupIdToProjectName, isAddVersionToProjectName, isJavaProject, isPdeProject, setAddGroupIdToProjectName, setAdditionalBuildcommands, setAdditionalProjectnatures, setAddVersionToProjectName, setBuildcommands, setBuildOutputDirectory, setClasspathContainers, setEclipseProjectDir, setProjectNameTemplate, setProjectnatures, setup, setUseProjectReferences, setWtpversion, useProjectReference, validateExtras, writeConfiguration, writeConfigurationExtras
 
Methods inherited from class org.apache.maven.plugin.ide.AbstractIdeSupportMojo
doDependencyResolution, enableLogging, execute, getArtifactFactory, getArtifactMetadataSource, getArtifactResolver, getDownloadJavadocs, getDownloadSources, getExecutedProject, getLocalRepository, getProject, getReactorProject, getReactorProjects, getRemoteArtifactRepositories, isAvailableAsAReactorProject, isMavenVersion, isResolveDependencies, setArtifactFactory, setArtifactMetadataSource, setArtifactResolver, setDownloadJavadocs, setDownloadSources, setExecutedProject, setLocalRepository, setProject, setReactorProjects, setRemoteArtifactRepositories, setResolveDependencies
 
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

M2ECLIPSE_NATURE

protected static final java.lang.String M2ECLIPSE_NATURE
See Also:
Constant Field Values

M2ECLIPSE_BUILD_COMMAND

protected static final java.lang.String M2ECLIPSE_BUILD_COMMAND
See Also:
Constant Field Values

M2ECLIPSE_CLASSPATH_CONTAINER

protected static final java.lang.String M2ECLIPSE_CLASSPATH_CONTAINER
See Also:
Constant Field Values
Constructor Detail

M2EclipseMojo

public M2EclipseMojo()
Method Detail

setupExtras

protected void setupExtras()
                    throws org.apache.maven.plugin.MojoExecutionException
Description copied from class: EclipsePlugin
Extension point for subclasses.

Called during setup.

Overrides:
setupExtras in class EclipsePlugin
Throws:
org.apache.maven.plugin.MojoExecutionException - mojo failures.


Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.