Skip to content

CI-friendly ${revision} not interpolated when used by maven-remote-resources-plugin #12303

@gnodet

Description

@gnodet

Description

When building bigtop-manager with Maven from the maven-4.0.x branch, the maven-remote-resources-plugin:3.0.0 attempts to resolve the project's own artifact using the literal string ${revision} instead of the interpolated version value.

Error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:3.0.0:process
  (process-resource-bundles) on project bigtop-manager-stack-bigtop:
  Execution process-resource-bundles of goal
  org.apache.maven.plugins:maven-remote-resources-plugin:3.0.0:process failed:
  Invalid Version Range Request: org.apache.bigtop:bigtop-manager:pom:${revision}

The ${revision} placeholder should have been interpolated to the actual version before the plugin tried to resolve it.

Context

The project uses CI-friendly versions (${revision}) as documented in Maven's CI-friendly documentation. This works correctly with Maven 3.x but fails with Maven 4.x.

Reproducer

git clone https://github.com/apache/bigtop-manager.git
cd bigtop-manager
mvn -B -e clean package -DskipTests

Environment

  • Maven: built from maven-4.0.x branch (bootstrapped with 4.0.0-rc-5)
  • JDK: 17 (Temurin)

Context

Found during Maven 4 compatibility testing.

Claude Code on behalf of Guillaume Nodet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions