mojohaus / mojohaus/exec-maven-plugin
setting MAVEN_OPTS in environment variables does not work
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 191
- Forks
- 111
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
Description
per the documentation:
Any VM specific option that you want to pass to the executed class must be passed to the Maven VM using the MAVEN_OPTS environment variable.
so I did just that:
<configuration>
...
<environmentVariables>
<MAVEN_OPTS>--enable-preview --add-modules jdk.incubator.vector -ea </MAVEN_OPTS>
</environmentVariables>
</configuration>
</execution>
except that it does not work.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked exec-maven-plugin usage documentation and the configuration shown in the issue, then reproduce the environmentVariables setup in a small Maven build. Trace whether MAVEN_OPTS reaches the Maven VM or the executed class; done means the documented VM options are applied to the executed class, with a regression test if the project provides an appropriate test location.
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
- Needs clarification
- Newbie friendliness
- 30/100