Skip to content

Instantly share code, notes, and snippets.

@dav-rob
Created September 2, 2012 12:17
Show Gist options
  • Save dav-rob/3597928 to your computer and use it in GitHub Desktop.
Save dav-rob/3597928 to your computer and use it in GitHub Desktop.
Build error in Maven HttpWagon - KeyManagerFactory not available
C:\work\Git\elasticsearch>mvn package -DskipTests
[INFO] Scanning for projects...
02-Sep-2012 13:11:30 org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting: org.apache.maven.wagon.providers.http.HttpWagon
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java
:86)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:91)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.
java:100)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.
java:115)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:89)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdap
ter.java:52)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.
java:100)
at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.
java:108)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.ja
va:45)
at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
at org.sonatype.aether.connector.wagon.PlexusWagonProvider.lookup(PlexusWagonProvider.java:32)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.lookupWagon(WagonRepositoryConnector.java:282)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.<init>(WagonRepositoryConnector.java:154)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnectorFactory.newInstance(WagonRepositoryConnectorFacto
ry.java:142)
at org.sonatype.aether.impl.internal.DefaultRemoteRepositoryManager.getRepositoryConnector(DefaultRemoteReposito
ryManager.java:346)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813)
at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:410)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:379)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:343)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.IllegalStateException: Failure initializing default SSL context
at org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketF
actory.java:211)
at org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.java:333)
at org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.getSocketFactory(SSLSocketFactory.
java:165)
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistry
Factory.java:45)
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.tsccm.ThreadSafeClientConnManager.<init>(ThreadSaf
eClientConnManager.java:98)
at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.<clinit>(AbstractHttpClientWagon.java:267)
... 67 more
Caused by: java.security.NoSuchAlgorithmException: CS_PKI KeyManagerFactory not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:142)
at javax.net.ssl.KeyManagerFactory.getInstance(KeyManagerFactory.java:121)
at org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.
java:184)
at org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketF
actory.java:209)
... 72 more
---------------------------------------------------
constituent[0]: file:/C:/java/maven-3.0.4/bin/../lib/aether-api-1.13.1.jar
constituent[1]: file:/C:/java/maven-3.0.4/bin/../lib/aether-connector-wagon-1.13.1.jar
constituent[2]: file:/C:/java/maven-3.0.4/bin/../lib/aether-impl-1.13.1.jar
constituent[3]: file:/C:/java/maven-3.0.4/bin/../lib/aether-spi-1.13.1.jar
constituent[4]: file:/C:/java/maven-3.0.4/bin/../lib/aether-util-1.13.1.jar
constituent[5]: file:/C:/java/maven-3.0.4/bin/../lib/commons-cli-1.2.jar
constituent[6]: file:/C:/java/maven-3.0.4/bin/../lib/maven-aether-provider-3.0.4.jar
constituent[7]: file:/C:/java/maven-3.0.4/bin/../lib/maven-artifact-3.0.4.jar
constituent[8]: file:/C:/java/maven-3.0.4/bin/../lib/maven-compat-3.0.4.jar
constituent[9]: file:/C:/java/maven-3.0.4/bin/../lib/maven-core-3.0.4.jar
constituent[10]: file:/C:/java/maven-3.0.4/bin/../lib/maven-embedder-3.0.4.jar
constituent[11]: file:/C:/java/maven-3.0.4/bin/../lib/maven-model-3.0.4.jar
constituent[12]: file:/C:/java/maven-3.0.4/bin/../lib/maven-model-builder-3.0.4.jar
constituent[13]: file:/C:/java/maven-3.0.4/bin/../lib/maven-plugin-api-3.0.4.jar
constituent[14]: file:/C:/java/maven-3.0.4/bin/../lib/maven-repository-metadata-3.0.4.jar
constituent[15]: file:/C:/java/maven-3.0.4/bin/../lib/maven-settings-3.0.4.jar
constituent[16]: file:/C:/java/maven-3.0.4/bin/../lib/maven-settings-builder-3.0.4.jar
constituent[17]: file:/C:/java/maven-3.0.4/bin/../lib/plexus-cipher-1.7.jar
constituent[18]: file:/C:/java/maven-3.0.4/bin/../lib/plexus-component-annotations-1.5.5.jar
constituent[19]: file:/C:/java/maven-3.0.4/bin/../lib/plexus-interpolation-1.14.jar
constituent[20]: file:/C:/java/maven-3.0.4/bin/../lib/plexus-sec-dispatcher-1.3.jar
constituent[21]: file:/C:/java/maven-3.0.4/bin/../lib/plexus-utils-2.0.6.jar
constituent[22]: file:/C:/java/maven-3.0.4/bin/../lib/sisu-guava-0.9.9.jar
constituent[23]: file:/C:/java/maven-3.0.4/bin/../lib/sisu-guice-3.1.0-no_aop.jar
constituent[24]: file:/C:/java/maven-3.0.4/bin/../lib/sisu-inject-bean-2.3.0.jar
constituent[25]: file:/C:/java/maven-3.0.4/bin/../lib/sisu-inject-plexus-2.3.0.jar
constituent[26]: file:/C:/java/maven-3.0.4/bin/../lib/wagon-file-2.2.jar
constituent[27]: file:/C:/java/maven-3.0.4/bin/../lib/wagon-http-2.2-shaded.jar
constituent[28]: file:/C:/java/maven-3.0.4/bin/../lib/wagon-provider-api-2.2.jar
---------------------------------------------------
Exception in thread "main" java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java
:86)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:91)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.
java:100)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.
java:115)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:89)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdap
ter.java:52)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.
java:100)
at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.
java:108)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.ja
va:45)
at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
at org.sonatype.aether.connector.wagon.PlexusWagonProvider.lookup(PlexusWagonProvider.java:32)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.lookupWagon(WagonRepositoryConnector.java:282)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.<init>(WagonRepositoryConnector.java:154)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnectorFactory.newInstance(WagonRepositoryConnectorFacto
ry.java:142)
at org.sonatype.aether.impl.internal.DefaultRemoteRepositoryManager.getRepositoryConnector(DefaultRemoteReposito
ryManager.java:346)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813)
at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:410)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:379)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:343)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.IllegalStateException: Failure initializing default SSL context
at org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketF
actory.java:211)
at org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.java:333)
at org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.getSocketFactory(SSLSocketFactory.
java:165)
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistry
Factory.java:45)
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.tsccm.ThreadSafeClientConnManager.<init>(ThreadSaf
eClientConnManager.java:98)
at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.<clinit>(AbstractHttpClientWagon.java:267)
... 67 more
Caused by: java.security.NoSuchAlgorithmException: CS_PKI KeyManagerFactory not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:142)
at javax.net.ssl.KeyManagerFactory.getInstance(KeyManagerFactory.java:121)
at org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.
java:184)
at org.apache.maven.wagon.providers.http.httpclient.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketF
actory.java:209)
... 72 more
C:\work\Git\elasticsearch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment