apache / apache/maven-site

Migration guide to Maven 4 contains wrong links to Maven 4's lifecycle phases

Open Beginner friendly
#1,655 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
123
Forks
301
Avg merge
16h 59m
Merged PRs (30d)
32

Description

### Bug description

The guide [Starting with Maven 4](https://maven.apache.org/guides/mini/guide-migration-to-mvn4.html) contains wrong links to Maven 4 'slifecycle phases:

Step 2, under "Replace plugin bindings to pre- and post- lifecycle phase":

> In Maven 3, integration-test, clean and test [lifecycle phases](https://maven.apache.org/ref/3-LATEST/maven-core/lifecycles.html) have pre- and post- phases. In Maven 4 those phases are removed in favor of new before: and after: phases, available for [all lifecycle phases](https://maven.apache.org/ref/4-LATEST/maven-impl-modules/maven-core/lifecycles.html).

The last link is wrong; it should be https://maven.apache.org/ref/4-LATEST/impl/maven-core/lifecycles.html

Step 3, under "Use the new all and each life cycle phases":

> Maven 4 introduces several new [lifecycle phases](https://maven.apache.org/ref/4-LATEST/maven-impl-modules/maven-core/lifecycles.html)

The same wrong link as above.

### Maven site URL where bug exists

https://maven.apache.org/guides/mini/guide-migration-to-mvn4.html

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the Starting with Maven 4 guide at guide-migration-to-mvn4.html and inspect the lifecycle-phase links in Step 2 and Step 3. Replace both incorrect Maven 4 URLs with the stated /ref/4-LATEST/impl/maven-core/lifecycles.html URL, then verify that both links resolve correctly.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
92/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.