java.lang.AssertionError: Expected maven-archetype packaging: jar expected:<maven-archetype> but was:<jar>

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Another random IT failure on grid caused by http://jira.codehaus.org/browse/MINDEXER-34 {noformat} org.sonatype.nexus.integrationtests.nexus570.Nexus570IndexArchetypeIT.searchForArchetype (from Nexus570IndexArchetypeIT) Failing for the past 1 build (Since #342 ) Took 0.1 sec. edit description Error Message Expected maven-archetype packaging: jar expected:<maven-archetype> but was:<jar> Stacktrace java.lang.AssertionError: Expected maven-archetype packaging: jar expected:<maven-archetype> but was:<jar> at org.testng.Assert.fail(Assert.java:89) at org.testng.Assert.failNotEquals(Assert.java:489) at org.testng.Assert.assertEquals(Assert.java:118) at org.testng.Assert.assertEquals(Assert.java:171) at org.sonatype.nexus.integrationtests.nexus570.Nexus570IndexArchetypeIT.searchForArchetype(Nexus570IndexArchetypeIT.java:48) Standard Output [INFO] Loading Nexus Configuration... [INFO] Configuration loaded succesfully. [INFO] Loading Nexus configuration from /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf/nexus.xml [INFO] Configuration file is invalid, attempting upgrade [INFO] Trying to upgrade the configuration file /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf/nexus.xml [INFO] Upgrading old Nexus configuration file (version 1.0.8) from /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf/nexus.xml [INFO] Nexus configuration file upgraded to current version 1.4.6 succesfully. [INFO] Creating backup from the old file and saving the upgraded configuration. [INFO] Loading Nexus configuration from /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf/nexus.xml [INFO] Configuration loaded succesfully. [INFO] Nexus configuration validated succesfully. [INFO] Applying Nexus Configuration... [INFO] Nexus configuration validated succesfully. =================================== Application context "jetty" dump: "application-port"="36063" (raw: "36063", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/conf/jetty.properties) "application-host"="0.0.0.0" (raw: "0.0.0.0", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/conf/jetty.properties) "nexus-webapp"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus" (raw: "${bundleBasedir}/nexus", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/conf/jetty.properties) "bundleBasedir"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT" (raw: "/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT", src: filter(keyIsIn:[bundleBasedir], system:properties)) "nexus-webapp-context-path"="/nexus" (raw: "/nexus", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/conf/jetty.properties) Total of 5 entries. =================================== =================================== Application context "nexus" dump: "nexus-work"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir" (raw: "/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF/plexus.properties) "index.template.file"="templates/index-debug.vm" (raw: "templates/index-debug.vm", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF/plexus.properties) "runtime"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF" (raw: "${bundleBasedir}/nexus/WEB-INF", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF/plexus.properties) "application-port"="36063" (raw: "36063", src: map: quasiParent (size:5)) "application-host"="0.0.0.0" (raw: "0.0.0.0", src: map: quasiParent (size:5)) "application-conf"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf" (raw: "${nexus-work}/conf", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF/plexus.properties) "nexus-webapp"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus" (raw: "/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus", src: map: quasiParent (size:5)) "nexus-app"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF" (raw: "${runtime}", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF/plexus.properties) "security-xml-file"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf/security.xml" (raw: "${nexus-work}/conf/security.xml", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF/plexus.properties) "log-config-dir"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf" (raw: "/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf", src: filter(keyStartsWith:[nexus.], system:properties)) "bundleBasedir"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT" (raw: "/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT", src: map: quasiParent (size:5)) "nexus-webapp-context-path"="/nexus" (raw: "/nexus", src: map: quasiParent (size:5)) Total of 12 entries. =================================== 2011-08-15 12:15:31 INFO [main-thread-164] - org.sonatype.security.configuration.source.FileSecurityConfigurationSource - Loading Security configuration from /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf/security-configuration.xml Result: org.sonatype.nexus.integrationtests.nexus570.Nexus570IndexArchetypeIT.searchForArchetype() ===> FAILED Standard Error 2011-08-15 12:15:25.944:INFO::Graceful shutdown SelectChannelConnector@0.0.0.0:36063 STARTED 2011-08-15 12:15:25.944:INFO::Graceful shutdown o.e.j.w.WebAppContext{/nexus,file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-15 12:15:27.019:INFO::stopped o.e.j.w.WebAppContext{/nexus,file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-15 12:15:28.013:INFO::jetty-7.4.4.v20110707 2011-08-15 12:15:28.013:INFO:org.sonatype.plexus.jetty.custom.DisableTagLibsListener:Disabling TLD support for: null (context path: /nexus) 2011-08-15 12:15:28.486:INFO::NO JSP Support for /nexus, did not find org.apache.jasper.servlet.JspServlet 2011-08-15 12:15:28.494:INFO:/nexus:Configuring Nexus in bundle... 2011-08-15 12:15:28.494:INFO:/nexus:Setting Plexus basedir context variable to (pre-set in System properties): /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT 2011-08-15 12:15:33.605:INFO::started o.e.j.w.WebAppContext{/nexus,file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-15 12:15:34.328:INFO::Started SelectChannelConnector@0.0.0.0:36063 STARTING 2011-08-15 12:15:34.433:INFO:/nexus:nexus: [Noelios Restlet Engine] - Attaching application: org.sonatype.nexus.rest.NexusApplication@2d82ea6d to URI: /nexus {noformat}
    via by Peter Lynch,
  • Build fails using JDK 8
    via GitHub by paulf
    ,
  • Test issues
    via GitHub by lokeshhctm
    ,
  • TestExchangeClient failures
    via GitHub by electrum
    ,
  • alwaysRun parameter in TestNG
    via Stack Overflow by Konrad Kaliściak
    ,
  • Assert Fails Even Though It Shouldn&#39;t
    via Stack Overflow by DarthOpto
    ,
    • java.lang.AssertionError: Expected maven-archetype packaging: jar expected:<maven-archetype> but was:<jar> at org.testng.Assert.fail(Assert.java:89) at org.testng.Assert.failNotEquals(Assert.java:489) at org.testng.Assert.assertEquals(Assert.java:118) at org.testng.Assert.assertEquals(Assert.java:171) at org.sonatype.nexus.integrationtests.nexus570.Nexus570IndexArchetypeIT.searchForArchetype(Nexus570IndexArchetypeIT.java:48)

    Users with the same issue

    arturgajowy
    arturgajowy10 times, last one,
    Mark
    Mark3 times, last one,
    Nikolay Rybak
    Nikolay Rybak1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    13 more bugmates