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

Tamas Cservenak edited comment on MNG-8131 at 5/29/24 7:36 AM:
---------------------------------------------------------------

In short, OpenJFX parent provides invalid POM since 2021. The crux is that 
parent POM uses conflicting Profile IDs, that simple Maven validation shows (as 
one can expect, fields having "ID" in their name are supposed to be, well, 
"identifiers"):

https://gist.github.com/cstamas/27b948306cddabd00105f747e744e2cd

Also, as this ML thread shows:

[https://mail.openjdk.org/pipermail/openjfx-dev/2024-May/047279.html]

This fact (invalid parent POM is being generated) has been reported several 
times to project, without having at addressed.

In short, the parent POM is invalid, Maven cannot parse it. Versions before 
3.9.7 really worked "by chance", as POM is invalid since 2021 or alike.


was (Author: cstamas):
Wow, so this has been reported several times since 2021 to OpenJFX and nothing 
happened about it?

> Property replacement in dependency pom no longer works
> ------------------------------------------------------
>
>                 Key: MNG-8131
>                 URL: https://issues.apache.org/jira/browse/MNG-8131
>             Project: Maven
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.9.7
>         Environment: macOS 14.5 (23F79)
>            Reporter: Taylor Smock
>            Priority: Major
>
> h1. The problem:{{{}{}}}
> Classifiers in dependency poms are no longer replaced (either due to 
> performing profile activation of a parent pom of the dependency, or not 
> performing replacement of a property).{{{}{}}}
> Steps to reproduce (from [https://openjfx.io/openjfx-docs/#maven] )
>  # {{m{{{}vn archetype:generate
>         -DarchetypeGroupId=org.openjfx 
> -DarchetypeArtifactId=javafx-archetype-simple -DarchetypeVersion=0.0.3 
> -DgroupId=org.openjfx -DartifactId=sample -Dversion=1.0.0 
> -Djavafx-version=22.0.1{}}}}}
>  # {{{}mvn compile{{{}{}}}[INFO] Scanning for projects...{}}}{{{}[INFO] 
> {}}}{{{}[INFO] -------------------------< org.openjfx:sample 
> >-------------------------{}}}{{{}[INFO] Building sample 1.0.0{}}}{{{}[INFO]  
>  from pom.xml{}}}{{{}[INFO] --------------------------------[ jar 
> ]---------------------------------{}}}{{{}Downloading from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/22.0.1/javafx-controls-22.0.1.pom{}}}{{{}Downloaded
>  from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/22.0.1/javafx-controls-22.0.1.pom
>  (908 B at 1.9 kB/s){}}}{{{}Downloading from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx/22.0.1/javafx-22.0.1.pom{}}}{{{}Downloaded
>  from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx/22.0.1/javafx-22.0.1.pom
>  (8.4 kB at 165 kB/s){}}}{{{}Downloading from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/22.0.1/javafx-graphics-22.0.1.pom{}}}{{{}Downloaded
>  from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/22.0.1/javafx-graphics-22.0.1.pom
>  (904 B at 21 kB/s){}}}{{{}Downloading from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/22.0.1/javafx-base-22.0.1.pom{}}}{{{}Downloaded
>  from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/22.0.1/javafx-base-22.0.1.pom
>  (749 B at 17 kB/s){}}}{{{}Downloading from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/22.0.1/javafx-controls-22.0.1.jar{}}}{{{}Downloaded
>  from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/22.0.1/javafx-controls-22.0.1.jar
>  (306 B at 6.8 kB/s){}}}{{{}Downloading from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/22.0.1/javafx-controls-22.0.1-$%7Bjavafx.platform%7D.jar{}}}{{{}Downloading
>  from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/22.0.1/javafx-graphics-22.0.1.jar{}}}{{{}Downloading
>  from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/22.0.1/javafx-graphics-22.0.1-$%7Bjavafx.platform%7D.jar{}}}{{{}Downloading
>  from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/22.0.1/javafx-base-22.0.1.jar{}}}{{{}Downloading
>  from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/22.0.1/javafx-base-22.0.1-$%7Bjavafx.platform%7D.jar{}}}{{{}Downloaded
>  from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/22.0.1/javafx-base-22.0.1.jar
>  (302 B at 2.4 kB/s){}}}{{{}Downloaded from central: 
> https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/22.0.1/javafx-graphics-22.0.1.jar
>  (306 B at 2.4 kB/s){}}}{{{}[INFO] 
> ------------------------------------------------------------------------{}}}{{{}[INFO]
>  BUILD FAILURE{}}}{{{}[INFO] 
> ------------------------------------------------------------------------{}}}{{{}[INFO]
>  Total time:  1.378 s{}}}{{{}[INFO] Finished at: 
> 2024-05-28T10:23:05-06:00{}}}{{{}[INFO] 
> ------------------------------------------------------------------------{}}}{{{}[ERROR]
>  Failed to execute goal on project sample: Could not resolve dependencies for 
> project org.openjfx:sample:jar:1.0.0: The following artifacts could not be 
> resolved: org.openjfx:javafx-controls:jar:${javafx.platform}:22.0.1 (absent), 
> org.openjfx:javafx-graphics:jar:${javafx.platform}:22.0.1 (absent), 
> org.openjfx:javafx-base:jar:${javafx.platform}:22.0.1 (absent): Could not 
> find artifact org.openjfx:javafx-controls:jar:${javafx.platform}:22.0.1 in 
> central (https://repo.maven.apache.org/maven2) -> [Help 1]{}}}{{{}[ERROR] 
> {}}}{{{}[ERROR] To see the full stack trace of the errors, re-run Maven with 
> the -e switch.{}}}{{{}[ERROR] Re-run Maven using the -X switch to enable full 
> debug logging.{}}}{{{}[ERROR] {}}}{{{}[ERROR] For more information about the 
> errors and possible solutions, please read the following 
> articles:{}}}{{{}[ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException{{{}{}}}{}}}
> h1. Workaround:
> Use maven != 3.9.7 (via maven wrapper, or from not updating)
> {{mvn wrapper:wrapper -Dmaven=3.9.6{{{}{}}}}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to