-1

I am experiencing the following issue in IntelliJ's Maven Runner:

When I specify a trust store via Settings -> Maven Runner -> VM Options

and enter the TrustStore there (I need this for a special plugin), the parameters javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword are passed to the Maven Runner. However, Maven then interprets the parameter as a parameter and I get the following error message:

Caused by: java.nio.file.NoSuchFileException: C:\MyKeystores\my.keystore  -Djavax.net.ssl.trustStorePassword=abcd

The call from IntelliJ looks like this:

cmd.exe /c "C:\dev\programs\maven\apache-maven-3.9.9\bin\mvn.cmd -Didea.version=2025.2 "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA\plugins\maven\lib\maven-event-listener.jar" -Djansi.passthrough=true -Dstyle.color=always "-Djavax.net.ssl.trustStore=C:\MyKeystores\my.keystore  -Djavax.net.ssl.trustStorePassword=abcd" com.my:super-plugin:1.2.3:generate-stubs"

Any ideas?

4
  • 1
    Does it help if you disable maven.use.scripts option in Help | Find Action | Registry? Commented Oct 15 at 14:18
  • Yes this works fine. Thanks for your help. Does disabling this has some cons? Commented Oct 17 at 11:20
  • This is a legacy way of running Maven. Please file a bug at youtrack.jetbrains.com/newIssue?project=IDEA so that we can fix quoting of the VM options with spaces. Commented Oct 18 at 8:02
  • Done: youtrack.jetbrains.com/issue/IDEA-381163/… Commented Oct 24 at 5:52

1 Answer 1

0

Seems to be a bug in IntelliJ Maven Runner.

Disable maven.use.scripts helps but than the maven runner is used the legacy way.

Raised ticket:
https://youtrack.jetbrains.com/issue/IDEA-381163/Maven-Runner-did-not-parse-arguments-correct?draftId=25-7028245

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.