help:effective-pom outputs wrong XML namespace when modelVersion is 4.1.0
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- java
- Domain
- build-system
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.
Description
Affected version
3.5.1
Bug description
using pom.xml
<project xmlns="http://maven.apache.org/POM/4.1.0">
<groupId>com.example</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<description>modelVersion = ${project.modelVersion}</description>
</project>
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:
<?xml version="1.0" encoding="UTF-8"?>
...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.1.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<description>modelVersion = 4.1.0</description>
should be:
<project xmlns="http://maven.apache.org/POM/4.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.1.0 https://maven.apache.org/xsd/maven-4.1.0.xsd">
- Dominant language
- Java
- Stars
- 29
- Forks
- 42
- Avg merge
- 23h 15m
- Merged PRs (30d)
- 6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/maven-help-plugin
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 82/100
apache/maven-help-plugin#394 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/maven-help-plugin#389 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/maven-help-plugin#388 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/maven-help-plugin#386 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/maven-help-plugin#385 ·
All issues in apache/maven-help-plugin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100