0
我試圖使用JAXB2插件神器(依賴)編譯的模式,我跟着話題:編譯從Maven構件的模式在找不到文件:Maven的JAXB2-插件
http://confluence.highsource.org/display/MJIIP/User+Guide#UserGuide-UsingcustomJAXB2plugins
和代碼我已經是
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<forceRegenerate>true</forceRegenerate>
<generatePackage>com.xxx.it.esp.subscription.schema</generatePackage>
<generateDirectory>src/main/java/</generateDirectory>
<!--
<schemas>
<schema>
<dependencyResource>
<groupId>com.xxx.it.esp</groupId>
<artifactId>esp-schemas</artifactId>
<version>1.0-SNAPSHOT</version>
<resource>index.xsd</resource>
</dependencyResource>
</schema>
</schemas>
</configuration>
</plugin>
引起:java.io.FileNotFoundException:JAR條目index.xsd不是在罐子ESP-模式-1.0-快照
發現順便說一句index.xsd是在src/main/resources/schema /文件夾下,我試着給整個文件夾也是同樣的錯誤