You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ITs, I defined the <type>esa</type> feature module as dependency.
However, the liberty-maven-plugin tries to download it from central only:
[INFO] Installing features: [dataSourceValidatorFeature]
Downloading from central: https://repo1.maven.org/io/openliberty/features/repository-resolver/maven-metadata.xml
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.5.2:install-feature (test-init) on project datasourcevalidator.IT.liberty-recent-java8: CWWKF1203E: Unable to obtain the following features: dataSourceValidatorFeature. Ensure that the features are valid. -> [Help 1]
I wonder how plugins are supposed to be integration-tested when this plugin does not support reactor modules as dependencies.
Specify a relative path to the other module's target (not a good practice!) or use the dependency plugin to copy it to the IT module's target folder and use that as a relative path (somewhat better).
The text was updated successfully, but these errors were encountered:
Hi,
I am using a multi-module maven project:
In ITs, I defined the
<type>esa</type>
feature module as dependency.However, the liberty-maven-plugin tries to download it from central only:
I wonder how plugins are supposed to be integration-tested when this plugin does not support reactor modules as dependencies.
Suggested solution
The solution is probably to add it somewhere here:
https://github.com/OpenLiberty/ci.maven/blob/main/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/InstallFeatureSupport.java#L233-L242
Known Workaround
Specify a relative path to the other module's target (not a good practice!) or use the dependency plugin to copy it to the IT module's target folder and use that as a relative path (somewhat better).
The text was updated successfully, but these errors were encountered: