idea-maven-plugin creates IDEA workspace files .iml, .ipr and .iws with your own settings based only on project structure and given profile.
Maven Integration (build-in plugin to open maven projects in IDEA) is a good choice when you just want to open a project from scratch. if you want specific project settings you have to set its up manually. Maven Integration doesn't have any configuration file, it just opens your project with default settings. If you want your own, it's plugin for you.
IDEA Maven Plugin is deployed to Maven Central and you can simple run
mvn com.github.zhve:idea-maven-plugin:3.0b1: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 |
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] |