2 Replies Latest reply on Dec 6, 2017 1:54 PM by sanjay05222

    Unknown artifact type[test-jar] with Infinispan 5.2.5.Final

    kovica1

      I'm trying to use infinispan-core and infinispan-cdi, both versions 5.2.5.Final in my maven based JEE 6 application.

      When I build it I get this error:

      Reactor Summary:

       

       

      TestInfinispan .................................... SUCCESS [0.493s]

      TestInfinispan-lib ................................ SUCCESS [2.236s]

      TestInfinispan-ejb ................................ SUCCESS [1.370s]

      TestInfinispan-ear ................................ FAILURE [0.160s]

      ------------------------------------------------------------------------

      BUILD FAILURE

      ------------------------------------------------------------------------

      Total time: 4.401s

      Finished at: Thu Apr 04 15:58:49 CEST 2013

      Final Memory: 29M/342M

      ------------------------------------------------------------------------

      Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.8:generate-application-xml (default-generate-application-xml) on project TestInfinispan-ear: Failed to initialize ear modules: Unknown artifact type[test-jar] -> [Help 1]

       

       

      To see the full stack trace of the errors, re-run Maven with the -e switch.

      Re-run Maven using the -X switch to enable full debug logging.

       

       

      For more information about the errors and possible solutions, please read the following articles:

      [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

       

       

      After correcting the problems, you can resume the build with the command

        mvn <goals> -rf :TestInfinispan-ear

       

      This does not happen on 5.1.8.Final.

       

      I've also attached a sample application to demonstrate the error.

        • 1. Re: Unknown artifact type[test-jar] with Infinispan 5.2.5.Final
          pramajaya

          Hi kovica1,

           

          Try this:

           

          <dependency>

              <groupId>org.infinispan</groupId>

              <artifactId>infinispan-core</artifactId>

              <version>${infinispan.version}</version>

              <scope>compile</scope>

          </dependency>

          <dependency>

              <groupId>org.infinispan</groupId>

              <artifactId>infinispan-cdi</artifactId>

              <version>${infinispan.version}</version>

              <scope>provided</scope>

          </dependency>

           

          Hope it help. Because I experience the same, and it worked that way.

          • 2. Re: Unknown artifact type[test-jar] with Infinispan 5.2.5.Final
            sanjay05222

            I ran the maven in debug mode and I can see that why this is failing,  org.jboss.jbossas:jboss-as-j2se=org.jboss.jbossas:jboss-as-j2se:test-jar:tests:5.1.0.GA:compile  , this transitive dependency get added but looks like that there is not any tests:5.10.GA , if you exclude this transitive dependency you will not get the error anymore .

             

             

             

            Check the dependency Hierarchy , I was using JBOSS EAP 6.4.X version BOM in my maven.