gpt4 book ai didi

java - 项目构建错误 : Non-parseable POM/pom. xml : entity reference name can not contain character =' (position: START_TAG seen . ..)

转载 作者:行者123 更新时间:2023-11-29 04:14:14 24 4
gpt4 key购买 nike

我正在使用 Spring Boot 使用 SOAP Web 服务。要将 WSDL 转换为 Java 绑定(bind)(域)类,我正在使用 maven-jaxb2-plugin .

<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.13.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<generateDirectory>${project.basedir}/src/main/java</generateDirectory>
<generatePackage>com.test.consume</generatePackage>
<schemas>
<schema>
<url>https://test.co.in/cordys/WSDLGateway.wcp?service=http://schemas.cordys.com/default/getIDV&organization=o=B2C,cn=cordys,cn=defaultInst106,o=mydomain.com</url>
</schema>
</schemas>
</configuration>
</plugin>

In <url> tag I have written the WSDL URL like this

<url>https://test.co.in/cordys/WSDLGateway.wcp?service=http://schemas.cordys.com/default/getIDV&organization=o=B2C,cn=cordys,cn=defaultInst106,o=mydomain.com</url>

But I am getting the following issue with pom.xml

Project build error: Non-parseable POM /home/altaf/My Workspace/TestConsumer/pom.xml: entity reference name can not contain character
=' (position: START_TAG seen ...wcp?service=http://schemas.cordys.com/default/getIDV&organization=... @64:117)

How to resolve this issue?

最佳答案

我在 xml 节点内的 & 遇到了同样的问题。按照评论中@ygor 的建议,通过将 & 替换为 & 来解决。

将此作为答案发布以提高知名度。

关于java - 项目构建错误 : Non-parseable POM/pom. xml : entity reference name can not contain character =' (position: START_TAG seen . ..),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53348570/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com