我想为多个jar生成一些模块信息,例如spring。当我执行jdeps生成模块信息(包括诸如rxjava之类的可选依赖项)时,如下所示:
jdeps --generate-module-info /Documents/development/vertx/vxms/vxms-demos/vxms-spring-demo/target/moditect --add-modules io.netty.buffer,io.netty.common,reactor.core,org.reactivestreams,io.reactivex.rxjava2,rxjava,rxjava.reactive.streams,jopt.simple,aspectjweaver,annotations,spring.jcl --module-path /Documents/development/vertx/vxms/vxms-demos/vxms-spring-demo/target/modules/netty-buffer-4.1.19.Final.jar:/Documents/development/vertx/vxms/vxms-demos/vxms-spring-demo/target/modules/netty-common-4.1.19.Final.jar:/.m2/repository/io/projectreactor/reactor-core/3.1.7.RELEASE/reactor-core-3.1.7.RELEASE.jar:/.m2/repository/org/reactivestreams/reactive-streams/1.0.2/reactive-streams-1.0.2.jar:/.m2/repository/io/reactivex/rxjava2/rxjava/2.1.13/rxjava-2.1.13.jar:/.m2/repository/io/reactivex/rxjava/1.3.8/rxjava-1.3.8.jar:/.m2/repository/io/reactivex/rxjava-reactive-streams/1.2.1/rxjava-reactive-streams-1.2.1.jar:/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar:/Documents/development/vertx/vxms/vxms-demos/vxms-spring-demo/target/modules/aspectjweaver-1.8.10.jar:/.m2/repository/org/jetbrains/kotlin/kotlin-reflect/1.2.41/kotlin-reflect-1.2.41.jar:/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.2.41/kotlin-stdlib-1.2.41.jar:/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar:/Documents/development/vertx/vxms/vxms-demos/vxms-spring-demo/target/modules/spring-jcl-5.0.6.RELEASE.jar /.m2/repository/org/springframework/spring-core/5.0.6.RELEASE/spring-core-5.0.6.RELEASE.jar
我收到这样的错误:
Error: Module rxjava.reactive.streams contains package rx, module rxjava exports package rx to rxjava.reactive.streams
现在,我想排除或过滤lik rxjava或kotlin模块,因为运行应用程序不需要它们。根据jdeps的扩展,我可以添加-filter regex
....因此,使用-filter rxjava
我仍然会得到Error: Modules rxjava and rxjava.reactive.streams export package rx to module kotlin.stdlib
。所以问题是,如何在生成module-info的同时定义几个jdeps忽略的模块?
Thx
安迪