org.apache.maven.plugin.eclipse
Class MyEclipsePlugin
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.ide.AbstractIdeSupportMojo
org.apache.maven.plugin.eclipse.EclipsePlugin
org.apache.maven.plugin.eclipse.MyEclipsePlugin
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.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
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 |
Methods inherited from class org.apache.maven.plugin.eclipse.EclipsePlugin |
buildDirectoryList, checkDeprecationsExtras, convertBuildCommandList, createEclipseWriterConfig, 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, 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, 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 |
MyEclipsePlugin
public MyEclipsePlugin()
writeConfigurationExtras
protected void writeConfigurationExtras(EclipseWriterConfig config)
throws org.apache.maven.plugin.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:
org.apache.maven.plugin.MojoExecutionException
fillDefaultBuilders
protected void fillDefaultBuilders(java.lang.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(java.lang.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(java.lang.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 java.util.Map getSpring()
setSpring
public void setSpring(java.util.Map spring)
getHibernate
public java.util.Map getHibernate()
setHibernate
public void setHibernate(java.util.Map hibernate)
getStruts
public java.util.Map getStruts()
setStruts
public void setStruts(java.util.Map struts)
Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.