Camel 无法执行目标cxf-codegen-plugin:3.2.4:wsdl 2 java(generate-sources)项目OAS:org.apache.cxf.helpers.JavaUtils.isJava9Compatible()Z

vshtjzan  于 2023-05-28  发布在  Apache
关注(0)|答案(1)|浏览(131)

我已经尝试将编译器和兼容性从1.8更改为11.0,但没有更改。我怀疑这与Karaf(4.3)的版本以及与该版本相关的库/包/包有关。
所以问题是我能不能改变cxf的版本,让代码生成器在karaf 4.3环境下工作。不幸的是,我不能升级到更高版本的卡拉夫由于现有的代码基础上的当前版本。

C:\Users\MO Tec\git\OracleAtomicService\OracleAtomicService>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< ph.edu.dlsu.esb:OracleAtomicService >-----------------
[INFO] Building Oracle Atomic Service Soap 1.0.0-SNAPSHOT
[INFO] -------------------------------[ bundle ]-------------------------------
Downloading from maven-central: https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
Downloading from jboss-public: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
Downloaded from maven-central: https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml (1.8 kB at 810 B/s)
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-surefire-plugin/maven-metadata.xml from/to jboss-public (https://repository.jboss.org/nexus/content/groups/public): Transfer failed for https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
Downloading from maven-central: https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloading from jboss-public: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloaded from maven-central: https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (663 B at 1.3 kB/s)
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-install-plugin/maven-metadata.xml from/to jboss-public (https://repository.jboss.org/nexus/content/groups/public): Transfer failed for https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloading from jboss-public: https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloading from maven-central: https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloaded from maven-central: https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (749 B at 1.4 kB/s)
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-deploy-plugin/maven-metadata.xml from/to jboss-public (https://repository.jboss.org/nexus/content/groups/public): Transfer failed for https://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ OracleAtomicService ---
[INFO] Deleting C:\Users\MO Tec\git\OracleAtomicService\OracleAtomicService\target
[INFO]
[INFO] --- cxf-codegen-plugin:3.2.4:wsdl2java (generate-sources) @ OracleAtomicService ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.250 s
[INFO] Finished at: 2021-06-13T08:23:04+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java (generate-sources) on project OracleAtomicService: org.apache.cxf.helpers.JavaUtils.isJava9Compatible()Z -> [Help 1]
[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] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
emeijp43

emeijp431#

我有一个类似的问题,这是通过修复我的VPN解决。
在浏览器窗口中测试wsdl是否可用。

相关问题