org.jibx: maven-jibx-plugin:1.2.1 - 读取路径时出错
org.jibx: maven-jibx-plugin:1.2.1 - Error reading path
我正在尝试使用 maven-jibx-plugin 版本 1.2.1 执行目标,但出现以下错误:
[ERROR] Failed to execute goal org.jibx:maven-jibx-plugin:1.2.1:bind (default) on project XoXcertExIm: Error loading class java.lang.CharSequence: Error reading
路径 java/lang/CharSequence.class for class java.lang.CharSequence -> [帮助 1]
我正在使用 Maven 3.2.5,Java 版本 1.8.0_11,windows 7 作为 OS.
Jibx 上存在支持问题 Java 8 参见 Issue here
comment 中有一个解决方法,您可以尝试。
我遇到了同样的问题...
解决方法很简单,只需将更新的 "bcel" 依赖项添加到插件 "maven-jibx-plugin":
<plugin>
<groupId>org.jibx</groupId>
<artifactId>jibx-maven-plugin</artifactId>
<version>1.2.6</version>
<dependencies>
<!-- Workaround to avoid error compiling with JDK 1.8 -->
<dependency>
<groupId>org.apache.bcel</groupId>
<artifactId>bcel</artifactId>
<version>6.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
您应该在 "settings.xml" 中包含一个新的 Maven 存储库定义以获取新的依赖项:
<repository>
<id>apache-snapshots-repo</id>
<url>https://repository.apache.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
此致
我正在尝试使用 maven-jibx-plugin 版本 1.2.1 执行目标,但出现以下错误:
[ERROR] Failed to execute goal org.jibx:maven-jibx-plugin:1.2.1:bind (default) on project XoXcertExIm: Error loading class java.lang.CharSequence: Error reading
路径 java/lang/CharSequence.class for class java.lang.CharSequence -> [帮助 1]
我正在使用 Maven 3.2.5,Java 版本 1.8.0_11,windows 7 作为 OS.
Jibx 上存在支持问题 Java 8 参见 Issue here comment 中有一个解决方法,您可以尝试。
我遇到了同样的问题...
解决方法很简单,只需将更新的 "bcel" 依赖项添加到插件 "maven-jibx-plugin":
<plugin>
<groupId>org.jibx</groupId>
<artifactId>jibx-maven-plugin</artifactId>
<version>1.2.6</version>
<dependencies>
<!-- Workaround to avoid error compiling with JDK 1.8 -->
<dependency>
<groupId>org.apache.bcel</groupId>
<artifactId>bcel</artifactId>
<version>6.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
您应该在 "settings.xml" 中包含一个新的 Maven 存储库定义以获取新的依赖项:
<repository>
<id>apache-snapshots-repo</id>
<url>https://repository.apache.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
此致