我正在使用Maven通过wsdl文件从SOAP Web服务器生成代码。
我的问题:由于导入错误,生成的代码无法编译。 所有'fr.norsys.asoape.xml'链接都无法解析。
我的pom.xml包含以下行:
<properties>
<asoape.version>1.1</asoape.version>
</properties>
<plugin>
<groupId>fr.norsys.asoape</groupId>
<artifactId>asoape-maven-plugin</artifactId>
<version>${asoape.version}</version>
<executions>
<execution>
<goals>
<goal>generate-soap-stub</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
</plugin>
<dependency>
<groupId>fr.norsys.asoape</groupId>
<artifactId>runtime-library</artifactId>
<version>${asoape.version}</version>
<scope>system</scope>
<systemPath>${basedir}/libs/runtime-library-1.1-sources.jar</systemPath>
</dependency>
我错过了什么吗?
更新
感谢tdrury的建议,现在我使用自己的包,Eclipse可以重新解析“fr.norsys.asoap.xml.binding.annotation”!!!但不是XmlType,XmlElement,XmlRootElement ......它们都是这个包的所有部分。
这怎么可能?知道一个包但不知道他的内容?
答案 0 :(得分:0)
我不知道为什么但是我无法编辑我的第一条消息...... 这是POM
<properties>
<asoape.version>1.1</asoape.version>
</properties>
<plugin>
<groupId>fr.norsys.asoape</groupId>
<artifactId>asoape-maven-plugin</artifactId>
<version>${asoape.version}</version>
<executions>
<execution>
<goals>
<goal>generate-soap-stub</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
</plugin>
<dependency>
<groupId>fr.norsys.asoape</groupId>
<artifactId>runtime-library</artifactId>
<version>${asoape.version}</version>
<scope>system</scope>
<systemPath>${basedir}/libs</systemPath>
</dependency>