[infinispan-issues] [JBoss JIRA] (ISPN-5919) infinispan-embedded does not package transitive compile dependencies
Sebastian Łaskawiec (JIRA)
issues at jboss.org
Mon Jul 25 02:10:00 EDT 2016
[ https://issues.jboss.org/browse/ISPN-5919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269652#comment-13269652 ]
Sebastian Łaskawiec commented on ISPN-5919:
-------------------------------------------
Hi [~mvelanka]!
This is by design. The {{infinispan-embedded}} (uber jar as we call it) should contain all necessary dependencies in it (this is why it is so big). It should only contain dependencies to the APIs (such as JCache) because they might be provided by the container.
If you'd like to make use of Maven dependency mechanism - you might add {{infinispan-core}} or other modules to your project. Very often I see people using {{infinispan-spring-embedded}} like this.
Thanks
Sebastian
> infinispan-embedded does not package transitive compile dependencies
> --------------------------------------------------------------------
>
> Key: ISPN-5919
> URL: https://issues.jboss.org/browse/ISPN-5919
> Project: Infinispan
> Issue Type: Bug
> Components: Build process
> Affects Versions: 8.0.0.Final
> Environment: Windows 7, Maven 3.3.3
> Reporter: Manish Velankar
> Assignee: Sebastian Łaskawiec
> Priority: Blocker
> Labels: maven
> Fix For: 9.0.0.Alpha4
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list