Skip to content

Skip validation/transformation when base directory does not exist #57

@sewe

Description

@sewe

At the moment, defining an <execution> of the validate or transform goals in a parent POM, meant to be reused across various child projects, is really cumbersome since is requires the <dir> configured in the <validationSet> or <transformationSet> to exist in the parent, too; Otherwise, the build fails:

The directory /tmp/parent/src/main/xml, which is a base directory of a ValidationSet or TransformationSet, does not exist.

Would it be possible to implement a Skip non-existing base directory behavior, either optionally or even as a default? This would mirror the maven-resources-plugin or maven-compiler-plugin, which simply emit an [INFO] level message and skip further execution if src/main/resources or src/main/java are missing.

(Note: A partial workaround exists, using <skip>true/false<true> and <inherited>false/true</inherited> trickery, but is not pretty – and only works for a single level of inheritance.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions