Guillaume Nodet created HADOOP-19923:
----------------------------------------

             Summary: hadoop-api-shim: upgrade hadoop.build.version from 3.2.0 
to fix invalid POM breaking Maven 4
                 Key: HADOOP-19923
                 URL: https://issues.apache.org/jira/browse/HADOOP-19923
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Guillaume Nodet


h2. Description

The hadoop-api-shim project sets {{hadoop.build.version=3.2.0}} in its root 
pom.xml. The published POM for {{hadoop-project:3.2.0}} on Maven Central 
contains invalid XML at line 1874:

{code:xml}
<Xlint:-unchecked/>
{code}

The hyphen after the colon is not a valid XML name start character.

Maven 3 was lenient about this parsing error, but Maven 4 correctly rejects it:

{code}
[WARNING] The POM for org.apache.hadoop:hadoop-common:jar:3.2.0 is invalid,
transitive dependencies (if any) will not be available:
  Non-parseable POM org.apache.hadoop:hadoop-project:3.2.0
{code}

Because the parent POM is unparseable, hadoop-common's transitive dependencies 
are unavailable, causing compilation failures.

h2. Affected versions

The invalid XML exists in hadoop-project:
* 3.2.0, 3.2.1, 3.2.2
* 3.3.0

It was fixed in hadoop-project 3.2.3+ and 3.3.1+.

h2. Suggested fix

Upgrade {{hadoop.build.version}} from {{3.2.0}} to {{3.2.3}} or later in the 
root pom.xml.

h2. Context

Found during [Maven 4 compatibility 
testing|https://github.com/gnodet/maven4-testing/issues/20241] of Apache 
projects.

_Claude Code on behalf of Guillaume Nodet_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to