Skip to content

Do not check for server dir until ready to generate features #1978

@turkeylurkey

Description

@turkeylurkey

In a multi-module project the generate-features mojo is called on each module. This mojo checks whether the current project is the furthest downstream and exits if it is not. However a recent change checks whether the server directory exists as it is needed when generateToSrc is false. Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.12.1-SNAPSHOT:generate-features (default-cli) on project guide-maven-multimodules-jar: The 'generate-features' goal requires an existing Liberty server in directory /Users/pg/DevEx/ci.maven/liberty-maven-plugin/src/it/dev-it/resources/multi-module-projects/typeA/jar/target/liberty/wlp/usr/servers/defaultServer. Please run the 'liberty:create' goal before 'generate-features'

In this case the jar module is not the furthest downstream and the mojo would have exited but for the error check. This error check should be made after the multimodule checks.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

New Issues

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions