Skip to content

Self-reference in Maven POM #786

Open
@cpuzicha

Description

Describe the bug
Maven POM contains a self reference:

<groupId>org.jfrog.buildinfo</groupId>
<artifactId>build-info-extractor</artifactId>
<version>2.41.14</version>
<name>build-info-extractor</name>
...
<dependency>
  <groupId>org.jfrog.buildinfo</groupId>
  <artifactId>build-info-extractor</artifactId>
  <version>2.41.14</version>
  <scope>compile</scope>
  <optional>true</optional>
</dependency>

Test in IntelliJ IDEA with this as a dependency show the following error message (though there seems to be no actual problem)

Errors occurred while building effective model from /home/cp/.gradle/caches/modules-2/files-2.1/org.jfrog.buildinfo/build-info-extractor/2.41.12/d5ae695415585a1481144ab3d7a59b41af869883/build-info-extractor-2.41.12.pom:
'dependencies.dependency[org.jfrog.buildinfo:build-info-extractor:2.41.12]' for org.jfrog.buildinfo:build-info-extractor:2.41.12 is referencing itself. in org.jfrog.buildinfo:build-info-extractor:2.41.12

To Reproduce
Look at https://repo1.maven.org/maven2/org/jfrog/buildinfo/build-info-extractor/2.41.14/build-info-extractor-2.41.14.pom

Expected behavior
No self reference.

Additional context
We have seen this behavior when using the Gradle Plugin 'test-fixtures'
gradle/gradle#14936

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugCreate a report to help us improve

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions