java.io.IOException: Error resolving artifact org.glassfish.jersey.core:jersey-common:jar:2.14-SNAPSHOT: Could not find artifact org.glassfish.jersey.core:jersey-common:jar:2.14-SNAPSHOT in VG (http://192.168.1.30:8081/nexus/content/groups/public/)

Java.net JIRA | sarxos | 2 years ago
  1. 0

    Hello Jersey Team, Some tests are failing on master due to missing asm dependency. I fixed this by modifying this file: {code} containers/jdk-http/pom.xml {code} And adding missing dependency with test cope: {code} <dependencies> <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>3.3.1</version> <scope>test</scope> </dependency> </dependencies> {code} Now jersey-container-jdk-http module tests are passing. I can push this change to Jersey repository on github if you like. The failure log: {code} [INFO] ------------------------------------------------------------------------ [INFO] Building jersey-container-jdk-http 2.14-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ jersey-container-jdk-http --- [INFO] [INFO] --- build-helper-maven-plugin:1.7:parse-version (parse-version) @ jersey-container-jdk-http --- [INFO] [INFO] --- maven-istack-commons-plugin:2.6.1:rs-gen (default) @ jersey-container-jdk-http --- Resources: org/glassfish/jersey/jdkhttp/internal/localization.properties Skipping /home/sarxos/workspace/jersey/containers/jdk-http/src/main/resources/org/glassfish/jersey/jdkhttp/internal/localization.properties [INFO] [INFO] --- build-helper-maven-plugin:1.7:add-source (default) @ jersey-container-jdk-http --- [INFO] Source directory: /home/sarxos/workspace/jersey/containers/jdk-http/target/generated-sources/rsrc-gen added. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jersey-container-jdk-http --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jersey-container-jdk-http --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 5 source files to /home/sarxos/workspace/jersey/containers/jdk-http/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jersey-container-jdk-http --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/sarxos/workspace/jersey/containers/jdk-http/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jersey-container-jdk-http --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ jersey-container-jdk-http --- [INFO] Surefire report directory: /home/sarxos/workspace/jersey/containers/jdk-http/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.glassfish.jersey.jdkhttp.LifecycleListenerTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.364 sec <<< FAILURE! - in org.glassfish.jersey.jdkhttp.LifecycleListenerTest testStartupShutdownHooks(org.glassfish.jersey.jdkhttp.LifecycleListenerTest) Time elapsed: 0.29 sec <<< ERROR! java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.glassfish.jersey.server.ResourceConfig.scanClasses(ResourceConfig.java:885) at org.glassfish.jersey.server.ResourceConfig._getClasses(ResourceConfig.java:849) at org.glassfish.jersey.server.ResourceConfig.getClasses(ResourceConfig.java:755) at org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(ResourceConfig.java:1181) at org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(ResourceConfig.java:1154) at org.glassfish.jersey.server.ResourceConfig.createRuntimeConfig(ResourceConfig.java:1150) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:318) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:273) at org.glassfish.jersey.jdkhttp.JdkHttpHandlerContainer.<init>(JdkHttpHandlerContainer.java:98) at org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:104) at org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:85) at org.glassfish.jersey.jdkhttp.AbstractJdkHttpServerTester.startServer(AbstractJdkHttpServerTester.java:113) at org.glassfish.jersey.jdkhttp.LifecycleListenerTest.testStartupShutdownHooks(LifecycleListenerTest.java:146) testReload(org.glassfish.jersey.jdkhttp.LifecycleListenerTest) Time elapsed: 0.016 sec <<< ERROR! java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.glassfish.jersey.server.ResourceConfig.scanClasses(ResourceConfig.java:885) at org.glassfish.jersey.server.ResourceConfig._getClasses(ResourceConfig.java:849) at org.glassfish.jersey.server.ResourceConfig.getClasses(ResourceConfig.java:755) at org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(ResourceConfig.java:1181) at org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(ResourceConfig.java:1154) at org.glassfish.jersey.server.ResourceConfig.createRuntimeConfig(ResourceConfig.java:1150) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:318) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:273) at org.glassfish.jersey.jdkhttp.JdkHttpHandlerContainer.<init>(JdkHttpHandlerContainer.java:98) at org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:104) at org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:85) at org.glassfish.jersey.jdkhttp.AbstractJdkHttpServerTester.startServer(AbstractJdkHttpServerTester.java:113) at org.glassfish.jersey.jdkhttp.LifecycleListenerTest.testReload(LifecycleListenerTest.java:111) Running org.glassfish.jersey.jdkhttp.JdkHttpPackageTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.02 sec <<< FAILURE! - in org.glassfish.jersey.jdkhttp.JdkHttpPackageTest testJdkHttpPackage(org.glassfish.jersey.jdkhttp.JdkHttpPackageTest) Time elapsed: 0.02 sec <<< ERROR! java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.glassfish.jersey.server.ResourceConfig.scanClasses(ResourceConfig.java:885) at org.glassfish.jersey.server.ResourceConfig._getClasses(ResourceConfig.java:849) at org.glassfish.jersey.server.ResourceConfig.getClasses(ResourceConfig.java:755) at org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(ResourceConfig.java:1181) at org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(ResourceConfig.java:1154) at org.glassfish.jersey.server.ResourceConfig.createRuntimeConfig(ResourceConfig.java:1150) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:318) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:273) at org.glassfish.jersey.jdkhttp.JdkHttpHandlerContainer.<init>(JdkHttpHandlerContainer.java:98) at org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:104) at org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:85) at org.glassfish.jersey.jdkhttp.AbstractJdkHttpServerTester.startServer(AbstractJdkHttpServerTester.java:113) at org.glassfish.jersey.jdkhttp.JdkHttpPackageTest.testJdkHttpPackage(JdkHttpPackageTest.java:79) Running org.glassfish.jersey.jdkhttp.RuntimeDelegateTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.34 sec - in org.glassfish.jersey.jdkhttp.RuntimeDelegateTest Running org.glassfish.jersey.jdkhttp.BasicJdkHttpServerTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.023 sec <<< FAILURE! - in org.glassfish.jersey.jdkhttp.BasicJdkHttpServerTest testCreateHttpsServer(org.glassfish.jersey.jdkhttp.BasicJdkHttpServerTest) Time elapsed: 0.014 sec <<< ERROR! java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.glassfish.jersey.server.ResourceConfig.scanClasses(ResourceConfig.java:885) at org.glassfish.jersey.server.ResourceConfig._getClasses(ResourceConfig.java:849) at org.glassfish.jersey.server.ResourceConfig.getClasses(ResourceConfig.java:755) at org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(ResourceConfig.java:1181) at org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(ResourceConfig.java:1154) at org.glassfish.jersey.server.ResourceConfig.createRuntimeConfig(ResourceConfig.java:1150) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:318) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:273) at org.glassfish.jersey.jdkhttp.JdkHttpHandlerContainer.<init>(JdkHttpHandlerContainer.java:98) at org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:104) at org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:85) at org.glassfish.jersey.jdkhttp.BasicJdkHttpServerTest.testCreateHttpsServer(BasicJdkHttpServerTest.java:87) testCreateHttpServer(org.glassfish.jersey.jdkhttp.BasicJdkHttpServerTest) Time elapsed: 0.008 sec <<< ERROR! java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.glassfish.jersey.server.ResourceConfig.scanClasses(ResourceConfig.java:885) at org.glassfish.jersey.server.ResourceConfig._getClasses(ResourceConfig.java:849) at org.glassfish.jersey.server.ResourceConfig.getClasses(ResourceConfig.java:755) at org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(ResourceConfig.java:1181) at org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.<init>(ResourceConfig.java:1154) at org.glassfish.jersey.server.ResourceConfig.createRuntimeConfig(ResourceConfig.java:1150) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:318) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:273) at org.glassfish.jersey.jdkhttp.JdkHttpHandlerContainer.<init>(JdkHttpHandlerContainer.java:98) at org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:104) at org.glassfish.jersey.jdkhttp.JdkHttpServerFactory.createHttpServer(JdkHttpServerFactory.java:85) at org.glassfish.jersey.jdkhttp.BasicJdkHttpServerTest.testCreateHttpServer(BasicJdkHttpServerTest.java:78) Results : Tests in error: LifecycleListenerTest.testStartupShutdownHooks:146->AbstractJdkHttpServerTester.startServer:113 » NoClassDefFound LifecycleListenerTest.testReload:111->AbstractJdkHttpServerTester.startServer:113 » NoClassDefFound JdkHttpPackageTest.testJdkHttpPackage:79->AbstractJdkHttpServerTester.startServer:113 » NoClassDefFound BasicJdkHttpServerTest.testCreateHttpsServer:87 » NoClassDefFound org/objectwe... BasicJdkHttpServerTest.testCreateHttpServer:78 » NoClassDefFound org/objectweb... Tests run: 6, Failures: 0, Errors: 5, Skipped: 0 {code}

    Java.net JIRA | 2 years ago | sarxos
    java.io.IOException: Error resolving artifact org.glassfish.jersey.core:jersey-common:jar:2.14-SNAPSHOT: Could not find artifact org.glassfish.jersey.core:jersey-common:jar:2.14-SNAPSHOT in VG (http://192.168.1.30:8081/nexus/content/groups/public/)
  2. 0

    RuleEngine install fails

    GitHub | 2 months ago | SuperOok
    java.io.IOException: Error resolving artifact org.openhab.distro:openhab-aggregate-xml:xml:features:2.0.0.b3: Could not find artifact org.openhab.distro:openhab-aggregate-xml:xml:features:2.0.0.b3 in oh-releases-repo (https://jcenter.bintray.com/) : mvn:org.openhab.distro/openhab-aggregate-xml/2.0.0.b3/xml/features
  3. 0

    Camel - Users - Error when executing: install -s mvn:com.packt/sample

    nabble.com | 11 months ago
    java.io.IOException: Error resolving artifact net.lr.tasklist:tasklist-features:xml:1.0.0-SNAPSHOT: Could not find artifact net.lr.tasklist:tasklist-features:xml:1.0.0-SNAPSHOT in defaultlocal (file:/Users/christian/Downloads/cschneider-Karaf-Tutorial-96070cf/tasklist/tasklist-itests/target/exam/a6104df3-464c-4a77-9f6e-00edcb58ee3b/$%7Buser.home%7D/.m2/repository/)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Known Limitations - CA Performance Management - 2.7 - CA Technologies Documentation

    ca.com | 5 months ago
    java.io.IOException: Error resolving artifact com.ca.im:data-mgmt.provision:xml:features:2.7.0-RELEASE-137: Could not find artifact com.ca.im:data-mgmt.provision:xml:features:2.7.0-RELEASE-137 in central (http://repo1.maven.org/maven2/)
  6. 0

    报错:Could not find artifact com.gzydt.report:gzydt-report:xml:features:1.0.0 in maven.central.repo - myblog_dhy的专栏 - 博客频道 - CSDN.NET

    csdn.net | 5 months ago
    org.apache.karaf.shell.console.MultiException: Unable to add repositories: Error resolving artifact com.gzydt.report:gzydt-report:xml:features:1.0.0: Could not find artifact com.gzydt.report:gzydt-report:xml:features:1.0.0 in maven.central.repo (http://repo1.maven.org/maven2/)

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Error resolving artifact org.glassfish.jersey.core:jersey-common:jar:2.14-SNAPSHOT: Could not find artifact org.glassfish.jersey.core:jersey-common:jar:2.14-SNAPSHOT in VG (http://192.168.1.30:8081/nexus/content/groups/public/)

      at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve()
    2. Pax mvn
      Connection.getInputStream
      1. org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:258)
      2. org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:239)
      3. org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:223)
      4. org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:122)
      4 frames
    3. Java RT
      URL.openStream
      1. java.net.URL.openStream(URL.java:1038)
      1 frame
    4. OPS4J Pax Exam Forked Test Container
      ForkedTestContainer.start
      1. org.ops4j.pax.exam.forked.provision.StreamUtils.streamCopy(StreamUtils.java:103)
      2. org.ops4j.pax.exam.forked.provision.PlatformImpl.download(PlatformImpl.java:133)
      3. org.ops4j.pax.exam.forked.ForkedTestContainer.downloadBundle(ForkedTestContainer.java:352)
      4. org.ops4j.pax.exam.forked.ForkedTestContainer.installAndStartBundles(ForkedTestContainer.java:281)
      5. org.ops4j.pax.exam.forked.ForkedTestContainer.start(ForkedTestContainer.java:150)
      5 frames
    5. OPS4J Pax Exam UI Low Level SPI
      AllConfinedStagedReactor.invoke
      1. org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactor.invoke(AllConfinedStagedReactor.java:79)
      1 frame
    6. OPS4J Pax Exam Driver JUnit4
      ProbeRunner$2.evaluate
      1. org.ops4j.pax.exam.junit.impl.ProbeRunner$2.evaluate(ProbeRunner.java:278)
      1 frame
    7. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      2. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      9. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      9 frames
    8. OPS4J Pax Exam Driver JUnit4
      PaxExam.run
      1. org.ops4j.pax.exam.junit.impl.ProbeRunner.run(ProbeRunner.java:112)
      2. org.ops4j.pax.exam.junit.PaxExam.run(PaxExam.java:93)
      2 frames
    9. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      3 frames
    10. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      3 frames