eclipse JiBX(org.jibx.runtime.JiBXException:无法访问类的绑定信息...)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9432920/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 17:46:04  来源:igfitidea点击:

JiBX (org.jibx.runtime.JiBXException: Unable to access binding information for class...)

eclipsenetbeansjarjibx

提问by OakvilleWork

has anyone used JiBX before? JiBX website

有人用过 JiBX 吗?JiBX网站

I keep getting this error when attempting to run as it attempts to bind:

尝试运行时我不断收到此错误,因为它尝试绑定:

org.jibx.runtime.JiBXException: Unable to access binding information for class ....

org.jibx.runtime.JiBXException:无法访问类的绑定信息......

I am using Netbeans and it does not work but it works for my co-worker using Eclipse

我正在使用 Netbeans,但它不起作用,但它适用于使用 Eclipse 的我的同事

回答by FrVaBe

Be sure that the binding definition was compiled into your class files.

确保绑定定义已编译到您的类文件中。

Have a look at the JiBX-FAQsand the JiBX binding compiler(Building with other IDEs) documentation.

查看 JiBX- FAQJiBX 绑定编译器与其他 IDE 一起构建)文档。

回答by Ankur Raiyani

in maven just need to configure plugin as below

在 maven 中只需要配置插件如下

<plugin>
                <groupId>org.jibx</groupId>
                <artifactId>jibx-maven-plugin</artifactId>
                <version>${jibx.maven.version}</version>
                <configuration>
                    <schemaBindingDirectory>src/main/java/com/lute/serviceAccessor/farelogix/domain</schemaBindingDirectory>
                    <includeSchemaBindings>
                        <includeSchemaBindings>*-Binding.xml</includeSchemaBindings>
                    </includeSchemaBindings>
                    <verbose>true</verbose>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>bind</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

That will do !!

就可以了!!