axistools无法创建该文件,抛出的错误参数namefile丢失或无效。我的配置是错的吗?我在网上搜索,但找不到确切的配置。有人能建议我一个工作配置吗?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>java2wsdl</goal>
</goals>
<configuration>
<useEmitter>true</useEmitter>
<classesDirectory>${basedir}/target/classes</classesDirectory>
<outputDirectory>${basedir}/target/generated-sources/axistools/java2wsdl/webapp/wsdl</outputDirectory>
<fileName>${basedir}/target/generated-sources/axistools/java2wsdl/webapp/wsdl/WebService.wsdl</fileName>
<location>http://xxx:xxxx/xxx/WebService</location>
<namespace>urn:xxxx</namespace>
<useinheritedmethods>true</useinheritedmethod>
<style>WRAPPED</style>
</configuration>
</execution>
</executions>
</plugin>发布于 2016-03-09 13:21:20
您在配置中使用fileName,而正确的配置元素是filename。
配置条目区分大小写,因此您的camel case配置与预期的小写配置不匹配。
请注意,在本例中,错误消息非常有用,实际上它正在查找filename,但找不到它。
然而,对于这个插件来说,真正误导的是用户属性是fileName。我认为应该对匹配进行审查,并且用户属性应该以与插件相关的名称作为前缀,以避免与其他插件发生冲突,但对于插件本身来说,这是一个更普遍的考虑,不管您的问题是什么。
https://stackoverflow.com/questions/35892688
复制相似问题