java - Maven resolution for existing artifact fails -


i have dependency on

<dependency>   <groupid>org.jboss</groupid>   <artifactid>jboss-serialization</artifactid>   <version>1.0.4.final</version> </dependency> 

( edit: version string wrong , posted right 1 here. i've updated post wrong version , i'm adding answer explanation.)

here link infos artifact: https://maven-repository.com/artifact/org.jboss/jboss-serialization/1.0.4.final

i have repository set-up in archiva, when resolution failed, added repo pom testing purposes:

  <repository>     <id>jboss-releases</id>     <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>   </repository> 

still error "could not resolve dependency...". afaik have downloaded other artifacts repo , can download jar/pom browser. gives??

stack trace:

[info] ------------------------------------------------------------------------ [info] building project3 ejb module 1.0-snapshot [info] ------------------------------------------------------------------------ downloading: http://repository.jboss.org/nexus/content/repositories/releases/org/jboss/jboss-serialization/1.0.4.final/jboss-serialization-1.0.4.final.pom downloading: http://svn.redacted.xyz:8080/repository/internal/org/jboss/jboss-serialization/1.0.4.final/jboss-serialization-1.0.4.final.pom downloading: http://repo.maven.apache.org/maven2/org/jboss/jboss-serialization/1.0.4.final/jboss-serialization-1.0.4.final.pom [warning] pom org.jboss:jboss-serialization:jar:1.0.4.final missing, no dependency information available downloading: http://repository.jboss.org/nexus/content/repositories/releases/org/jboss/jboss-serialization/1.0.4.final/jboss-serialization-1.0.4.final.jar downloading: http://svn.redacted.xyz:8080/repository/internal/org/jboss/jboss-serialization/1.0.4.final/jboss-serialization-1.0.4.final.jar downloading: http://repo.maven.apache.org/maven2/org/jboss/jboss-serialization/1.0.4.final/jboss-serialization-1.0.4.final.jar [info] ------------------------------------------------------------------------ [info] reactor summary: [info] [info] project3 ejb module ................................. failure [8.361s] [info] project3 web module ................................. skipped [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 9.063s [info] finished at: fri jan 29 12:02:09 cet 2016 [info] final memory: 14m/225m [info] ------------------------------------------------------------------------ [error] failed execute goal on project project3-ejb: not resolve dependencies project xyz.redacted:project3-ejb:ejb:1.0-snapshot: not find artifact org.jboss:jboss-serialization:jar:1.0.4.final in jboss-releases (http://repository.jboss.org/nexus/content/repositories/releases/) -> [help 1] org.apache.maven.lifecycle.lifecycleexecutionexception: failed execute goal on project project3-ejb: not resolve dependencies project xyz.redacted:project3-ejb:ejb:1.0-snapshot: not find artifact org.jboss:jboss-serialization:jar:1.0.4.final in jboss-releases (http://repository.jboss.org/nexus/content/repositories/releases/)         @ org.apache.maven.lifecycle.internal.lifecycledependencyresolver.getdependencies(lifecycledependencyresolver.java:210)         @ org.apache.maven.lifecycle.internal.lifecycledependencyresolver.resolveprojectdependencies(lifecycledependencyresolver.java:117)         @ org.apache.maven.lifecycle.internal.mojoexecutor.ensuredependenciesareresolved(mojoexecutor.java:258)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:201)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145)         @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84)         @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:59)         @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183)         @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161)         @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:320)         @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156)         @ org.apache.maven.cli.mavencli.execute(mavencli.java:537)         @ org.apache.maven.cli.mavencli.domain(mavencli.java:196)         @ org.apache.maven.cli.mavencli.main(mavencli.java:141)         @ 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:290)         @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230)         @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409)         @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) caused by: org.apache.maven.project.dependencyresolutionexception: not resolve dependencies project xyz.redacted:project3-ejb:ejb:1.0-snapshot: not find artifact org.jboss:jboss-serialization:jar:1.0.4.final in jboss-releases (http://repository.jboss.org/nexus/content/repositories/releases/)         @ org.apache.maven.project.defaultprojectdependenciesresolver.resolve(defaultprojectdependenciesresolver.java:189)         @ org.apache.maven.lifecycle.internal.lifecycledependencyresolver.getdependencies(lifecycledependencyresolver.java:185)         ... 22 more caused by: org.sonatype.aether.resolution.dependencyresolutionexception: not find artifact org.jboss:jboss-serialization:jar:1.0.4.final in jboss-releases (http://repository.jboss.org/nexus/content/repositories/releases/)         @ org.sonatype.aether.impl.internal.defaultrepositorysystem.resolvedependencies(defaultrepositorysystem.java:375)         @ org.apache.maven.project.defaultprojectdependenciesresolver.resolve(defaultprojectdependenciesresolver.java:183)         ... 23 more caused by: org.sonatype.aether.resolution.artifactresolutionexception: not find artifact org.jboss:jboss-serialization:jar:1.0.4.final in jboss-releases (http://repository.jboss.org/nexus/content/repositories/releases/)         @ org.sonatype.aether.impl.internal.defaultartifactresolver.resolve(defaultartifactresolver.java:538)         @ org.sonatype.aether.impl.internal.defaultartifactresolver.resolveartifacts(defaultartifactresolver.java:216)         @ org.sonatype.aether.impl.internal.defaultrepositorysystem.resolvedependencies(defaultrepositorysystem.java:358)         ... 24 more caused by: org.sonatype.aether.transfer.artifactnotfoundexception: not find artifact org.jboss:jboss-serialization:jar:1.0.4.final in jboss-releases (http://repository.jboss.org/nexus/content/repositories/releases/)         @ org.sonatype.aether.connector.wagon.wagonrepositoryconnector$4.wrap(wagonrepositoryconnector.java:947)         @ org.sonatype.aether.connector.wagon.wagonrepositoryconnector$4.wrap(wagonrepositoryconnector.java:941)         @ org.sonatype.aether.connector.wagon.wagonrepositoryconnector$gettask.run(wagonrepositoryconnector.java:669)         @ org.sonatype.aether.util.concurrency.runnableerrorforwarder$1.run(runnableerrorforwarder.java:60)         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142)         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617)         @ java.lang.thread.run(thread.java:745) [error] [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/dependencyresolutionexception 

this results ssl error because of self-signed certificate. 1 option use http instead of https in repository url.

if want use https might you: problems using maven , ssl behind proxy


Comments