Fork me on GitHub

de.tobiasroeser.eclipse:eclipse

Full name:

de.tototec:de.tobiasroeser.eclipse-maven-plugin:0.1.1:eclipse

Description:

Generates Eclipse project files from the current Maven project. The typical files are:
  • .project
  • .classpath
  • .settings/org.eclipse.m2e.core.prefs
  • .settings/org.eclipse.core.resources.prefs
  • .settings/org.eclipse.jdt.core.prefs

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: generate-resources.

Optional Parameters

Name Type Since Description
<activeProfiles> List - List of Maven profiles that should be activated in Eclipse.
User property is: eclipse.activeProfiles.
<alternativeOutput> String - Use the alternative build output directory.
User property is: eclipse.alternativeOutput.
<autodetect> boolean - Try to auto-detect additional builders and natures.
Default value is: true.
User property is: eclipse.autodetect.
<defaultBuilders> boolean - When true, the predefined default builders will be added to the eclipse project.
Default value is: true.
User property is: eclipse.defaultBuilders.
<defaultNatures> boolean - When true, the predefined default natures will be added to the eclipse project.
Default value is: true.
User property is: eclipse.defaultNatures.
<dryrun> boolean - When true, no files will be written but their content will be written to the log/console.
Default value is: false.
User property is: eclipse.dryrun.
<extraBuilders> List - Add additional builders to the eclipse project.
User property is: eclipse.extraBuilders.
<extraNatures> List - Add additional natures to the eclipse project.
User property is: eclipse.extraNatures.
<extraResources> List - Add additional resource directories to the eclipse project.
User property is: eclipse.extraResources.
<extraSources> List - Add additional source directories to the eclipse project.
User property is: eclipse.extraSources.
<extraTestResources> List - Add additional test resource directories to the eclipse project.
User property is: eclipse.extraTestResources.
<extraTestSources> List - Add additional test source directories to the eclipse project.
User property is: eclipse.extraTestSources.
<outputDirectory> String - The output directory e.g. for compiled classes. This setting can be overridden with alternativeOutput.
Default value is: ${project.build.outputDirectory}.
User property is: eclipse.outputDirectory.
<settingsTemplates> Map - Map of settings file templates, which will be placed in the '.settings' directory. The map entry key is the settings file name. The map entry value is the template file. Settings files listed here will be used as is, even if this plugin would otherwise generate them based on the maven setup.
User property is: eclipse.settingsTemplates.
<settingsTemplatesDir> File - A directory containing files, which should be placed into the '.settings' directory. This works almost like settingsTemplates, but auto-scans the directory.
User property is: eclipse.settingsTemplatesDir.
<skip> boolean - If true, execution is skipped and nothings will be generated.
Default value is: false.
User property is: eclipse.skip.
<sourcesOptional> boolean - Should the generated source paths be optional.
Default value is: true.
User property is: eclipse.sourcesOptional.
<testOutputDirectory> String - The test output directory e.g. for compiled test classes. This setting can be overridden with alternativeOutput.
Default value is: ${project.build.testOutputDirectory}.
User property is: eclipse.testOutputDirectory.

Parameter Details

<activeProfiles>

List of Maven profiles that should be activated in Eclipse.
  • Type: java.util.List
  • Required: No
  • User Property: eclipse.activeProfiles

<alternativeOutput>

Use the alternative build output directory.
  • Type: java.lang.String
  • Required: No
  • User Property: eclipse.alternativeOutput

<autodetect>

Try to auto-detect additional builders and natures.
  • Type: boolean
  • Required: No
  • User Property: eclipse.autodetect
  • Default: true

<defaultBuilders>

When true, the predefined default builders will be added to the eclipse project.
  • Type: boolean
  • Required: No
  • User Property: eclipse.defaultBuilders
  • Default: true

<defaultNatures>

When true, the predefined default natures will be added to the eclipse project.
  • Type: boolean
  • Required: No
  • User Property: eclipse.defaultNatures
  • Default: true

<dryrun>

When true, no files will be written but their content will be written to the log/console.
  • Type: boolean
  • Required: No
  • User Property: eclipse.dryrun
  • Default: false

<extraBuilders>

Add additional builders to the eclipse project.
  • Type: java.util.List
  • Required: No
  • User Property: eclipse.extraBuilders

<extraNatures>

Add additional natures to the eclipse project.
  • Type: java.util.List
  • Required: No
  • User Property: eclipse.extraNatures

<extraResources>

Add additional resource directories to the eclipse project.
  • Type: java.util.List
  • Required: No
  • User Property: eclipse.extraResources

<extraSources>

Add additional source directories to the eclipse project.
  • Type: java.util.List
  • Required: No
  • User Property: eclipse.extraSources

<extraTestResources>

Add additional test resource directories to the eclipse project.
  • Type: java.util.List
  • Required: No
  • User Property: eclipse.extraTestResources

<extraTestSources>

Add additional test source directories to the eclipse project.
  • Type: java.util.List
  • Required: No
  • User Property: eclipse.extraTestSources

<outputDirectory>

The output directory e.g. for compiled classes. This setting can be overridden with alternativeOutput.
  • Type: java.lang.String
  • Required: No
  • User Property: eclipse.outputDirectory
  • Default: ${project.build.outputDirectory}

<settingsTemplates>

Map of settings file templates, which will be placed in the '.settings' directory. The map entry key is the settings file name. The map entry value is the template file. Settings files listed here will be used as is, even if this plugin would otherwise generate them based on the maven setup.
  • Type: java.util.Map
  • Required: No
  • User Property: eclipse.settingsTemplates

<settingsTemplatesDir>

A directory containing files, which should be placed into the '.settings' directory. This works almost like settingsTemplates, but auto-scans the directory.
  • Type: java.io.File
  • Required: No
  • User Property: eclipse.settingsTemplatesDir

<skip>

If true, execution is skipped and nothings will be generated.
  • Type: boolean
  • Required: No
  • User Property: eclipse.skip
  • Default: false

<sourcesOptional>

Should the generated source paths be optional.
  • Type: boolean
  • Required: No
  • User Property: eclipse.sourcesOptional
  • Default: true

<testOutputDirectory>

The test output directory e.g. for compiled test classes. This setting can be overridden with alternativeOutput.
  • Type: java.lang.String
  • Required: No
  • User Property: eclipse.testOutputDirectory
  • Default: ${project.build.testOutputDirectory}