Issue
I'm new to Maven and IntelliJ. I can run mvn test-compile
from the command line fine, but I want to make it an entry in the Maven Lifecycle section of IntelliJ, as below.
Currently I have to either do the 'test' or 'package' option, but ideally I simply want to compile everything in my tests folder.
Is this possible? I thought it might be an explicit entry in the pom file, but searching I couldn't find anything to help.
Solution
- Plugins -> compiler -> compiler:testCompile
- Or disable Show Basic Phases Only option in Maven tool window settings:
Answered By - Alexandr Arhipov
Answer Checked By - Terry (JavaFixing Volunteer)