add Maven phase (or goal) to the Maven integration in IDEA
Hey,
More specifially I'd like to add Compiler:testCompile to the list. Now I have to do this using a dos box. However I'm unable to find anything in the config panel to do this.
Thanks
请先登录再写评论。
Not sure I understood the problem.
All plugin's goals are available under 'Plugins' node in the Maven Projects tool window, providing that the plugin is mentioned in the <plugins> section in the pom.xml file.
By default there's the compiler:compile phase (or goal, I always mix the two up), which is listed as "compile" under lifecycle. However this doesn't compile the tests and I'd like to have the default goal of compiler:testCompile to the list. And as it's not a plugin (IIRC) but a default goal it should be listed somewhere, right?
I cannot understand the description, please attach a screenshot.
Thanks.
I can use the IDEA Maven integration to do the compiler:compile goal (circle). However there's no listing for compiler:testCompile hence I need to use a dos box to be able to do that. The default compile goal doesn't compile the testcases and I also don't want to compile the testcase every time, just every now and then.
Attachment(s):
testcompile.JPG
This requires me to list the compiler plugin in the plugin section of the build tag. I want to keep my poms as short as possible. I'd like default maven2 behaviour to be enabled by default. But if there's no other way I guess I'll have to.
OK, now I see.
Can you please create a YouTrack request for this?
Don't forget to include the screenshot ).
Thanks.
Sure thing.
http://youtrack.jetbrains.net/issue/IDEA-57216
If there's anything lacking let me know.
Thanks
Have you tried unchecking the 'Show Basic Phases Only' option? It's available in the menu shown by clicking the gear icon in the top right. It should show a test-compile phase that when I run in my project runs the compiler:testCompile goal.