Skip to content

get wrong lifecycle phase name #190

@vlaw

Description

@vlaw

the sample pom is like this

<plugin>
    <groupId>com.github.ekryd.sortpom</groupId>
    <artifactId>sortpom-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>validate-sortpom-sort</id>
            <phase>validate</phase>
            <goals>
                <goal>sort</goal>
            </goals>
        </execution>
        <execution>
            <id>verify-sortpom-sort</id>
            <phase>verify</phase>
            <goals>
                <goal>verify</goal>
            </goals>
        </execution>
    </executions>
</plugin>

The output is is not right.
The second validate should be verify.

[INFO] --- buildplan:2.2.2:list (default-cli) @  ---
...
--------------------------------------------------------------------------------------------------
PHASE             | PLUGIN                    | VERSION | GOAL             | EXECUTION ID
--------------------------------------------------------------------------------------------------
validate          | sortpom-maven-plugin      | 3.0.1   | sort             | validate-sortpom-sort
...
validate          | sortpom-maven-plugin      | 3.0.1   | verify           | verify-sortpom-sort
...

The plugin got the defaultPhase in plugin, not the binding-phase in POM.

run list-phase shows as bellow which I think is correct:

[INFO] --- buildplan:2.2.2:list-phase (default-cli) @ ... ---
validate ------------------------------------------------------------------
    + sortpom-maven-plugin      | sort             | validate-sortpom-sort
    .......
verify --------------------------------------------------------------------
    + sortpom-maven-plugin      | verify           | verify-sortpom-sort

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