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

infinispan-embedded does not package transitive compile dependencies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • 9.0.0.Alpha4
    • 8.0.0.Final
    • Build
    • Hide

      Include the infinispan-embedded dependency in your project POM (with compile scope). Execute mvn clean install, or mvn clean compile package. The way file generated does not contain entire dependency tree of infinispan-embedded. If you print dependency tree, then the hierarchy is not printed.

      PS: I have included the dependency as mentioned in the infinispan documentation for version 8.0.0 Final, and I am using Infinispan version 8.0.0 Final

      Show
      Include the infinispan-embedded dependency in your project POM (with compile scope). Execute mvn clean install, or mvn clean compile package. The way file generated does not contain entire dependency tree of infinispan-embedded. If you print dependency tree, then the hierarchy is not printed. PS: I have included the dependency as mentioned in the infinispan documentation for version 8.0.0 Final, and I am using Infinispan version 8.0.0 Final
    • Hide

      Include the transitive dependencies manually in project POM

      Show
      Include the transitive dependencies manually in project POM

      I am using Infinispan in my project (in embedded mode), and have included fhe following POM dependency:
      <dependency>
      <groupId>org.infinispan</groupId>
      <artifactId>infinispan-embedded</artifactId>
      <version>8.0.0.Final</version>
      <scope>compile</scope>
      </dependency>

      I also have many other tool dependencies in my project's POM. When creating a war file out of my project POM, the infinispan-embedded jar gets packaged without its transitive compile dependencies, and hence at runtime, the infinispan cache fails to start with NoClassDefFoundError. All other tools used in the project get packaged with their corresponding transitive dependencies, which are also listed when printing Maven's dependency tree, except for the dependency hierarchy of Infinispan-embedded.

      Regards,
      Manish Velankar.

            slaskawi@redhat.com Sebastian Ɓaskawiec (Inactive)
            mvelanka Manish Velankar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: