Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syncTrustStore: Fixed import for CertificateRetriever #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/scripts/syncTrustStore.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import com.sonatype.nexus.ssl.plugin.internal.CertificateRetriever
import org.sonatype.nexus.ssl.CertificateRetriever
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jtognazzi, which version of org.sonatype.nexus.plugins:nexus-ssl-plugin are you using in your build.gradle? I don't find this class in that package. Look at the latest version of the nexus-ssl-plugin at https://repository.sonatype.org/content/groups/sonatype-public-grid/org/sonatype/nexus/plugins/nexus-ssl-plugin/3.40.1-01/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not change the build.gradle the nexus-ssl-plugin is verions.nxrm3 => 3.23.0-03

Maybe I should have ?
For info, if your search for CertificateRetriever you'll find it in
org.sonatype.nexus nexus-ssl-3.40.1-01.jar
but not anymore in
org.sonatype.nexus.plugin nexus-ssl-plugin for version > 3.38.1-01

I got the error with nexus 3.39.0-01

import org.apache.http.client.utils.URIBuilder
import org.sonatype.nexus.ssl.KeyNotFoundException
import org.sonatype.nexus.ssl.TrustStore
Expand Down