Skip to content

Certificate issues on macos #1568

Open
Open

Description

@baltzell

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.10.0:copy (default-cli) on project coatjava: Unable to find/resolve artifact. The following artifacts could not be resolved: org.jlab.coda:jclara:jar:6.0-SNAPSHOT (absent): Could not transfer artifact org.jlab.coda:jclara:jar:6.0-SNAPSHOT from/to code.jlab.org-hipo-java (https://code.jlab.org/api/v4/projects/919/packages/maven): (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

Activity

  1. baltzell commented on Nov 3, 2026

    @baltzell
    CollaboratorAuthor

    one solution: -Djavax.net.ssl.trustStoreType=KeychainStore-ROOT -Djavax.net.ssl.trustStore=NONE

  2. baltzell commented on Nov 3, 2026

    @baltzell
    CollaboratorAuthor

    this issue kicks in with the latest action in #1553

  3. baltzell commented on Nov 3, 2026

    @baltzell
    CollaboratorAuthor

    and also on some folk's MacOS laptops

  4. c-dilks commented on Nov 4, 2026

    @c-dilks
    Member

    looks like it happens on Linux too; the 6.0-SNAPSHOT is also a clue, which points to this line in build-coatjava.sh:

    # use maven to copy a CLARA jar to a separate directory:
    mvn org.apache.maven.plugins:maven-dependency-plugin:3.10.0:copy \
         -Dartifact=org.jlab.coda:jclara:6.0-SNAPSHOT:jar -DoutputDirectory=$prefix_dir/lib/utils -DstripVersion=false
    
  5. self-assigned this
    on Nov 4, 2026
  6. baltzell commented on Nov 4, 2026

    @baltzell
    CollaboratorAuthor

    yes, so far I only saw the error on jclara I think

  7. c-dilks commented on Nov 4, 2026

    @c-dilks
    Member

    @maureeungaro reported it for others, so it's not just jclara:

    [ERROR] clas-io ............................................ FAILURE [  0.338 s]
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  2.676 s
    [INFO] Finished at: 2026-11-02T10:52:31-05:00
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project clas-io: Could not collect dependencies for project org.jlab.clas:clas-io:jar:14.2.2-SNAPSHOT
    [ERROR] Failed to read artifact descriptor for org.jlab.jnp:jnp-hipo4:jar:4.5
    [ERROR] 	Caused by: The following artifacts could not be resolved: org.jlab.jnp:jnp-hipo4:pom:4.5 (present, but unavailable): Could not transfer artifact org.jlab.jnp:jnp-hipo4:pom:4.5 from/to code.jlab.org-clara-java (https://code.jlab.org/api/v4/projects/243/packages/maven): (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    [ERROR] Failed to read artifact descriptor for org.jlab.coda:xmsg:jar:2.5
    [ERROR] 	Caused by: The following artifacts could not be resolved: org.jlab.coda:xmsg:pom:2.5 (absent): Could not transfer artifact org.jlab.coda:xmsg:pom:2.5 from/to code.jlab.org-clara-java (https://code.jlab.org/api/v4/projects/243/packages/maven): (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    [ERROR] -> [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
    [ERROR] 
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <args> -rf :clas-io
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions