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

10 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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?

0
Comment actions Permalink

I cannot understand the description, please attach a screenshot.
Thanks.

0
Comment actions Permalink

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
0
Comment actions Permalink

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.

0
Comment actions Permalink

OK, now I see.

Can you please create a YouTrack request for this?
Don't forget to include the screenshot ).

Thanks.

0
Comment actions Permalink

Sure thing.

http://youtrack.jetbrains.net/issue/IDEA-57216

If there's anything lacking let me know.

0
Comment actions Permalink

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.

1

Please sign in to leave a comment.