java-8 - CodeHaus Maven JAXB2 插件错误 MojoExecutionException: NoSchemasException
问题描述
我正在尝试构建我的项目,因为我在项目 tg-tg-tems-ota-common 上收到名为 [ERROR] Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:2.4:xjc (One) 的错误-service: : MojoExecutionException: NoSchemasException -> [帮助 1]
我们正在使用 java8,apache maven 3.6.3,jaxb2 插件 2.4
请找出以下错误
INFO] Building TravelGrid-Tems-Ota-Service 3.0.0-SNAPSHOT [2/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tg-tg-tems-ota-common-service ---
[INFO]
[INFO] --- jaxb2-maven-plugin:2.4:xjc (One) @ tg-tg-tems-ota-common-service ---
[INFO] Created EpisodePath [D:\Sushma_Project\TG_UPGRADATION\Project\branches\3.0.0-SNAPSHOT\tems\tg-tems-servicelayer\tg-tems-ota-common-service\target\generated-sources\jaxb\emt\hotelSearchRequest\META-INF\JAXB]: true
[INFO] Ignored given or default xjbSources [D:\Sushma_Project\TG_UPGRADATION\Project\branches\3.0.0-SNAPSHOT\tems\tg-tems-servicelayer\tg-tems-ota-common-service\src\main\xjb], since it is not an existent file or directory.
[INFO] Ignored given or default sources [D:\Sushma_Project\TG_UPGRADATION\Project\branches\3.0.0-SNAPSHOT\tems\tg-tems-servicelayer\tg-tems-ota-common-service\src\main\xsd], since it is not an existent file or directory.
[WARNING] No XSD files found. Please check your plugin configuration.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for tg-servicelayer 3.0.0-SNAPSHOT:
[INFO]
[INFO] tg-servicelayer .................................... SUCCESS [ 0.697 s]
[INFO] TravelGrid-Tems-Ota-Service ........................ FAILURE [ 0.909 s]
[INFO] TravelGrid-Subsystems .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.941 s
[INFO] Finished at: 2020-06-30T15:50:30+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:2.4:xjc (One) on project tg-tg-tems-ota-common-service: : MojoExecutionException: NoSchemasException -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :tg-tg-tems-ota-common-service
D:\Sushma_Project\TG_UPGRADATION\Project\branches\3.0.0-SNAPSHOT\tems\tg-tems-servicelayer>
我是 jaxb 插件的新手,谁能帮助我
解决方案
请使用“mvn clean install”,它将清理目标文件夹并从头开始重新生成所有内容。
推荐阅读
- terraform - Terraform:depends_on 用于计数资源
- winapi - CLisp/FFI 在 win32 中崩溃,可能是因为垃圾收集
- flutter - 删除默认的材料设计填充
- java - 对于 Ignite,如何在不覆盖 Marshaller 的情况下在不同的包中使用相同的类?
- python - 如何使用python在文本文件中查找文本模式?
- kubernetes - Kubernetes nginx 入口控制器终止连接
- reactjs - 当我刷新 react.js 和 next.js 页面时,它给了我 404 错误
- java - 具有相同迭代的两种不同冒泡排序方法的时间复杂度
- python - 如何让字符串函数检查单个字符而不是整个字符串?
- spring-boot - Spring Boot,Spring Security - 将当前登录的用户详细信息从一个微服务传递到另一个微服务