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
- Host: GitHub
- URL: https://github.com/markiewb/bigmultimoduleforidea
- Owner: markiewb
- Created: 2017-01-02T13:21:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-02T13:57:56.000Z (over 9 years ago)
- Last Synced: 2025-06-02T06:06:25.608Z (about 1 year ago)
- Topics: intellij, intellij-idea, maven, maven-multimodule, sample
- Language: Java
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
* 
3. In the Maven Projects Window
* Right click on the root module (named "aggregator (root)") and choose "Generate Sources and Update Folders"
* 
* 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

# 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
* 
2. Same as above