Full name:

io.wcm.devops.maven.plugins:eclipse-maven-plugin:3.2.1-SNAPSHOT:myeclipse

Description:

Generates MyEclipse configuration files

Attributes:

  • Requires a Maven project to be executed.
  • Since version: 2.5.
  • Invokes the execution of the lifecycle phase generate-resources prior to executing itself.

Required Parameters

Name Type Since Description
<buildOutputDirectory> File 2.5 The default output directory
Default value is: ${project.build.outputDirectory}.
User property is: outputDirectory.
Alias is: outputDirectory.
<useProjectReferences> boolean 2.5 When set to false, the plugin will not create sub-projects and instead reference those sub-projects using the installed package in the local repository
Default value is: true.
User property is: eclipse.useProjectReferences.

Optional Parameters

<jeeversion> String 2.9 The plugin is often capable in predicting the required jee version based on the dependencies of the project. By setting this parameter to one of the jeeversion options the version will be locked.
jeeversion EJB version Servlet version JSP version
6.0 3.1 3.0 2.2
5.0 3.0 2.5 2.1
1.4 2.1 2.4 2.0
1.3 2.0 2.3 1.2
1.2 1.1 2.2 1.1

User property is: eclipse.jeeversion.
Name Type Since Description
<addGroupIdToProjectName> boolean 2.5 If set to true, the groupId of the artifact is appended to the name of the generated Eclipse project. See projectNameTemplate for other options.
Default value is: false.
User property is: eclipse.addGroupIdToProjectName.
<addVersionToProjectName> boolean 2.5 If set to true, the version number of the artifact is appended to the name of the generated Eclipse project. See projectNameTemplate for other options.
Default value is: false.
User property is: eclipse.addVersionToProjectName.
<additionalBuildcommands> List 2.5 List of eclipse build commands to be added to the default ones. Old style:
<additionalBuildcommands>
   <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
</additionalBuildcommands>
New style:
<additionalBuildcommands>
   <buildCommand>
     <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
     <triggers>auto,full,incremental,</triggers>
     <arguments>
       <LaunchConfigHandle>&lt;project&gt;./externalToolBuilders/MavenBuilder.launch</LaunchConfighandle>
     </arguments>
   </buildCommand>
</additionalBuildcommands>
Note the difference between buildcommand and buildCommand. You can mix and match old and new-style configuration entries.
<additionalConfig> EclipseConfigFile[] 2.5 Allow to configure additional generic configuration files for eclipse that will be written out to disk when running eclipse:eclipse. FOr each file you can specify the name and the text content.
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-eclipse-plugin</artifactId>
 <configuration>
  <additionalConfig>
   <file>
     <name>.checkstyle</name>
     <content>
       <![CDATA[<fileset-config file-format-version="1.2.0" simple-config="true">
         <fileset name="all" enabled="true" check-config-name="acme corporate style" local="false">
             <file-match-pattern match-pattern="." include-pattern="true"/>
         </fileset>
         <filter name="NonSrcDirs" enabled="true"/>
       </fileset-config>]]>
     </content>
   </file>
  </additionalConfig>
 </configuration>
</plugin>
Instead of the content you can also define (from version 2.5) an url to download the file :
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-eclipse-plugin</artifactId>
 <configuration>
  <additionalConfig>
   <file>
     <name>.checkstyle</name>
     <url>http://some.place.org/path/to/file</url>
   </file>
  </additionalConfig>
 </configuration>
or a location :
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-eclipse-plugin</artifactId>
 <configuration>
  <additionalConfig>
   <file>
    <name>.checkstyle</name>
    <location>/checkstyle-config.xml</location>
   </file>
  </additionalConfig>
 </configuration>
 <dependencies>
  <!-- The file defined in the location is stored in this dependency -->
  <dependency>
   <groupId>eclipsetest</groupId>
   <artifactId>checkstyle-config</artifactId>
   <version>1.0</version>
  </dependency>
 </dependencies>
</plugin>

<additionalProjectFacets> Map 2.5 List of eclipse project facets to be added to the default ones.
<additionalProjectFacets>
   <jst.jsf>1.1<jst.jsf/>
</additionalProjectFacets>

<additionalProjectnatures> List 2.5 List of eclipse project natures to be added to the default ones.
<additionalProjectnatures>
   <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
</additionalProjectnatures>

