apache / apache/maven-jdeps-plugin
[MJDEPS-25] jdeps commandline parameters are not correctly constructed
- Dominant language
- Java
- Stars
- 18
- Forks
- 18
- Avg merge
- 9h 12m
- Merged PRs (30d)
- 5
Description
**[Kai Hofmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=powerstat)** opened **[MJDEPS-25](https://issues.apache.org/jira/browse/MJDEPS-25?redirect=false)** and commented
In my pom.xml I used the following plugin configuration:
\
\org.apache.maven.plugins\
\maven-jdeps-plugin\
\3.1.2\
\
\de.powerstat.phplib.templateengine\
\11\
\true\
\
\
and calling it with mvn jdeps:jdkinternals
Because I am using jdk9 modules, I always got an error message - because of MJDEPS-19/20. During this error message the jdeps commandline will be written as:
[ERROR] Command line was: /bin/sh -c '/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home/bin/jdeps' '-cp' '/Users/powerstat/.m2/repository/org/apache/logging/log4j/log4j-api/2.14.0/log4j-api-2.14.0.jar:/Users/powerstat/.m2/repository/org/apache/logging/log4j/log4j-core/2.14.0/log4j-core-2.14.0.jar' '/Users/powerstat/Documents/dev/TemplateEngine/target/classes'
What I am missing here are two things:
1) --jdk-internals, because I called the plugin with jdeps:jdkinternals!
2) --multi-release 11, as given by my plugin configuration!
So it would be nice to fix these 3 things (MJDEPS-19/20 included).
For testing you could use my project on github: https://github.com/PowerStat/TemplateEngine
---
**Affects:** 3.1.2
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with the provided TemplateEngine project and the shown Maven plugin configuration, then inspect how the maven-jdeps-plugin constructs and logs the jdeps command line for jdeps:jdkinternals. Done means the command includes --jdk-internals, --multi-release 11, and the related MJDEPS-19/20 fixes.
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
- 42/100