idea:project

Full name:

org.apache.maven.plugins:maven-idea-plugin:2.2:project

Description:

Creates the project file (*.ipr) for IntelliJ IDEA.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Invokes the execution of the lifecycle phase generate-sources prior to executing itself.

Optional Parameters

Name Type Since Description
ideaVersion String - Specify the version of IDEA to target. This is needed to identify the default formatting of project-jdk-name used by IDEA. Currently supports 4.x and 5.x.

This will only be used when parameter jdkName is not set. Default value is: 5.x.
jdkLevel String - Specify the version of the JDK to use for the project for the purpose of enabled assertions and Java 5.0 language features. The default value is the specification version of the executing JVM.
jdkName String - Specify the name of the registered IDEA JDK to use for the project.
overwrite boolean - Whether to update the existing project files or overwrite them. Default value is: false.
wildcardResourcePatterns String - Specify the resource pattern in wildcard format, for example "?*.xml;?*.properties". Currently supports 4.x and 5.x. Because IDEA doesn't distinguish between source and resources directories, this is needed. The default value corresponds to any file without a java extension. Please note that the default value includes package.html files as it's not possible to exclude those. Default value is: !?*.java.

Parameter Details

ideaVersion:

Specify the version of IDEA to target. This is needed to identify the default formatting of project-jdk-name used by IDEA. Currently supports 4.x and 5.x.

This will only be used when parameter jdkName is not set.
  • Type: java.lang.String
  • Required: No
  • Expression: ${ideaVersion}
  • Default: 5.x

jdkLevel:

Specify the version of the JDK to use for the project for the purpose of enabled assertions and Java 5.0 language features. The default value is the specification version of the executing JVM.
  • Type: java.lang.String
  • Required: No
  • Expression: ${jdkLevel}

jdkName:

Specify the name of the registered IDEA JDK to use for the project.
  • Type: java.lang.String
  • Required: No
  • Expression: ${jdkName}

overwrite:

Whether to update the existing project files or overwrite them.
  • Type: boolean
  • Required: No
  • Expression: ${overwrite}
  • Default: false

wildcardResourcePatterns:

Specify the resource pattern in wildcard format, for example "?*.xml;?*.properties". Currently supports 4.x and 5.x. Because IDEA doesn't distinguish between source and resources directories, this is needed. The default value corresponds to any file without a java extension. Please note that the default value includes package.html files as it's not possible to exclude those.
  • Type: java.lang.String
  • Required: No
  • Expression: ${wildcardResourcePatterns}
  • Default: !?*.java