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:
- ContextEnabled, Mojo, org.codehaus.plexus.logging.LogEnabled
@Mojo(name="myeclipse")
@Execute(phase=GENERATE_RESOURCES)
public class MyEclipsePlugin
- extends EclipsePlugin
Generates MyEclipse configuration files
- Since:
- 2.5
- Author:
- Olivier Jacob
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, 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 |
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, 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyEclipsePlugin
public MyEclipsePlugin()
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–2015 The Apache Software Foundation. All rights reserved.