Reset java certifications (on linux) due to Maven download issue -


i using ubuntu linux 15.10. few days ago cloned small git project using maven (i use version 3.3.3). after cloning wanted use

mvn install 

command download dependencies error occurred. using same command -x parameter shows problem in detail:

[error] plugin org.apache.maven.plugins:maven-resources-plugin:2.3 or 1 of dependencies not resolved: failed read artifact descriptor org.apache.maven.plugins:maven-resources-plugin:jar:2.3: not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.3 from/to central (https://repo.maven.apache.org/maven2): java.security.nosuchalgorithmexception: error constructing implementation (algorithm: default, provider: sunjsse, class: sun.security.ssl.sslcontextimpl$defaultsslcontext): invalid keystore format -> [help 1] org.apache.maven.plugin.pluginresolutionexception: plugin org.apache.maven.plugins:maven-resources-plugin:2.3 or 1 of dependencies not resolved: failed read artifact descriptor org.apache.maven.plugins:maven-resources-plugin:jar:2.3 @ org.apache.maven.plugin.internal.defaultplugindependenciesresolver.resolve(defaultplugindependenciesresolver.java:117) @ org.apache.maven.plugin.internal.defaultmavenpluginmanager.getplugindescriptor(defaultmavenpluginmanager.java:179) @ org.apache.maven.plugin.internal.defaultmavenpluginmanager.getmojodescriptor(defaultmavenpluginmanager.java:298) @ org.apache.maven.plugin.defaultbuildpluginmanager.getmojodescriptor(defaultbuildpluginmanager.java:241) @ org.apache.maven.lifecycle.internal.defaultlifecycleexecutionplancalculator.setupmojoexecution(defaultlifecycleexecutionplancalculator.java:169) @ org.apache.maven.lifecycle.internal.defaultlifecycleexecutionplancalculator.setupmojoexecutions(defaultlifecycleexecutionplancalculator.java:155) @ org.apache.maven.lifecycle.internal.defaultlifecycleexecutionplancalculator.calculateexecutionplan(defaultlifecycleexecutionplancalculator.java:131) @ org.apache.maven.lifecycle.internal.defaultlifecycleexecutionplancalculator.calculateexecutionplan(defaultlifecycleexecutionplancalculator.java:145) @ org.apache.maven.lifecycle.internal.builder.buildercommon.resolvebuildplan(buildercommon.java:96) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:109) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:80) @ org.apache.maven.lifecycle.internal.builder.singlethreaded.singlethreadedbuilder.build(singlethreadedbuilder.java:51) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:128) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:307) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:193) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:106) @ org.apache.maven.cli.mavencli.execute(mavencli.java:862) @ org.apache.maven.cli.mavencli.domain(mavencli.java:286) @ org.apache.maven.cli.mavencli.main(mavencli.java:197) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:497) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:289) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:415) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356) caused by: org.eclipse.aether.resolution.artifactdescriptorexception: failed read artifact descriptor org.apache.maven.plugins:maven-resources-plugin:jar:2.3 @ org.apache.maven.repository.internal.defaultartifactdescriptorreader.loadpom(defaultartifactdescriptorreader.java:302) @ org.apache.maven.repository.internal.defaultartifactdescriptorreader.readartifactdescriptor(defaultartifactdescriptorreader.java:218) @ org.eclipse.aether.internal.impl.defaultrepositorysystem.readartifactdescriptor(defaultrepositorysystem.java:287) @ org.apache.maven.plugin.internal.defaultplugindependenciesresolver.resolve(defaultplugindependenciesresolver.java:103) ... 26 more .... ... caused by: java.io.ioexception: invalid keystore format @ sun.security.provider.javakeystore.engineload(javakeystore.java:658) @ sun.security.provider.javakeystore$jks.engineload(javakeystore.java:56) @ sun.security.provider.keystoredelegator.engineload(keystoredelegator.java:225) @ sun.security.provider.javakeystore$dualformatjks.engineload(javakeystore.java:70) @ java.security.keystore.load(keystore.java:1445) @ sun.security.ssl.trustmanagerfactoryimpl.getcacertskeystore(trustmanagerfactoryimpl.java:226) @ sun.security.ssl.sslcontextimpl$defaultsslcontext.getdefaulttrustmanager(sslcontextimpl.java:767) @ sun.security.ssl.sslcontextimpl$defaultsslcontext.<init>(sslcontextimpl.java:733) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:422) @ java.security.provider$service.newinstance(provider.java:1595) ... 83 more 

i checked if java_home (/usr/lib/jvm/java-8-openjdk-amd64/) set correctly , deleted ~/.keystore file. generated new 1 keytool -genkey command. afterwards reinstalled ca-certificates-java , ca-certificates. nothing helps.

if use command

sudo update-ca-certificates 

i following error:

org.debian.security.invalidkeystorepasswordexception: cannot open java keystore. password correct? @ org.debian.security.keystorehandler.load(keystorehandler.java:68) @ org.debian.security.keystorehandler.<init>(keystorehandler.java:52) @ org.debian.security.updatecertificates.<init>(updatecertificates.java:65) @ org.debian.security.updatecertificates.main(updatecertificates.java:51) caused by: java.io.ioexception: invalid keystore format @ sun.security.provider.javakeystore.engineload(javakeystore.java:650) @ sun.security.provider.javakeystore$jks.engineload(javakeystore.java:55) @ java.security.keystore.load(keystore.java:1226) @ org.debian.security.keystorehandler.load(keystorehandler.java:66) ... 3 more 

it seems there general problem keystore on linux system. maven install projects works on others systems.

could me fixing problem?

many thanks.

i fixed issue purging , reinstalling ca-certificates-java using following commands:

sudo dpkg --purge --force-depends ca-certificates-java sudo apt-get install ca-certificates-java 

maybe in similar situation.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -