2012-02-28 10 views
1

mavenのwsdlDirectory設定は効果があるはずですか?私はその設定が見つかりました:mavenのwsdlDirectory設定に影響がありますか?

<wsdlDirectory>${basedir}/src/main/resources/wsdl/</wsdlDirectory> は効果がありません。

実行

mvn -X clean:clean jaxws:wsimport 

WSDLファイルが/ home /プロジェクト/アマゾン/ FPS /トランク/ SRC/WSDLに移動されていない限り、常に、以下の出力になり、以下のコマンド

[ DEBUG]のwsdlディレクトリは/ home /プロジェクト/アマゾン/ FPS /トランク/ SRC/WSDL
[DEBUG]結合ディレクトリ /ホーム/プロジェクト/アマゾン/ FPS /トランク/ SRC/JAXWSある
[DEBUG] wsdlディレクトリ/home/projects/amazon/fps/trunk/src/wsdl
[INFO]何もしないで、 WSDLが見つかりました!

自分のDebianビルドマシンで2.2.1、Windows 7 Eclipse環境でEmbedded maven 3.0.2を使用しています。

私のpom.xmlは(無関係なビット除去)以下の通りである:

<project xmlns="..." xmlns:xsi="..." xsi:schemaLocation="..."> 
    <dependencies> 
    </dependencies> 
    <build> 
     <plugins> 
    <plugin> 
      <groupId>org.codehaus.mojo</groupId> 
      <artifactId>jaxws-maven-plugin</artifactId> 
      <executions> 
       <execution> 
        <id>AmazonFPSImport</id> 
       <goals> 
         <goal>wsimport</goal> 
        </goals> 
        <configuration> 
         <wsdlDirectory> 
          ${basedir}/src/main/resources/wsdl/ 
         </wsdlDirectory> 
         <wsdlFiles> 
          <wsdlFile>AmazonFPS.wsdl</wsdlFile> 
         </wsdlFiles> 
         <wsdlLocation>/wsdl/AmazonFPS.wsdl</wsdlLocation> 
         <sourceDestDir> 
          ${basedir}/target/generated-sources/amazon/ 
         </sourceDestDir> 
        </configuration> 
       </execution> 
      </executions> 
     </plugin> 
    </plugins> 
    </build> 
</project> 

答えて

0

<execution>タグの外側の構成セクションを移動してみてください。または、特定の相に結合する。

<executions> 
    <execution> 
     <phase>generate-sources</phase> 
     <goals> 
      <goal>generate</goal> 
     </goals> 
    </execution> 
</executions> 
+0

特定の相への結合は機能しなかった。しかし、 ''タグの外に移動すると動作しました。あなたはこれの背後にあるブードゥーを説明するほど親切ですか?言い換えれば、私はちょうど何をしているのですか? –

+0

私は完全にはわかりませんが、この質問からの回答とリンクは、より多くの光を放つかもしれません。http://stackoverflow.com/questions/3166538/how-to-execute-maven-plugin-execution-directly-from-command-line – artbristol

関連する問題