idea:project

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

Mojo Attributes:

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

Optional Parameters

Name Type Description
artifactFactory ArtifactFactory No description.
artifactMetadataSource ArtifactMetadataSource No description.
artifactResolver ArtifactResolver No 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

artifactFactory

No Description.

  • Type: org.apache.maven.artifact.factory.ArtifactFactory
  • Required: No

artifactMetadataSource

No Description.

  • Type: org.apache.maven.artifact.metadata.ArtifactMetadataSource
  • Required: No

artifactResolver

No Description.

  • Type: org.apache.maven.artifact.resolver.ArtifactResolver
  • Required: No

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