An open API service indexing awesome lists of open source software.

https://github.com/markiewb/bigmultimoduleforidea

A Maven multimodule with generated-sources and a long-running WAR-module. Tests the Maven support of IntellJ IDEA 2016.3.x
https://github.com/markiewb/bigmultimoduleforidea

intellij intellij-idea maven maven-multimodule sample

Last synced: 26 days ago
JSON representation

A Maven multimodule with generated-sources and a long-running WAR-module. Tests the Maven support of IntellJ IDEA 2016.3.x

Awesome Lists containing this project

README

          

# bigmultimoduleForIDEA
A Maven multimodule with generated-sources and a long-running WAR-module. Tests the Maven support of IntellJ IDEA 2016.3.x

# Prequisites
Build the wait-maven-plugin which is also included in this repo!

# How to import and detect generated sources
1. Load the project via File-> Open -> ... -> pom.xml (Let IDEA open it in a new window)
2. File -> Settings -> ... -> Maven Importing
* Generated source folders: "subdirectories of target/generated sources"
* Phase for folders update: "process-test-resources"
* ![Options](https://github.com/markiewb/bigmultimoduleForIDEA/blob/master/doc/MavenOptions.png?raw=true)
3. In the Maven Projects Window
* Right click on the root module (named "aggregator (root)") and choose "Generate Sources and Update Folders"
* ![GenerateSourcesAtRoot](https://github.com/markiewb/bigmultimoduleForIDEA/blob/master/doc/GenerateSourcesAtRoot.png?raw=true)
* Do not click the toolbar button "Generate Sources and Update Folders For All Projects". It takes twice as long https://youtrack.jetbrains.com/issue/IDEA-166132

EXPECTED:
* target/generated-resources
* target/generated-test-resources
* target/generated-sources
* target/generated-test-sources

are detected by IDEA in the correct build scope

![detectedGeneratedSources](https://github.com/markiewb/bigmultimoduleForIDEA/blob/master/doc/detectedGeneratedSources.png?raw=true)

# How to import and detect generated sources but skip the long running import of the war module
1. Uncheck the profile "includingBigWar" in the Maven Projects view
* ![bigwarProfile](https://github.com/markiewb/bigmultimoduleForIDEA/blob/master/doc/bigwarProfile.png?raw=true)
2. Same as above