apache / apache/maven-mvnd

Unable to specify custom trust store via JVM arguments

Open
#1,547 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
3.5k
Forks
250
Avg merge
16h 22m
Merged PRs (30d)
36

Description

### Affected version

1.0.3

### Bug description

I did a manual install on RHEL by extracting the zip of version 1.0.3.
I specified my custom trust store JVM arguments already in different places: $MVND_HOME/conf/mvnd.properties, ~/.m2/mvnd.properties
I put the following property:
`mvnd.jvmArgs = -Djavax.net.ssl.trustStore=/home/user/trust/truststore.jks -Djavax.net.ssl.trustStoreType=JKS -Djavax.net.ssl.trustStorePassword=`

I also tried to provide the `-Dmvnd.jvmArgs="-Djavax.ssl.... "` property to the 'mvnd' command directly.
But whatever I do, the trust store is not getting picked up by the daemon and my build keeps failing with an PKIX error.
I've made sure that I stopped the daemon before modifying the properties.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how mvnd.jvmArgs is read from $MVND_HOME/conf/mvnd.properties and ~/.m2/mvnd.properties, then compare that with the -Dmvnd.jvmArgs command-line entry point. Reproduce the PKIX failure with the supplied trustStore arguments and confirm the daemon receives them and the build succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.