|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.ide.AbstractIdeSupportMojo
org.apache.maven.plugin.eclipse.EclipsePlugin
public class EclipsePlugin
Generates the following eclipse configuration files:
.project and .classpath files.setting/org.eclipse.jdt.core.prefs with project specific compiler settingswtpversion is set to a
valid version (WTP configuration is not generated by default)useProjectReferences is set to false)
| Field Summary | |
|---|---|
static java.lang.String[] |
WTP_SUPPORTED_VERSIONS
|
| Fields inherited from class org.apache.maven.plugin.ide.AbstractIdeSupportMojo |
|---|
artifactCollector, artifactFactory, artifactMetadataSource, artifactResolver, downloadSources, executedProject, localRepository, project, reactorProjects, remoteArtifactRepositories |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
EclipsePlugin()
|
|
| Method Summary | |
|---|---|
EclipseSourceDir[] |
buildDirectoryList(org.apache.maven.project.MavenProject project,
java.io.File basedir,
java.io.File buildOutputDirectory)
|
java.util.List |
getAdditionalBuildcommands()
Getter for additionalBuildcommands. |
java.util.List |
getAdditionalProjectnatures()
Getter for additionalProjectnatures. |
java.util.List |
getBuildcommands()
Getter for buildcommands. |
java.io.File |
getBuildOutputDirectory()
Getter for buildOutputDirectory. |
java.util.List |
getClasspathContainers()
Getter for classpathContainers. |
java.io.File |
getEclipseProjectDir()
Getter for eclipseProjectDir. |
java.util.List |
getProjectnatures()
Getter for projectnatures. |
boolean |
getUseProjectReferences()
Getter for useProjectReferences. |
java.lang.String |
getWtpversion()
Getter for wtpversion. |
void |
setAdditionalBuildcommands(java.util.List additionalBuildcommands)
Setter for additionalBuildcommands. |
void |
setAdditionalProjectnatures(java.util.List additionalProjectnatures)
Setter for additionalProjectnatures. |
void |
setBuildcommands(java.util.List buildcommands)
Setter for buildcommands. |
void |
setBuildOutputDirectory(java.io.File buildOutputDirectory)
Setter for buildOutputDirectory. |
void |
setClasspathContainers(java.util.List classpathContainers)
Setter for classpathContainers. |
void |
setEclipseProjectDir(java.io.File eclipseProjectDir)
Setter for eclipseProjectDir. |
void |
setProjectnatures(java.util.List projectnatures)
Setter for projectnatures. |
boolean |
setup()
Hook for preparation steps before the actual plugin execution. |
void |
setUseProjectReferences(boolean useProjectReferences)
Setter for useProjectReferences. |
void |
setWtpversion(java.lang.String wtpversion)
Setter for wtpversion. |
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.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 |
|---|
public static final java.lang.String[] WTP_SUPPORTED_VERSIONS
| Constructor Detail |
|---|
public EclipsePlugin()
| Method Detail |
|---|
public java.util.List getBuildcommands()
buildcommands.
public void setBuildcommands(java.util.List buildcommands)
buildcommands.
buildcommands - The buildcommands to set.public java.io.File getBuildOutputDirectory()
buildOutputDirectory.
public void setBuildOutputDirectory(java.io.File buildOutputDirectory)
buildOutputDirectory.
buildOutputDirectory - The buildOutputDirectory to set.public java.util.List getClasspathContainers()
classpathContainers.
public void setClasspathContainers(java.util.List classpathContainers)
classpathContainers.
classpathContainers - The classpathContainers to set.public java.io.File getEclipseProjectDir()
eclipseProjectDir.
public void setEclipseProjectDir(java.io.File eclipseProjectDir)
eclipseProjectDir.
eclipseProjectDir - The eclipseProjectDir to set.public java.util.List getProjectnatures()
projectnatures.
public void setProjectnatures(java.util.List projectnatures)
projectnatures.
projectnatures - The projectnatures to set.public boolean getUseProjectReferences()
useProjectReferences.
getUseProjectReferences in class AbstractIdeSupportMojopublic void setUseProjectReferences(boolean useProjectReferences)
useProjectReferences.
useProjectReferences - The useProjectReferences to set.public java.lang.String getWtpversion()
wtpversion.
public void setWtpversion(java.lang.String wtpversion)
wtpversion.
wtpversion - The wtpversion to set.public java.util.List getAdditionalBuildcommands()
additionalBuildcommands.
public void setAdditionalBuildcommands(java.util.List additionalBuildcommands)
additionalBuildcommands.
additionalBuildcommands - The additionalBuildcommands to set.public java.util.List getAdditionalProjectnatures()
additionalProjectnatures.
public void setAdditionalProjectnatures(java.util.List additionalProjectnatures)
additionalProjectnatures.
additionalProjectnatures - The additionalProjectnatures to set.
public boolean setup()
throws org.apache.maven.plugin.MojoExecutionException
AbstractIdeSupportMojo
setup in class AbstractIdeSupportMojotrue if execution should continue or false if not.
org.apache.maven.plugin.MojoExecutionException - generic mojo exceptionMojo.execute()
public void writeConfiguration(IdeDependency[] deps)
throws org.apache.maven.plugin.MojoExecutionException
AbstractIdeSupportMojo
writeConfiguration in class AbstractIdeSupportMojodeps - list of IdeDependency objects, with artifacts, sources and javadocs already resolved
org.apache.maven.plugin.MojoExecutionException - generic mojo exception
public EclipseSourceDir[] buildDirectoryList(org.apache.maven.project.MavenProject project,
java.io.File basedir,
java.io.File buildOutputDirectory)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||