org.apache.maven.plugin.eclipse
Class MyEclipsePlugin

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.MyEclipsePlugin
All Implemented Interfaces:
ContextEnabled, Mojo, org.codehaus.plexus.logging.LogEnabled

public class MyEclipsePlugin
extends EclipsePlugin

Generates MyEclipse configuration files

Since:
2.5
Author:
Olivier Jacob
Is defined to be executed in:
phase:
generate-resources
Is defined by the goal name:
myeclipse

Field Summary
 
Fields inherited from class org.apache.maven.plugin.eclipse.EclipsePlugin
ASPECTJ_FILE_PATTERN, ASPECTJ_RT_CONTAINER, BUILDER_WST_VALIDATION, classpathContainersLast, COMMON_PATH_JDT_LAUNCHING_JRE_CONTAINER, JAVA_FILE_PATTERN, jeeversion, limitProjectReferencesToWorkspace, REQUIRED_PLUGINS_CONTAINER, testSourcesLast, 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
MyEclipsePlugin()
           
 
Method Summary
protected  void fillDefaultBuilders(String packaging)
          Override the default builders with the builders used by MyEclipse
protected  void fillDefaultClasspathContainers(String packaging)
          Fill getClasspathContainers() with values.
protected  void fillDefaultNatures(String packaging)
          Override the default natures with the natures used by MyEclipse
 Map getHibernate()
           
 Map getSpring()
           
 Map getStruts()
           
 void setHibernate(Map hibernate)
           
 void setSpring(Map spring)
           
 void setStruts(Map struts)
           
protected  void writeConfigurationExtras(EclipseWriterConfig config)
          Write any extra configuration information for the Eclipse project.
 
Methods inherited from class org.apache.maven.plugin.eclipse.EclipsePlugin
buildDirectoryList, checkDeprecationsExtras, convertBuildCommandList, createEclipseWriterConfig, getAdditionalBuildcommands, getAdditionalProjectnatures, getBuildcommands, getBuildOutputDirectory, getClasspathContainers, getEclipseProjectDir, getExcludes, getLinkedResources, getProjectNameForArifact, getProjectNameTemplate, getProjectnatures, getUseProjectReferences, getWorkspaceArtefacts, getWorkspaceConfiguration, getWtpversion, hasToResolveJar, isAddGroupIdToProjectName, isAddVersionToProjectName, isAvailableAsAReactorProject, isJavaProject, isPdeProject, setAddGroupIdToProjectName, setAdditionalBuildcommands, setAdditionalProjectnatures, setAddVersionToProjectName, setBuildcommands, setBuildOutputDirectory, setClasspathContainers, setEclipseProjectDir, setLinkedResources, setProjectNameTemplate, setProjectnatures, setup, setupExtras, setUseProjectReferences, setWtpversion, useProjectReference, validateExtras, writeConfiguration
 
Methods inherited from class org.apache.maven.plugin.ide.AbstractIdeSupportMojo
doDependencyResolution, enableLogging, execute, getArtifactFactory, getArtifactMetadataSource, getArtifactResolver, getDownloadJavadocs, getDownloadSources, getExecutedProject, getLocalRepository, getProject, getReactorProject, getReactorProjects, getRemoteArtifactRepositories, 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
 

Constructor Detail

MyEclipsePlugin

public MyEclipsePlugin()
Method Detail

writeConfigurationExtras

protected void writeConfigurationExtras(EclipseWriterConfig config)
                                 throws MojoExecutionException
Write any extra configuration information for the Eclipse project. This is an extension point, called before the main configurations are written.
NOTE: This could change the config!

Overrides:
writeConfigurationExtras in class EclipsePlugin
Throws:
MojoExecutionException

fillDefaultBuilders

protected void fillDefaultBuilders(String packaging)
Override the default builders with the builders used by MyEclipse

Overrides:
fillDefaultBuilders in class EclipsePlugin
Parameters:
packaging - packaging-type (jar,war,ejb,ear)

fillDefaultNatures

protected void fillDefaultNatures(String packaging)
Override the default natures with the natures used by MyEclipse

Overrides:
fillDefaultNatures in class EclipsePlugin
Parameters:
packaging - packaging-type (jar,war,ejb,ear)

fillDefaultClasspathContainers

protected void fillDefaultClasspathContainers(String packaging)
Description copied from class: EclipsePlugin
Fill getClasspathContainers() with values.

Subclasses should call super and then calculate their own additions and insert them via getClasspathContainers().addAll().

Overrides:
fillDefaultClasspathContainers in class EclipsePlugin
Parameters:
packaging - the pom's packaging

getSpring

public Map getSpring()

setSpring

public void setSpring(Map spring)

getHibernate

public Map getHibernate()

setHibernate

public void setHibernate(Map hibernate)

getStruts

public Map getStruts()

setStruts

public void setStruts(Map struts)


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