gpt4 book ai didi

java - Maven 从 POM.xml 中选择了不正确的 JIBX 版本

转载 作者:行者123 更新时间:2023-12-02 10:49:56 27 4
gpt4 key购买 nike

我有一个在 JAVA 7 上顺利运行的 Maven 项目,但最近我想将所有内容从 1.7 迁移到 JDK 1.8,但由于 JIBX 库,我开始收到错误跟踪。在类似的线程上:[检查此 StackOverflow 链接][1]- 我发现只有 JIBX 版本 1.3.0 或更高版本与 JDK 8 兼容。

所以我在 POM.xml 中进行了以下更改:

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<ejb-compile.dependency.ant-nodeps.version>1.6.5</ejb-compile.dependency.ant-nodeps.version>
<jdk-home>${jdk16.home}</jdk-home>
<maven.ejb.skip>true</maven.ejb.skip>
<jaxp.version>1.3</jaxp.version>
<jibx.version>1.3.1</jibx.version>
<distributed.context.api.version>1.1.12</distributed.context.api.version>
<distributed.context.impl.version>1.1.12</distributed.context.impl.version>
<generic.context.version>0.1.2</generic.context.version>
<something.uf.version>2.5.9</something.uf.version>
<!-- JConnect -->
<jconnect.version>0.11.1</jconnect.version>
<jconnect.majorversion>0.11</jconnect.majorversion>

但是我得到了以下堆栈跟踪,并且我不知道它从哪里选择 jibx 1.2.2,如错误中所示:

[INFO]
[INFO] maven-jibx-plugin:1.2.2-AMADEUS-3:bind (default) connectors-verbhandler-1axml
Downloading from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-tools/1.2.2/jibx-tools-1.2.2.pom
Downloaded from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-tools/1.2.2/jibx-tools-1.2.2.pom (2.1 kB at 4.7 kB/s)
Downloading from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-schema/1.2.2/jibx-schema-1.2.2.pom
Downloaded from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-schema/1.2.2/jibx-schema-1.2.2.pom (1.8 kB at 4.2 kB/s)
Downloading from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-run/1.2.2/jibx-run-1.2.2.pom
Downloaded from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-run/1.2.2/jibx-run-1.2.2.pom (1.7 kB at 3.9 kB/s)
Downloading from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-bind/1.2.2/jibx-bind-1.2.2.pom
Downloaded from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-bind/1.2.2/jibx-bind-1.2.2.pom (1.8 kB at 4.1 kB/s)
Downloading from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-extras/1.2.2/jibx-extras-1.2.2.pom
Downloaded from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-extras/1.2.2/jibx-extras-1.2.2.pom (1.7 kB at 3.9 kB/s)
Downloading from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-tools/1.2.2/jibx-tools-1.2.2.jar
Downloading from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-extras/1.2.2/jibx-extras-1.2.2.jar
Downloading from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-run/1.2.2/jibx-run-1.2.2.jar
Downloading from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-bind/1.2.2/jibx-bind-1.2.2.jar
Downloading from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-schema/1.2.2/jibx-schema-1.2.2.jar
Downloaded from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-extras/1.2.2/jibx-extras-1.2.2.jar (49 kB at 40 kB/s)
Downloaded from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-run/1.2.2/jibx-run-1.2.2.jar (136 kB at 107 kB/s)
Downloaded from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-schema/1.2.2/jibx-schema-1.2.2.jar (271 kB at 112 kB/s)
Downloaded from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-tools/1.2.2/jibx-tools-1.2.2.jar (470 kB at 145 kB/s)
Downloaded from artifact.repository: http://repository.rnd.amadeus.net/mvn-public/org/jibx/jibx-bind/1.2.2/jibx-bind-1.2.2.jar (435 kB at 106 kB/s)
[INFO] Running JiBX binding compiler (single-module mode) on 1 binding file(s)
[INFO] ----------------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------
[INFO] Total time: 33.787 s
[INFO] Finished at: 2018-09-10T12:41:15+05:30
[INFO] ----------------------------------
[ERROR] Failed to execute goal org.jibx:maven-jibx-plugin:1.2.2-AMADEUS-3:bind (default) on project connectors-verbhandler-1axml: Error
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [HELP 1] htto:/cwiki.apache.org/confluence/displav/MAVEN/MoToExecutionException
[ERROR] After correcting the problems, you can resume the build with the command

我还在工作区中搜索了 1.2.2 声明,但找不到任何内容,在 .m2 文件夹的 settings.xml 中尝试过,但仍然没有帮助。有人可以在这里提供任何线索吗?谢谢

由于问题字符限制,这里是 POM.xml 的完整链接 - https://ideone.com/IfN9FK

最佳答案

声明 jib 依赖项时,您没有指定 jibx 版本:

<plugin>
<groupId>org.jibx</groupId>
<artifactId>maven-jibx-plugin</artifactId>
<version>1.3.0</version> <!-- Here! -->
<configuration>
<directory>src/main/jibx</directory>
<includes>
<includes>*.xml</includes>
</includes>
<verbose>${jibx.verbose}</verbose>
</configuration>
<executions>
<execution>
<goals>
<goal>bind</goal>
</goals>
</execution>
</executions>
</plugin>

关于java - Maven 从 POM.xml 中选择了不正确的 JIBX 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52254078/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com