<ajdtVersion> String 2.5 The version of AJDT for which configuration files will be generated. The default value is "1.5", supported versions are "none" (AJDT support disabled), "1.4", and "1.5".
Default value is: none.
User property is: eclipse.ajdtVersion.
<buildcommands> List 2.5 List of eclipse build commands. By default the org.eclipse.jdt.core.javabuilder builder plus the needed WTP builders are added. If you specify any configuration for this parameter, only those buildcommands specified will be used; the defaults won't be added. Use the additionalBuildCommands parameter for that. Configuration example: Old style:
<buildcommands>
   <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilder</buildcommand>
   <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
   <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver</buildcommand>
</buildcommands>
For new style, see additionalBuildCommands.
<classpathContainers> List 2.5 List of container classpath entries. By default the org.eclipse.jdt.launching.JRE_CONTAINER classpath container is added. Configuration example:
<classpathContainers>
   <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
   <classpathContainer>org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5</classpathContainer>
   <classpathContainer>org.eclipse.jst.j2ee.internal.web.container/artifact</classpathContainer>
</classpathContainers>

<classpathContainersLast> boolean 2.9 Put classpath container entries last in eclipse classpath configuration. Note that this behaviour, although useful in situations were you want to override resources found in classpath containers, will made JRE classes loaded after 3rd party jars, so enabling it is not suggested.
Default value is: false.
User property is: eclipse.classpathContainersLast.
<downloadJavadocs> boolean 2.5 Enables/disables the downloading of javadoc attachments. Defaults to false. When this flag is true remote repositories are checked for javadocs: in order to avoid repeated check for unavailable javadoc archives, a status cache is mantained. With versions 2.6+ of the plugin to reset this cache run mvn eclipse:remove-cache, or use the forceRecheck option with versions. With older versions delete the file mvn-eclipse-cache.properties in the target directory.
User property is: downloadJavadocs.
<downloadSources> boolean 2.5 Enables/disables the downloading of source attachments. Defaults to false. When this flag is true remote repositories are checked for sources: in order to avoid repeated check for unavailable source archives, a status cache is mantained. With versions 2.6+ of the plugin to reset this cache run mvn eclipse:remove-cache, or use the forceRecheck option with versions. With older versions delete the file mvn-eclipse-cache.properties in the target directory.
User property is: downloadSources.
<eclipseDownloadSources> boolean 2.5 Deprecated. use downloadSources
User property is: eclipse.downloadSources.
<eclipseProjectDir> File 2.5 Eclipse workspace directory.
User property is: eclipse.projectDir.
Alias is: outputDir.
<excludes> List 2.5 List of artifacts, represented as groupId:artifactId, to exclude from the eclipse classpath, being provided by some eclipse classPathContainer.
<forceRecheck> boolean 2.5 Enables/disables the rechecking of the remote repository for downloading source/javadoc attachments. Defaults to false. When this flag is true and the source or javadoc attachment has a status cache to indicate that it is not available, then the remote repository will be rechecked for a source or javadoc attachment and the status cache updated to reflect the new state.
User property is: forceRecheck.
<hibernate> Map 2.5 Hibernate configuration placeholder
  <hibernate>
    <config-file>src/main/resources/applicationContext-persistence.xml</config-file>
    <session-factory-id>mySessionFactory</session-factory-id>
  </hibernate>

<limitProjectReferencesToWorkspace> boolean 2.5 Limit the use of project references to the current workspace. No project references will be created to projects in the reactor when they are not available in the workspace.
Default value is: false.
User property is: eclipse.limitProjectReferencesToWorkspace.
<linkedResources> List 2.8 A list of links to local files in the system. A configuration like this one in the pom :
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-eclipse-plugin</artifactId>
  <configuration> 
    <linkedResources> 
      <linkedResource>
        <name>src/test/resources/oracle-ds.xml</name>
        <type>1</type>
        <location>C://jboss/server/default/deploy/oracle-ds.xml</location> 
      </linkedResource>
    </linkedResources> 
  </configuration> 
</plugin>
will produce in the .project :
<linkedResources>
  <link>
    <name>src/test/resources/oracle-ds.xml</name>
    <type>1</type> 
    <location>C://jboss/server/default/deploy/oracle-ds.xml</location>
  </link>
</linkedResources>

<manifest> File 2.5 The relative path of the manifest file
Default value is: ${basedir}/META-INF/MANIFEST.MF.
User property is: eclipse.manifest.
<mavenSession> MavenSession 2.5 (no description)
Default value is: ${session}.
<packaging> String 2.5 The project packaging.
User property is: project.packaging.
<preferStandardClasspathContainer> boolean 2.10 If set to true, the standard execution environment matching the compiler settings is set as JRE. If set to false, the JRE matching the configured compiler-plugin executable or JAVA_HOME is selected by name, if it is configured in the workspace.
Default value is: false.
User property is: eclipse.preferStandardClasspathContainer.
<projectNameTemplate> String 2.5 Allows configuring the name of the eclipse projects. This property if set wins over addVersionToProjectName and addGroupIdToProjectName You can use [groupId], [artifactId] and [version] variables. eg. [groupId].[artifactId]-[version]
User property is: eclipse.projectNameTemplate.
<projectnatures> List 2.5 List of eclipse project natures. By default the org.eclipse.jdt.core.javanature nature plus the needed WTP natures are added. Natures added using this property replace the default list.
<projectnatures>
   <projectnature>org.eclipse.jdt.core.javanature</projectnature>
   <projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
</projectnatures>

<skip> boolean 2.5 Skip the operation when true.
Default value is: false.
User property is: eclipse.skip.
<sourceExcludes> List 2.6.1 List of exclusions to add to the source directories on the classpath. Adds excluding="" to the classpathentry of the eclipse .classpath file. [MECLIPSE-104]
<sourceIncludes> List 2.6.1 List of inclusions to add to the source directories on the classpath. Adds including="" to the classpathentry of the eclipse .classpath file.

Java projects will always include "**/*.java"

Ajdt projects will always include "**/*.aj"

[MECLIPSE-104]


<spring> Map 2.5 Spring configuration placeholder
  <spring>
    <version>1.0/2.0</version>
    <file-pattern>applicationContext-*.xml</file-pattern>
    <basedir>src/main/resources</basedir>
  </spring>

<struts> Map 2.5 Allow declaration of struts properties for MyEclipse
  <struts>
    <version>1.2.9</version>
    <servlet-name>action</servlet-name>
    <pattern>*.do</pattern>
    <base-package>1.2.9</base-package>
  </struts>

<testSourcesLast> boolean 2.9 Whether to place test resources after main resources. Note that the default behavior of Maven version 2.0.8 or later is to have test dirs before main dirs in classpath so this is discouraged if you need to reproduce the maven behavior during tests. The default behavior is also changed in eclipse plugin version 2.6 in order to better match the maven one. Switching to "test source last" can anyway be useful if you need to run your application in eclipse, since there is no concept in eclipse of "phases" with different set of source dirs and dependencies like we have in maven.
Default value is: false.
User property is: eclipse.testSourcesLast.
<workspace> File 2.5 This eclipse workspace is read and all artifacts detected there will be connected as eclipse projects and will not be linked to the jars in the local repository. Requirement is that it was created with the similar wtp settings as the reactor projects, but the project name template my differ. The pom's in the workspace projects may not contain variables in the artefactId, groupId and version tags. If workspace is not defined, then an attempt to locate it by checking up the directory hierarchy will be made.
User property is: eclipse.workspace.
<wtpContextName> String 2.5 JEE context name of the WTP module. ( ex. WEB context name ). You can use "ROOT" if you want to map the webapp to the root context.
User property is: wtpContextName.
<wtpapplicationxml> boolean 2.5 Must the application files be written for ear projects in a separate directory.
Default value is: false.
User property is: eclipse.wtpapplicationxml.
<wtpdefaultserver> String 2.5 What WTP defined server to use for deployment informations.
User property is: eclipse.wtpdefaultserver.
<wtpmanifest> boolean 2.5 Must the manifest files be written for java projects so that that the jee classpath for wtp is correct.
Default value is: false.
User property is: eclipse.wtpmanifest.
<wtpversion> String 2.5 The version of WTP for which configuration files will be generated. The default value is "none" (don't generate WTP configuration), supported versions are "R7", "1.0", "1.5" and "2.0"
Default value is: none.
User property is: wtpversion.

Parameter Details

<addGroupIdToProjectName>

If set to true, the groupId of the artifact is appended to the name of the generated Eclipse project. See projectNameTemplate for other options.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: eclipse.addGroupIdToProjectName
  • Default: false

<addVersionToProjectName>

If set to true, the version number of the artifact is appended to the name of the generated Eclipse project. See projectNameTemplate for other options.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: eclipse.addVersionToProjectName
  • Default: false

<additionalBuildcommands>

List of eclipse build commands to be added to the default ones. Old style:
<additionalBuildcommands>
   <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
</additionalBuildcommands>
New style:
<additionalBuildcommands>
   <buildCommand>
     <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
     <triggers>auto,full,incremental,</triggers>
     <arguments>
       <LaunchConfigHandle>&lt;project&gt;./externalToolBuilders/MavenBuilder.launch</LaunchConfighandle>
     </arguments>
   </buildCommand>
</additionalBuildcommands>
Note the difference between buildcommand and buildCommand. You can mix and match old and new-style configuration entries.
  • Type: java.util.List
  • Since: 2.5
  • Required: No

<additionalConfig>

Allow to configure additional generic configuration files for eclipse that will be written out to disk when running eclipse:eclipse. FOr each file you can specify the name and the text content.
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-eclipse-plugin</artifactId>
 <configuration>
  <additionalConfig>
   <file>
     <name>.checkstyle</name>
     <content>
       <![CDATA[<fileset-config file-format-version="1.2.0" simple-config="true">
         <fileset name="all" enabled="true" check-config-name="acme corporate style" local="false">
             <file-match-pattern match-pattern="." include-pattern="true"/>
         </fileset>
         <filter name="NonSrcDirs" enabled="true"/>
       </fileset-config>]]>
     </content>
   </file>
  </additionalConfig>
 </configuration>
</plugin>
Instead of the content you can also define (from version 2.5) an url to download the file :
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-eclipse-plugin</artifactId>
 <configuration>
  <additionalConfig>
   <file>
     <name>.checkstyle</name>
     <url>http://some.place.org/path/to/file</url>
   </file>
  </additionalConfig>
 </configuration>
or a location :
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-eclipse-plugin</artifactId>
 <configuration>
  <additionalConfig>
   <file>
    <name>.checkstyle</name>
    <location>/checkstyle-config.xml</location>
   </file>
  </additionalConfig>
 </configuration>
 <dependencies>
  <!-- The file defined in the location is stored in this dependency -->
  <dependency>
   <groupId>eclipsetest</groupId>
   <artifactId>checkstyle-config</artifactId>
   <version>1.0</version>
  </dependency>
 </dependencies>
</plugin>
  • Type: org.apache.maven.plugin.eclipse.EclipseConfigFile[]
  • Since: 2.5
  • Required: No

<additionalProjectFacets>

List of eclipse project facets to be added to the default ones.
<additionalProjectFacets>
   <jst.jsf>1.1<jst.jsf/>
</additionalProjectFacets>
  • Type: java.util.Map
  • Since: 2.5
  • Required: No

<additionalProjectnatures>

List of eclipse project natures to be added to the default ones.
<additionalProjectnatures>
   <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
</additionalProjectnatures>
  • Type: java.util.List
  • Since: 2.5
  • Required: No

<ajdtVersion>

The version of AJDT for which configuration files will be generated. The default value is "1.5", supported versions are "none" (AJDT support disabled), "1.4", and "1.5".
  • Type: java.lang.String
  • Since: 2.5
  • Required: No
  • User Property: eclipse.ajdtVersion
  • Default: none

<buildOutputDirectory>

The default output directory
  • Type: java.io.File
  • Since: 2.5
  • Required: Yes
  • User Property: outputDirectory
  • Default: ${project.build.outputDirectory}
  • Alias: outputDirectory

<buildcommands>

List of eclipse build commands. By default the org.eclipse.jdt.core.javabuilder builder plus the needed WTP builders are added. If you specify any configuration for this parameter, only those buildcommands specified will be used; the defaults won't be added. Use the additionalBuildCommands parameter for that. Configuration example: Old style:
<buildcommands>
   <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilder</buildcommand>
   <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
   <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver</buildcommand>
</buildcommands>
For new style, see additionalBuildCommands.
  • Type: java.util.List
  • Since: 2.5
  • Required: No

<classpathContainers>

List of container classpath entries. By default the org.eclipse.jdt.launching.JRE_CONTAINER classpath container is added. Configuration example:
<classpathContainers>
   <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
   <classpathContainer>org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5</classpathContainer>
   <classpathContainer>org.eclipse.jst.j2ee.internal.web.container/artifact</classpathContainer>
</classpathContainers>
  • Type: java.util.List
  • Since: 2.5
  • Required: No

<classpathContainersLast>

Put classpath container entries last in eclipse classpath configuration. Note that this behaviour, although useful in situations were you want to override resources found in classpath containers, will made JRE classes loaded after 3rd party jars, so enabling it is not suggested.
  • Type: boolean
  • Since: 2.9
  • Required: No
  • User Property: eclipse.classpathContainersLast
  • Default: false

<downloadJavadocs>

Enables/disables the downloading of javadoc attachments. Defaults to false. When this flag is true remote repositories are checked for javadocs: in order to avoid repeated check for unavailable javadoc archives, a status cache is mantained. With versions 2.6+ of the plugin to reset this cache run mvn eclipse:remove-cache, or use the forceRecheck option with versions. With older versions delete the file mvn-eclipse-cache.properties in the target directory.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: downloadJavadocs

<downloadSources>

Enables/disables the downloading of source attachments. Defaults to false. When this flag is true remote repositories are checked for sources: in order to avoid repeated check for unavailable source archives, a status cache is mantained. With versions 2.6+ of the plugin to reset this cache run mvn eclipse:remove-cache, or use the forceRecheck option with versions. With older versions delete the file mvn-eclipse-cache.properties in the target directory.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: downloadSources

<eclipseDownloadSources>

Deprecated. use downloadSources
Enables/disables the downloading of source attachments. Defaults to false. DEPRECATED - use downloadSources
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: eclipse.downloadSources

<eclipseProjectDir>

Eclipse workspace directory.
  • Type: java.io.File
  • Since: 2.5
  • Required: No
  • User Property: eclipse.projectDir
  • Alias: outputDir

<excludes>

List of artifacts, represented as groupId:artifactId, to exclude from the eclipse classpath, being provided by some eclipse classPathContainer.
  • Type: java.util.List
  • Since: 2.5
  • Required: No

<forceRecheck>

Enables/disables the rechecking of the remote repository for downloading source/javadoc attachments. Defaults to false. When this flag is true and the source or javadoc attachment has a status cache to indicate that it is not available, then the remote repository will be rechecked for a source or javadoc attachment and the status cache updated to reflect the new state.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: forceRecheck

<hibernate>

Hibernate configuration placeholder
  <hibernate>
    <config-file>src/main/resources/applicationContext-persistence.xml</config-file>
    <session-factory-id>mySessionFactory</session-factory-id>
  </hibernate>
  • Type: java.util.Map
  • Since: 2.5
  • Required: No

<jeeversion>

The plugin is often capable in predicting the required jee version based on the dependencies of the project. By setting this parameter to one of the jeeversion options the version will be locked.
jeeversion EJB version Servlet version JSP version
6.0 3.1 3.0 2.2
5.0 3.0 2.5 2.1
1.4 2.1 2.4 2.0
1.3 2.0 2.3 1.2
1.2 1.1 2.2 1.1
  • Type: java.lang.String
  • Since: 2.9
  • Required: No
  • User Property: eclipse.jeeversion

<limitProjectReferencesToWorkspace>

Limit the use of project references to the current workspace. No project references will be created to projects in the reactor when they are not available in the workspace.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: eclipse.limitProjectReferencesToWorkspace
  • Default: false

<linkedResources>

A list of links to local files in the system. A configuration like this one in the pom :
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-eclipse-plugin</artifactId>
  <configuration> 
    <linkedResources> 
      <linkedResource>
        <name>src/test/resources/oracle-ds.xml</name>
        <type>1</type>
        <location>C://jboss/server/default/deploy/oracle-ds.xml</location> 
      </linkedResource>
    </linkedResources> 
  </configuration> 
</plugin>
will produce in the .project :
<linkedResources>
  <link>
    <name>src/test/resources/oracle-ds.xml</name>
    <type>1</type> 
    <location>C://jboss/server/default/deploy/oracle-ds.xml</location>
  </link>
</linkedResources>
  • Type: java.util.List
  • Since: 2.8
  • Required: No

<manifest>

The relative path of the manifest file
  • Type: java.io.File
  • Since: 2.5
  • Required: No
  • User Property: eclipse.manifest
  • Default: ${basedir}/META-INF/MANIFEST.MF

<mavenSession>

(no description)
  • Type: org.apache.maven.execution.MavenSession
  • Since: 2.5
  • Required: No
  • Default: ${session}

<packaging>

The project packaging.
  • Type: java.lang.String
  • Since: 2.5
  • Required: No
  • User Property: project.packaging

<preferStandardClasspathContainer>

If set to true, the standard execution environment matching the compiler settings is set as JRE. If set to false, the JRE matching the configured compiler-plugin executable or JAVA_HOME is selected by name, if it is configured in the workspace.
  • Type: boolean
  • Since: 2.10
  • Required: No
  • User Property: eclipse.preferStandardClasspathContainer
  • Default: false

<projectNameTemplate>

Allows configuring the name of the eclipse projects. This property if set wins over addVersionToProjectName and addGroupIdToProjectName You can use [groupId], [artifactId] and [version] variables. eg. [groupId].[artifactId]-[version]
  • Type: java.lang.String
  • Since: 2.5
  • Required: No
  • User Property: eclipse.projectNameTemplate

<projectnatures>

List of eclipse project natures. By default the org.eclipse.jdt.core.javanature nature plus the needed WTP natures are added. Natures added using this property replace the default list.
<projectnatures>
   <projectnature>org.eclipse.jdt.core.javanature</projectnature>
   <projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
</projectnatures>
  • Type: java.util.List
  • Since: 2.5
  • Required: No

<skip>

Skip the operation when true.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: eclipse.skip
  • Default: false

<sourceExcludes>

List of exclusions to add to the source directories on the classpath. Adds excluding="" to the classpathentry of the eclipse .classpath file. [MECLIPSE-104]
  • Type: java.util.List
  • Since: 2.6.1
  • Required: No

<sourceIncludes>

List of inclusions to add to the source directories on the classpath. Adds including="" to the classpathentry of the eclipse .classpath file.

Java projects will always include "**/*.java"

Ajdt projects will always include "**/*.aj"

[MECLIPSE-104]

  • Type: java.util.List
  • Since: 2.6.1
  • Required: No

<spring>

Spring configuration placeholder
  <spring>
    <version>1.0/2.0</version>
    <file-pattern>applicationContext-*.xml</file-pattern>
    <basedir>src/main/resources</basedir>
  </spring>
  • Type: java.util.Map
  • Since: 2.5
  • Required: No

<struts>

Allow declaration of struts properties for MyEclipse
  <struts>
    <version>1.2.9</version>
    <servlet-name>action</servlet-name>
    <pattern>*.do</pattern>
    <base-package>1.2.9</base-package>
  </struts>
  • Type: java.util.Map
  • Since: 2.5
  • Required: No

<testSourcesLast>

Whether to place test resources after main resources. Note that the default behavior of Maven version 2.0.8 or later is to have test dirs before main dirs in classpath so this is discouraged if you need to reproduce the maven behavior during tests. The default behavior is also changed in eclipse plugin version 2.6 in order to better match the maven one. Switching to "test source last" can anyway be useful if you need to run your application in eclipse, since there is no concept in eclipse of "phases" with different set of source dirs and dependencies like we have in maven.
  • Type: boolean
  • Since: 2.9
  • Required: No
  • User Property: eclipse.testSourcesLast
  • Default: false

<useProjectReferences>

When set to false, the plugin will not create sub-projects and instead reference those sub-projects using the installed package in the local repository
  • Type: boolean
  • Since: 2.5
  • Required: Yes
  • User Property: eclipse.useProjectReferences
  • Default: true

<workspace>

This eclipse workspace is read and all artifacts detected there will be connected as eclipse projects and will not be linked to the jars in the local repository. Requirement is that it was created with the similar wtp settings as the reactor projects, but the project name template my differ. The pom's in the workspace projects may not contain variables in the artefactId, groupId and version tags. If workspace is not defined, then an attempt to locate it by checking up the directory hierarchy will be made.
  • Type: java.io.File
  • Since: 2.5
  • Required: No
  • User Property: eclipse.workspace

<wtpContextName>

JEE context name of the WTP module. ( ex. WEB context name ). You can use "ROOT" if you want to map the webapp to the root context.
  • Type: java.lang.String
  • Since: 2.5
  • Required: No
  • User Property: wtpContextName

<wtpapplicationxml>

Must the application files be written for ear projects in a separate directory.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: eclipse.wtpapplicationxml
  • Default: false

<wtpdefaultserver>

What WTP defined server to use for deployment informations.
  • Type: java.lang.String
  • Since: 2.5
  • Required: No
  • User Property: eclipse.wtpdefaultserver

<wtpmanifest>

Must the manifest files be written for java projects so that that the jee classpath for wtp is correct.
  • Type: boolean
  • Since: 2.5
  • Required: No
  • User Property: eclipse.wtpmanifest
  • Default: false

<wtpversion>

The version of WTP for which configuration files will be generated. The default value is "none" (don't generate WTP configuration), supported versions are "R7", "1.0", "1.5" and "2.0"
  • Type: java.lang.String
  • Since: 2.5
  • Required: No
  • User Property: wtpversion
  • Default: none

Back to top

Version: 3.2.1-SNAPSHOT. Last Published: 2024-03-06.