我有一个命令来打印jdeps输出。
"C:\Users\test\jdk-15.0.2+7_zip_unzip\bin\jdeps.exe" --print-module-deps --multi-release="11" -cp C:\Users\test\.m2\repository\org\hibernate\hibernate-core\5.4.23.Final\hibernate-core-5.4.23.Final.jar -recursive "mytest.jar"以逗号格式,即jar1.jar,jar2.jar,.
但我得到的只是
org.springframework.cglib.transform.AbstractProcessTask -> org.apache.tools.ant.BuildException not found
org.springframework.cglib.transform.AbstractProcessTask -> org.apache.tools.ant.DirectoryScanner not found
org.springframework.cglib.transform.AbstractProcessTask -> org.apache.tools.ant.Project not found
org.springframework.cglib.transform.AbstractProcessTask -> org.apache.tools.ant.Task not found
org.springframework.cglib.transform.AbstractProcessTask -> org.apache.tools.ant.types.FileSet not found
org.springframework.core.CoroutinesUtils -> kotlin.Metadata not found
org.springframework.core.CoroutinesUtils -> kotlin.coroutines.Continuation not found
org.springframework.core.CoroutinesUtils -> kotlin.coroutines.CoroutineContext not found我做错什么了?
更新1
--print-module-deps
Same as --list-reduced-deps with printing a comma-separated list of module dependences. The output can be used by jlink --add-modules to create a custom image that contains those modules and their transitive dependences.所以,我希望输出是这样的
java.base,java.compiler,java.naming,java.security.jgss,java.security.sasl,java.sql,jdk.management,jdk.unsupported发布于 2021-01-24 19:01:34
所以,我想我理解为什么我有这个输出。
出于某种原因,--print-module-deps选项也会在模块上打印出它未能找到的行,这就是为什么我没有看到逗号分隔的输出,如果您尝试使用相同的命令并添加一个--ignore-missing-deps选项,您将看到一个逗号分隔的列表。
https://stackoverflow.com/questions/65871039
复制相似问题