Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3003

Version 5.2.5.Final of infinispan-cdi test dependencies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.0.0.Final
    • 5.2.5.Final
    • CDI
    • None
      • create JEE based application
      • add infinispan-core and infinispan-cdi, both version 5.2.5.Finalas dependency
      • mvn install
    • Workaround Exists
    • Hide

      The workaround is to change the pom located in your local maven cache (~/.m2/repository/org/infinispan/infinispan-cdi/5.2.5.Final/infinispan-cdi-5.2.5.Final.pom) and use this
      <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>infinispan-server-core</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
      </dependency>

      Show
      The workaround is to change the pom located in your local maven cache (~/.m2/repository/org/infinispan/infinispan-cdi/5.2.5.Final/infinispan-cdi-5.2.5.Final.pom) and use this <dependency> <groupId>${project.groupId}</groupId> <artifactId>infinispan-server-core</artifactId> <type>test-jar</type> <scope>test</scope> </dependency>

    Description

      infinispan-cdi has a test dependency on infinispan-server-core:
      <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>infinispan-server-core</artifactId>
      <type>test-jar</type>
      </dependency>

      which is wrong since it is missing the <scope>test</scope>, so every time I want to use infinispan-cdi in my projects I get:
      Failed to initialize ear modules: Unknown artifact type[test-jar]

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            kovica1 Gregor Kovač (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: