Eclipse Properties Vincent Massol dIon Gillard
PropertyOptional?Description
maven.eclipse.workspace Yes Location of the Eclipse workspace that holds your configuration and source.

On Windows, this will be the workspace directory under your eclipse installation. For example, if you installed eclipse into c:\eclipse, the workspace is c:\eclipse\workspace.

If this parameter is specified, the external-tools goal will use it as the destination to copy the generated file.

maven.eclipse.junit Yes (default=3.8.1) The version of JUnit you want added to your project. If this property is set to none then JUnit will not be added to your build classpath.
maven.eclipse.output.dir Yes (default=${maven.build.dest) The directory to which Eclipse should output its classes. By default this is the same directory as Maven generates its code however this can be changed so that maven clean does not interfere with Eclipse's build.
maven.eclipse.test.output.dir Yes (default=${maven.test.dest} defined in test plugin) The directory to which Eclipse should output its test classes.
maven.eclipse.classpath.include Yes Comma delimited list of additional source directories to include in the classpath, like src/conf.
maven.eclipse.resources.addtoclasspath Yes Specify whether to include the resources defined in the POM in the Eclipse classpath. Defaults to false.
maven.eclipse.conclasspath Yes Comma delimited list of additional kind "con" path to include in the classpath description file like org.eclipse.pde.core.requiredPlugins
maven.eclipse.buildcommands Yes Comma delimited list of additional build commands to include in the project description file. The java builder will automatically be added if a java source dir is set (if not already specified in the list).
maven.eclipse.projectnatures Yes Comma delimited list of additional project natures to include in the project description file. These natures will be added after the java nature (if the java nature is not already specified in the list).
maven.eclipse.project.name Yes Name of the generated project on Eclipse. Defaults to ${artifactId}.
maven.gen.src Yes (default=${maven.build.dir}/generated-sources) The directory that generated source code is placed. Maven will select any directories under this as source code. This prevents the generated source from being removed whenever Eclipse does a clean build, and allows the generated code to be clearly in the build directory.
maven.eclipse.src.extension Yes (default=zip) The extension used for source attachments. Deprecated, source attachment are expected now at MAVEN_REPO${groupId}/java-sources/${artifactId}-${version}-sources.jar
maven.eclipse.src.downlad Yes (default=true) Specify if java sources archives need to be downloaded from the configured remote repositories. Defaults to true.

Note that you will need to defined a MAVEN_REPO Java Classpath variable in Eclipse. This is done by selecting the Window menu, then Preferences. In the dialog box, select the Java node and then Classpath Variables. Create a new variable named MAVEN_REPO that points to your local Maven repository.