Integration with JDT

Skip to end of metadata
Go to start of metadata

Maven dependency management is integrated with Eclipse JDT using "Maven Dependencies" classpath container. The Classpath container contains dependency list computed by Maven based on project's pom.xml.

Also see Dependency Management, Resolving artifact sources, Quick Search, Dependency Quick Fix and Developing and debugging Maven plugins.

Supported features

Integration is using project configuration framework to read configuration of the maven-compiler-plugin from Maven pom.xml and configure Eclipse projects according to those settings.

Project configuration is done automatically when Creating Maven projects or when Importing Maven projects. It can be also invoked manually from the "Maven / Update Project Configuration" popup menu.

maven-compiler-plugin

  Name Type Description
source String The -source argument for the Java compiler.
target String The -target argument for the Java compiler.
compilerArgument String Sets the unformatted argument string to be passed to the compiler if fork is set to true. This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.

compilerArguments Map Sets the arguments to be passed to the compiler (prepending a dash) if fork is set to true.
This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.
compilerId String The compiler id of the compiler to use. See thisguide for more information. Default value is javac.
compilerManager CompilerManager Plexus compiler manager.
compilerVersion String Version of the compiler to use, ex. "1.3", "1.5", if fork is set to true.
debug boolean Set to true to include debugging information in the compiled class files. Default value is true.
encoding String The -encoding argument for the Java compiler.
excludes Set A list of exclusion filters for the compiler.
executable String Sets the executable of the compiler to use when fork is true.
failOnError boolean Indicates whether the build will continue even if there are compilation errors; defaults to true. Default value is true.

fork boolean Allows running the compiler in a separate process. If "false" it uses the built in compiler, while if "true" it will use an executable. Default value is false.
includes Set A list of inclusion filters for the compiler.

maxmem String Sets the maximum size, in megabytes, of the memory allocation pool, ex. "128", "128m" if fork is set to true.

meminitial String Initial size, in megabytes, of the memory allocation pool, ex. "64", "64m" if fork is set to true.

optimize boolean Set to true to optimize the compiled code using the compiler's optimization methods. Default value is false.
outputFileName String Sets the name of the output file when compiling a set of sources to a single file.
showDeprecation boolean Sets whether to show source locations where deprecated APIs are used. Default value is false.
showWarnings boolean Set to true to show compilation warnings. Default value is false.
staleMillis int Sets the granularity in milliseconds of the last modification date for testing whether a source needs recompilation. Default value is 0.
verbose boolean Set to true to show messages about what the compiler is doing. Default value is false

Labels

jdt jdt Delete
m2eclipse m2eclipse Delete
maven maven Delete
eclipse eclipse Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.