I have a simple non-modular jar file main.jar
that depends on libA.jar
and libB.jar
. These three jar files all reside in the current directory. I want jdeps (version 15.0.1) to generate a module-info.java
file for main.jar
. Here's my shell command (using cmd.exe on Windows):
jdeps --module-path . --add-modules=ALL-MODULE-PATH --generate-module-info . main.jar
This command indeed produces the desired module-info.java
file but also issues this warning:
Warning: split package: org.example.main file:///D:/Temp/./main.jar main.jar
writing to .mainmodule-info.java
The package org.example.main
does only exist in main.jar
- so I reckon there should be no warning.
Any hints as to why jdeps does see a problem here ?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…