You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Václav Haisman (JIRA)" <ji...@apache.org> on 2018/12/20 13:54:00 UTC
[jira] [Created] (MNG-6541) less restrictive "is referencing
itself" check
Václav Haisman created MNG-6541:
-----------------------------------
Summary: less restrictive "is referencing itself" check
Key: MNG-6541
URL: https://issues.apache.org/jira/browse/MNG-6541
Project: Maven
Issue Type: Wish
Components: Dependencies
Affects Versions: 3.5.4
Reporter: Václav Haisman
I have issues when building site:site in project with OpenJFX. The javafx-graphics artifact sort of references itself:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>11.0.1</version>
<parent>
<groupId>org.openjfx</groupId>
<artifactId>javafx</artifactId>
<version>11.0.1</version>
</parent>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>11.0.1</version>
<classifier>${javafx.platform}</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-base</artifactId>
<version>11.0.1</version>
</dependency>
</dependencies>
</project>
{code}
But it does so with additional classifier. When I run site:site, it gives me this:
{code}
[WARNING] Unable to create Maven project from repository.
org.apache.maven.project.ProjectBuildingException: 1 problem was encountered while building the effective model for org.openjfx:javafx-graphics:11.0.1
[FATAL] 'dependencies.dependency org.openjfx:javafx-graphics:11.0.1' for org.openjfx:javafx-graphics:11.0.1 is referencing itself. @ line 13, column 17
for project org.openjfx:javafx-graphics:11.0.1
at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:165)
at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:327)
at org.apache.maven.report.projectinfo.dependencies.RepositoryUtils.getMavenProjectFromRepository (RepositoryUtils.java:125)
{code}
I was wondering if the check could not be relaxed to accommodate this situation that seems to be common even in core Java components?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)