apache / apache/maven-help-plugin
help:effective-pom outputs wrong XML namespace when modelVersion is 4.1.0
- Dominant language
- Java
- Stars
- 29
- Forks
- 42
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 6
Description
### Affected version
3.5.1
### Bug description
using `pom.xml`
```
com.example
parent
1.0.0-SNAPSHOT
modelVersion = ${project.modelVersion}
```
with Maven 4.0.0-rc5 (and earlier in alpha):
```
$ mvn help:effective-pom
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------------------------------< com.example:parent >--------------------------------------------------
[INFO] Building parent 1.0.0-SNAPSHOT
[INFO] from pom.xml
[INFO] ---------------------------------------------------------[ jar ]----------------------------------------------------------
[INFO]
[INFO] --- help:3.5.1:effective-pom (default-cli) @ parent ---
[INFO]
Effective POMs, after inheritance, interpolation, and profiles are applied:
...
4.1.0
com.example
parent
1.0.0-SNAPSHOT
modelVersion = 4.1.0
```
should be:
```
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with the supplied pom.xml and run mvn help:effective-pom using Maven 4.0.0-rc5. Trace the effective-POM XML generation and namespace selection; done means the output uses the Maven 4.1.0 namespace and matching schema location when modelVersion is 4.1.0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100