Skip to content

Plugin does not evaluate GroupId / ArtifactId property variables #1001

Closed
@Tholian

Description

@Tholian

If th groupId of an dependency is defined in a property and this property-variable is used in the dependency the execution of mvn versions:display-dependency-updates shows some problems.

eg. following pom.xml snippet

...
<properties>
	<archunitGroupId>com.tngtech.archunit</archunitGroupId>
	<archunit.version>1.1.0</archunit.version>
</properties>

...

<dependency>
	<groupId>${archunitGroupId}</groupId>
	<artifactId>archunit</artifactId>
	<version>${archunit.version}</version>
</dependency>

will lead to this console output:

[INFO] --- versions-maven-plugin:2.16.0:display-dependency-updates (default-cli) @ myProject---
Downloading from nexus: http://myNexusRepo/nexus/content/groups/public/$%7BarchunitGroupId%7D/archunit/maven-metadata.xml

As you can see, the GroupId was not correctly determined.

Excpected behaviour is a correct usage of variables even for groupId an artifactId.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions