0

Could someone please explain this error to me and how to fix it. I'm, trying to setup the OpenPdfViewer project I downloaded from Github and running into this error. Thanks

'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.openjfx:javafx-controls:jar -> duplicate declaration of version 16 @ line 35, column 21

Here's the error when I hover on the line

Multiple markers at this line
  • Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (execution: default-testCompile, phase: test-compile)
  • Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, phase: compile)
  • CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.1: ArtifactResolutionException: org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org
WO5773
  • 1
  • 3
  • 1
    Please never post images of text. They are not searchable, we cannot copy-paste... Always copy-paste the text and format it properly. – g00se Jun 01 '22 at 14:31
  • Not as a comment! If you have a problem with your pom.xml then post that file in code tags in the question. And please learn to copy and paste to and from the console – g00se Jun 01 '22 at 16:09
  • Okay, just edited the question. – WO5773 Jun 01 '22 at 16:13
  • Does this answer your question? [Maven error "Failure to transfer..."](https://stackoverflow.com/questions/5074063/maven-error-failure-to-transfer) – Danubian Sailor Jun 03 '22 at 07:09

0 Answers0