[英]Eclipse Maven Build Issue: Failed to compile input schema(s)!
我的日食似乎有一個大問題。 我的Juno eclipse版本中有eclipse插件m2e和Egit,它們是最新的。 順便說一句,它確實可以在eclipse和DOS mvn中編譯良好-但eclipse仍在解決問題。
有問題的pom.xml部分
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.8.3</version>
<configuration>
<catalog>src/main/resources/my-model.cat</catalog>
</configuration>
<executions>
<execution> //This is being highlighted as an error
<id>generate-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaDirectory>src/main/resources</schemaDirectory>
<schemaIncludes>
<!-- <include>a.xsd b.xsd c.xsd</include> -->
<include>*.xsd</include>
</schemaIncludes>
<forceRegenerate>true</forceRegenerate>
<writeCode>true</writeCode>
<episode>true</episode>
<episodeFile>${project.build.directory}/generate-sources/xjc/META-INF/my-model.episode</episodeFile>
</configuration>
</execution>
</executions>
</plugin>
但是我遇到一個問題,說:
Failed to compile input schema(s)! Error messages should have been provided.
(org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.8.3:generate:generate-sources:generate-sources) pom.xml /myProj line 56 Maven Build Problem
這就是我所得到的-只是一個紅色的煩人的問題,資源管理器中的突出顯示注釋以及pom文件中的彎曲行。 沒有標記架構或其他任何東西。 我知道它不會阻止我運行和運行Maven,但是為什么Eclipse和/或m2e會這樣做呢?
謝謝,凱文
編輯:my-model.cat文件
PUBLIC "urn:com:myCom:myProj:model" "a.xsd"
PUBLIC "urn:com:myCom:myProj:operations" "b.xsd"
PUBLIC "urn:com:myCom:myProj:class" "c.xsd"
沒什么大不了的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.