2011-08-17 82 views
2

我正在尝试使用deploy.wsdd和maven axis工具插件部署一个axis 1.4服务, 我已经配置了pom.xml,但出现错误需要inputFiles。 请参考下面Axis 1.4 Axis:管理工具尝试使用maven部署服务时出错

<plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>axistools-maven-plugin</artifactId> 
    <version>1.4</version> 
    <executions> 
     <execution> 
      <id>deploy-service</id> 
      <goals> 
      <goal>admin</goal> 
     </goals> 
     <configuration> 
      <inputFiles> 
      <inputFile>/src/main/resources/config/axis/deploy.wsdd</inputFile> 
      <inputFile>/src/main/resources/configaxis/undeploy.wsdd</inputFile> 
      </inputFiles> 
      <isServerConfig>true</isServerConfig> 
      <configOutputDirectory>/src/main/webapp/WEB-INF</configOutputDirectory> 
      </configuration> 
     </execution> 
    </executions> 
</plugin> 

我得到错误的位置我设置(这是根据文档的ArrayList型)inputFiles我的POM。请让我知道什么是与此设置问题,并在下面找到

命令的错误:

mvn clean axistools:admin

错误:

[INFO] One or more required plugin parameters are invalid/missing for 'axistools:admin' 

[0] Inside the definition for plugin 'axistools-maven-plugin' specify the following: 

<configuration> 
    ... 
    <inputFiles>VALUE</inputFiles> 
</configuration> 

-OR- 

on the command line, specify: '-DinputFile=VALUE' 

请让我知道是什么我需要设置的价值?

回答

3

我已经修改了POM文件如下,它的工作

<plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>axistools-maven-plugin</artifactId> 
    <version>1.4</version> 
    <configuration> 
      <inputFiles> 
      <inputFile>/src/main/resources/config/axis/deploy.wsdd</inputFile> 
      <inputFile>/src/main/resources/configaxis/undeploy.wsdd</inputFile> 
      </inputFiles> 
      <isServerConfig>true</isServerConfig> 
      <configOutputDirectory>/src/main/webapp/WEB-INF</configOutputDirectory> 
    </configuration> 
    <executions> 
     <execution> 
      <id>deploy-service</id> 
      <goals> 
      <goal>admin</goal> 
     </goals> 
     </execution> 
    </executions> 
</plugin> 

但是有一个问题,我有充分的路径在inputFile并没有添加文件取消部署Web服务。 该插件执行了AdmitClient,但问题是无法创建server-config.wsdd,因为它找不到编译后的类文件。基本上java位于src/main/java并编译为target/classes。 我仍然搞清楚如何来纠正这个问题.. 没有关于这个插件

+0

嘿,我有同样的错误知道...你有没有找到解决方案? – boskop

+0

我在Maven中使用了ANT脚本...我无法解决它...如果您可以找到解决方案,请告诉我...我也可以通过ANT向您提供解决方案 – tamilnad

+0

查看此问题(仍未解决): _axistools:admin不包括classpath_中的目标/类[http://jira.codehaus.org/browse/MAXISTOOLS-3](http://jira.codehaus.org/browse/MAXISTOOLS-3) –

1

我一直在试图让管理目标,现在几个小时的工作多文档,没有运气。 运行时项目类路径不可用。 我最终使用antrun插件来代替它。

相关问题