当尝试使用 passwordUtilities 功能配置我的 pom.xml 文件时,messages.log 似乎总是显示在服务器启动期间未安装该功能,即使它位于功能管理器列表中,并且我可以在 wlp 中看到所有必需的功能文件/库。这是我目前在 pom.xml 中编码的内容:
<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>