Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add usage support in IntelliJ IDEA #307

Open
hellnn opened this issue Aug 4, 2021 · 6 comments
Open

Add usage support in IntelliJ IDEA #307

hellnn opened this issue Aug 4, 2021 · 6 comments

Comments

@hellnn
Copy link

hellnn commented Aug 4, 2021

Add support IntelliJ IDEA using settings maven from its settings, for example using param -Dmaven.home

@aleksandr-m
Copy link
Owner

It is not clear. Can you be more specific?

@hellnn
Copy link
Author

hellnn commented Aug 5, 2021

In most cases, when launching maven tasks, the built-in maven for IDEA is used, so it would be convenient to use the plugin through it

@aleksandr-m
Copy link
Owner

You can use mvnExecutable to use different maven. Is this enough?

@hellnn
Copy link
Author

hellnn commented Sep 2, 2021

Yes, I can try, but I think, will be convenient if plugin will use -Dmaven.home variable when it is specified

@aleksandr-m
Copy link
Owner

@hellnn So this is only about using different maven executable for internal maven commands? Take a look at how plugin handles maven wrapper - here. Is that what you want to handle for IDEA somehow?

@hellnn
Copy link
Author

hellnn commented Sep 14, 2021

Yes, IDEA sets -Dmaven.home varable at executing internal maven goals

For example:

"C:\Program Files\Java\jdk-11.0.6\bin\java.exe" -Dmaven.multiModuleProjectDirectory=... "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2021.2\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2021.2\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2021.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2021.2\lib\idea_rt.jar=56192:C:\Program Files\JetBrains\IntelliJ IDEA 2021.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2021.2\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2021.2\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2021.2.1 clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants