apache / maven-mvnd

Apache Maven Daemon
https://maven.apache.org/
Apache License 2.0
2.94k stars 212 forks source link

Intellij IDEA integration #548

Open winhkey opened 2 years ago

winhkey commented 2 years ago

Hi: It is a good tool. but how to use it in Idea? now i can only run in terminal :D I had thought of using alias mvn to mvnd, but it was not easy.

gnodet commented 2 years ago

My understanding is that Intellij Idea uses a compilation server by default and does not delegate to maven (only when generating sources very specific build steps), so I don't think there's much to gain here.

ppalaga commented 2 years ago

how to use it in Idea?

What exactly would you expect?

krasa commented 2 years ago

Perhaps you would find this plugin useful, but only just as an alternative to manually running goals in a terminal (https://github.com/krasa/MavenHelper/issues/85)

Proper support must be provided by IntelliJ itself - https://youtrack.jetbrains.com/issue/IDEA-264396

zhaoyunxing92 commented 2 years ago

I feel like I can add it like this before I run it

image

winhkey commented 2 years ago

Perhaps you would find this plugin useful, but only just as an alternative to manually running goals in a terminal (krasa/MavenHelper#85)

Proper support must be provided by IntelliJ itself - https://youtrack.jetbrains.com/issue/IDEA-264396

Yes, I have been using maven helper, but it is not support for mvnd, so I made this issue :)

winhkey commented 2 years ago

I feel like I can add it like this before I run it

image

good idea~

fprochazka commented 1 year ago

This is relevant if you want to always build your project using maven and not by the IDEA mechanism - we have a bunch of plugins configured there and its beneficial to be able to build locally the same way its build on CI.

I was able to make it work using a custom bash script, that is invoked as a run configuration, but the problem is that IDEA terminal is doing something with the output (I have Ubuntu) and run that takes 3sec takes about 10sec to render so you have to wait for it to catch up to show you if it was successful. I would expect a native support to work more effectively with IDEA.

krasa commented 1 year ago

@fprochazka Sounds like IntelliJ problem. https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems

fprochazka commented 1 year ago

@krasa I agree, but still, having IDEA plugin that would allow using mvnd instead of mvn/mvnw would be great.

krasa commented 1 year ago

https://youtrack.jetbrains.com/issue/IDEA-275361/Terminal-performance-degradation

Is it producing a lot of text?

fprochazka commented 1 year ago

Yup. I've upvoted about every related issue in their tracker :D but some of them are years old, so it probably won't get fixed any time soon.