[ 
https://issues.apache.org/jira/browse/MNG-6541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16734711#comment-16734711
 ] 

Sylwester Lachiewicz commented on MNG-6541:
-------------------------------------------

I was pretty sure that I saw that code somewhere..

Small update, in MNG-6490 I changed this part of a code and now also classifier 
is part of validation. Could You verify with Maven 3.6.0?

> 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
>            Priority: Major
>
> 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)

Reply via email to