2017-07-27 9 views
3

passwordUtilities機能を使用してpom.xmlファイルを設定しようとすると、messages.logには、機能マネージャのリストにあるにもかかわらず、サーバの起動時にその機能がインストールされていないwlp/libに必要なすべての機能ファイルを見ることができます。これは私が現在のpom.xmlにコード化されたものです:Mavenビルドで機能が正しくインストールされない

<configuration> 
    <assemblyArtifact> 
     <groupId>com.ibm.websphere.appserver.runtime</groupId> 
     <artifactId>wlp-javaee7</artifactId> 
     <version>16.0.0.4</version> 
     <type>zip</type> 
    </assemblyArtifact>     
    <configFile>src/main/liberty/config/server.xml</configFile> 
    <include>${packaging.type}</include> 
    <bootstrapProperties> 
     <appContext>${warContext}</appContext> 
     <default.http.port>${testServerHttpPort}</default.http.port> 
     <default.https.port>${testServerHttpsPort}</default.https.port> 
     <appLocation>${project.artifactId}.war</appLocation> 
    </bootstrapProperties> 
</configuration> 
<executions> 
    <execution> 
     <id>install-feature</id> 
     <phase>pre-integration-test</phase> 
     <goals> 
      <goal>install-feature</goal> 
     </goals> 
     <configuration> 
      <features> 
       <acceptLicense>true</acceptLicense> 
       <feature>passwordUtilities-1.0</feature>      
      </features> 
     </configuration> 
    </execution> 

答えて

1

install-feature目標はpre-integration-test相とは対照的に、(the docによる)、prepare-package相に結合する必要があります。

また、<features>設定から機能を省略すると、server.xmlがスキャンされ、欠落している機能が自動的にダウンロードされることを指摘しておきます。

だからあなたの新しい<exection>スタンザは次のようになります。

<execution> 
    <id>install-feature</id> 
    <phase>prepare-package</phase> 
    <goals> 
     <goal>install-feature</goal> 
    </goals> 
    <configuration> 
     <features> 
      <acceptLicense>true</acceptLicense> 
     </features> 
    </configuration> 
</execution> 
+0

クールでは、messages.logにpasswordUtilitiesのインストールされていないメッセージがあります。 –

関連する問題