Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
486 views
in Technique[技术] by (71.8m points)

java - Why does jdeps issue a warning about a split package?

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 ?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...