目前我正在尝试将我们的项目升级到 Java 17。但是因为我们需要使用“ javax.smartcardio ”,所以我们需要将其添加为模块,因为我了解到依赖项已被删除。我是整个模块的新手,我似乎无法理解发生了什么。
我正在使用spring-boot-starter-parent ,版本 2.6.2。
使用 jdeps 我生成了需要添加的模块列表,但是当我在 module-info.java 文件中添加任何模块时,我只能找到以java .----- 或jdk .--开头的模块-- . 任何其他模块都会给我错误:
“找不到模块:spring.boot ”
或者
“找不到模块:org.apache.logging.log4j ”
现在我正在关注这个页面:https ://blog.idrsolutions.com/how-to-create-a-module-info-file-with-jdeps在某些时候它说:
" The first thing to do is to add in this case is the JavaFX modules. These can be downloaded from here and adding this to modulepath fixes the issue. There is some more documentation on how to use here.
"
这是否意味着我需要查找每个文件并使用 CLI 手动将其添加到我的项目中?另外,如果我想提高我的依赖版本,这将如何工作?
以下是 jdeps 找不到的所有内容的列表:
com.project.uuu -> org.apache.logging.log4j.LogBuilder 未找到
com.project.uuu -> org.apache.logging.log4j.LogManager 未找到
com.project.uuu -> org.apache.logging.log4j.Logger 未找到
com.project.project -> org.springframework.beans.factory.annotation.Autowired 未找到
com.project.project -> org.springframework.boot.SpringApplication 未找到
com.project.project -> org.springframework.boot.autoconfigure.SpringBootApplication 未找到
com.project.project -> org.springframework.context.ConfigurableApplicationContext 未找到
com.project.project -> org.springframework.context.annotation.PropertySource 未找到
com.project.hhh.xxx -> 未找到个人.dependency.external.project.Class2
com.project.hhh.xxx -> 未找到个人.dependency.external.project.Class
com.project.hhh.xxx -> 未找到个人.dependency.external.project.Class$SubType
com.project.hhh.xxx -> javax.annotation.PostConstruct 未找到
com.project.hhh.xxx -> org.apache.logging.log4j.LogBuilder 未找到
com.project.hhh.xxx -> org.apache.logging.log4j.LogManager 未找到
com.project.hhh.xxx -> org.apache.logging.log4j.Logger 未找到
com.project.hhh.xxx -> org.springframework.beans.factory.annotation.Autowired 未找到
com.project.hhh.xxx -> org.springframework.beans.factory.annotation.Value 未找到
com.project.hhh.xxx -> org.springframework.jms.annotation.JmsListener 未找到
com.project.hhh.xxx -> org.springframework.stereotype.Component 未找到
com.project.hhh.xxx$1 -> personal.dependency.external.project.Class 未找到
com.project.hhh.xxx$1 -> personal.dependency.external.project.Class$SubType 未找到
com.project.hhh.eee -> 未找到个人.dependency.external.project.Class2
com.project.hhh.eee -> 个人.dependency.external.project.Class3 未找到
com.project.hhh.eee -> org.apache.logging.log4j.LogBuilder 未找到
com.project.hhh.eee -> org.apache.logging.log4j.LogManager 未找到
com.project.hhh.eee -> org.apache.logging.log4j.Logger 未找到
com.project.hhh.eee -> org.springframework.beans.factory.annotation.Autowired 未找到
com.project.hhh.eee -> org.springframework.beans.factory.annotation.Value 未找到
com.project.hhh.eee -> org.springframework.context.event.EventListener 未找到
com.project.hhh.eee -> org.springframework.jms.JmsException 未找到
com.project.hhh.eee -> org.springframework.jms.core.JmsTemplate 未找到
com.project.hhh.eee -> org.springframework.stereotype.Component 未找到
com.project.hhh.aaa -> javax.jms.ConnectionFactory 未找到
com.project.hhh.aaa -> org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer 未找到
com.project.hhh.aaa -> org.springframework.context.annotation.Bean 未找到
com.project.hhh.aaa -> org.springframework.context.annotation.Configuration 未找到
com.project.hhh.aaa -> org.springframework.jms.config.DefaultJmsListenerContainerFactory 未找到
com.project.hhh.aaa -> org.springframework.jms.config.JmsListenerContainerFactory 未找到
com.project.hhh.www -> org.springframework.context.ApplicationContext 未找到
com.project.hhh.www -> org.springframework.context.ApplicationContextAware 未找到
com.project.hhh.www -> org.springframework.stereotype.Component 未找到
org.springframework.boot.loader.jarmode.JarModeLauncher -> org.springframework.core.io.support.SpringFactoriesLoader 未找到
org.springframework.boot.loader.jarmode.JarModeLauncher -> org.springframework.util.ClassUtils 未找到