idea-maven-plugin creates IDEA workspace files .iml, .ipr and .iws with your own settings based only on project structure and given profile.
- mavenThreads param (default is 4)
- mavenDirectory will be set automatically (MAVEN_HOME env. var. is required)
- buildProcessHeapSize param (default is 1536)
- parallel compiling will be set to true by default
To change any of these params edit your root pom.xml, by adding an appropriate node inside the <configuration>
node.
Example: <mavenThreads>8</mavenThreads>
Maven Integration (build-in plugin to open maven projects in IDEA) is a good choice when you just want to create a project from scratch. If you want some specific project settings to take place, then you have to set it up manually. Unfortunately, Maven Integration doesn't have any configuration file, it just opens your project with default settings. If you want your own, this plugin for you.
IDEA Maven Plugin is not deployed to Maven Central yet, so you have to:
-
mvn install this plugin in your local repo as jar
-
run the following in a directory with pom.xml (root pom)
mvn com.github.zhve:idea-maven-plugin:3.0b1-patched:idea
If you want to use non default settings, save idea.bat to your project root, edit parameters, and run:
Create workspace: idea idea
Delete workspace: idea clean
COMMON
Parameter name | Description | Default value |
---|---|---|
jdkName | Name of the registered IDEA SDK | 1.7 |
jdkLevel | Name of the project language level | JDK_1_7 |
wildcardResourcePatterns | Resource pattern in wildcard format, for example ?*.xml;?*.properties | !?*.java |
compileInBackground | Enable/disable compilation in background | true |
assertNotNull | Enable/disable adding assertion for @NotNull at run-time | false |
PROJECT
Parameter name | Description | Default value |
---|---|---|
autoscrollToSource | Autoscroll to Source (Project Pane) | false |
autoscrollFromSource | Autoscroll from Source (Project Pane) | false |
buildProcessHeapSize | Build Process Heap Size (Project Pane) | 1536 |
mavenThreads | Maven Threads Param (Maven Settings pane) | 4 |
hideEmptyPackages | Compact Empty Middle Packages (Project Pane) | true |
sortByType | Sort by Type (Project Pane) | false |
optimizeImportsBeforeCommit | Optimize imports before commit | true |
reformatCodeBeforeCommit | Reformat code before commit | false |
performCodeAnalysisBeforeCommit | Perform code analysis before commit | false |
JEE
Parameter name | Description | Default value |
---|---|---|
applicationServerTitle | Run/Debug Configuration menu item | [empty] |
applicationServerName | Application server: Tomcat or Jetty | Tomcat |
applicationServerVersion | Full version of the application server | 7.0.54 |
applicationServerFullName | Full name of the application server | [empty] |
selectedWarArtifactId | Selected configuration in Run/Debug menu | [empty] |
vmParameters | VM parameters for the application server | [empty] |
openInBrowser | On/Off browser auto launch | false |
openInBrowserUrl | Start the browser at this url | http://localhost:8080 |
deploymentContextPath | deployment application context path | / |
assembleModulesIntoJars | On/Off assembling modules to jars | true |
GAE
Parameter name | Description | Default value |
---|---|---|
gaeHome | Google App Engine Java SDK home directory | [empty] |