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:
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

Field Summary
 
Fields inherited from class org.apache.maven.plugin.eclipse.EclipsePlugin
BUILDER_WST_VALIDATION, COMMON_PATH_JDT_LAUNCHING_JRE_CONTAINER, REQUIRED_PLUGINS_CONTAINER, WTP_SUPPORTED_VERSIONS
 
Fields inherited from class org.apache.maven.plugin.ide.AbstractIdeSupportMojo
artifactCollector, artifactFactory, artifactMetadataSource, artifactResolver, downloadJavadocs, downloadSources, executedProject, localRepository, 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)
           
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)
           
 void writeConfiguration(IdeDependency[] deps)
          Main plugin method where dependencies should be processed in order to generate IDE configuration files.
 
Methods inherited from class org.apache.maven.plugin.eclipse.EclipsePlugin
buildDirectoryList, checkExtraDeprecations, convertBuildCommandList, createEclipseWriterConfig, getAdditionalBuildcommands, getAdditionalProjectnatures, getBuildcommands, getBuildOutputDirectory, getClasspathContainers, getEclipseProjectDir, getProjectNameForArifact, getProjectNameTemplate, getProjectnatures, getUseProjectReferences, getWtpversion, isAddGroupIdToProjectName, isAddVersionToProjectName, isJavaProject, isPdeProject, setAddGroupIdToProjectName, setAdditionalBuildcommands, setAdditionalProjectnatures, setAddVersionToProjectName, setBuildcommands, setBuildOutputDirectory, setClasspathContainers, setEclipseProjectDir, setProjectNameTemplate, setProjectnatures, setup, setupExtras, setUseProjectReferences, setWtpversion, validateExtras, verifyClasspathContainerListIsComplete, writeExtraConfiguration
 
Methods inherited from class org.apache.maven.plugin.ide.AbstractIdeSupportMojo
doDependencyResolution, enableLogging, execute, getArtifactFactory, getArtifactMetadataSource, getArtifactResolver, getDownloadJavadocs, getDownloadSources, getExecutedProject, getLocalRepository, getProject, getReactorProjects, getRemoteArtifactRepositories, 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

writeConfiguration

public void writeConfiguration(IdeDependency[] deps)
                        throws org.apache.maven.plugin.MojoExecutionException
Description copied from class: AbstractIdeSupportMojo
Main plugin method where dependencies should be processed in order to generate IDE configuration files.

Overrides:
writeConfiguration in class EclipsePlugin
Parameters:
deps - list of IdeDependency objects, with artifacts, sources and javadocs already resolved
Throws:
org.apache.maven.plugin.MojoExecutionException - generic mojo exception

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)
Overrides:
fillDefaultClasspathContainers in class EclipsePlugin

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-2007 The Apache Software Foundation. All Rights Reserved.