Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get wrong lifecycle phase name #190

Open
vlaw opened this issue Oct 12, 2023 · 0 comments
Open

get wrong lifecycle phase name #190

vlaw opened this issue Oct 12, 2023 · 0 comments

Comments

@vlaw
Copy link

vlaw commented Oct 12, 2023

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
vlaw pushed a commit to vlaw/buildplan-maven-plugin that referenced this issue Oct 12, 2023
vlaw added a commit to vlaw/buildplan-maven-plugin that referenced this issue Oct 12, 2023
vlaw added a commit to vlaw/buildplan-maven-plugin that referenced this issue May 11, 2024
vlaw added a commit to vlaw/buildplan-maven-plugin that referenced this issue May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant