java - 构建项目时发生 Maven MojoExecutionException
问题描述
我正面临这个问题,当我使用 Maven 部署我的应用程序时,请提出一些解决方案。
错误日志
[ERROR] Failed to execute goal org.apache.cxf:cxf-xjc-plugin:3.1.0:xsdtojava (generate-xsd-sources) on project coin-model: Could not create runtime jar: The system cannot find the path specified -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cxf:cxf-xjc-plugin:3.1.0:xsdtojava (generate-xsd-sources) on project coin-model: Could not create runtime jar
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
...
Caused by: org.apache.maven.plugin.MojoExecutionException: Could not create runtime jar
at org.apache.cxf.maven_plugin.AbstractXSDToJavaMojo.runForked(AbstractXSDToJavaMojo.java:509)
at org.apache.cxf.maven_plugin.AbstractXSDToJavaMojo.run (http://org.apache.cxf.maven_plugin.AbstractXSDToJavaMojo.run)(AbstractXSDToJavaMojo.java:342)
at org.apache.cxf.maven_plugin.AbstractXSDToJavaMojo.execute(AbstractXSDToJavaMojo.java:238)
... 22 more
Caused by: java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:2024)
at java.io.File.createTempFile(File.java:2070)
at org.apache.cxf.maven_plugin.AbstractXSDToJavaMojo.runForked(AbstractXSDToJavaMojo.java:465)
... 24 more
解决方案
提供的 jar 路径可能不正确。
推荐阅读
- r - 缺少excel格式的持续时间在R中表现得很奇怪
- django - 定义抽象 django 模型字段
- postcss - 在未显示前缀的包裹上发布 css autoprefixer 问题
- azure - Azure 应用服务计划 - 位置选择的重要性
- git - 物体松动的原因是什么?`git prune` 可以安全地删除它们吗?
- python - 无法在 Pycharm 的 Python 代码中找到空字节?
- scala - Application Insights log4j appender 不退出
- python - 使用 DTW 距离矩阵的凝聚聚类
- angular - 元标记未在视图源中更新 - 角度
- java - 看不到客户服务 - Backoffice Migration Hybris