How to remove a thorntail fraction in pom file

17 views
Skip to first unread message

Hamed Hatami

unread,
May 20, 2020, 10:38:14 AM5/20/20
to Thorntail
Hi there,


I need to remove infinispan fraction from packaging and I didn't add infinispan as a dependency but it's being added automatically

How can I remove infinispan fraction

Ladislav Thon

unread,
May 20, 2020, 10:53:48 AM5/20/20
to thor...@googlegroups.com

Hi,

it often comes transitively when something else needs Infinispan. From the top of my head, it's at least JPA and remote EJBs. Do you perhaps have one of those?

LT

--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/13924e01-5e07-4101-b082-c22933487741%40googlegroups.com.

Hamed Hatami

unread,
May 20, 2020, 11:22:43 AM5/20/20
to Thorntail

of course, I have JPA fraction in my dependency

On Wednesday, May 20, 2020 at 4:53:48 PM UTC+2, Ladislav Thon wrote:

Hi,

it often comes transitively when something else needs Infinispan. From the top of my head, it's at least JPA and remote EJBs. Do you perhaps have one of those?

LT

On 20. 05. 20 16:14, Hamed Hatami wrote:
Hi there,


I need to remove infinispan fraction from packaging and I didn't add infinispan as a dependency but it's being added automatically

How can I remove infinispan fraction
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thor...@googlegroups.com.

Hamed Hatami

unread,
May 20, 2020, 11:22:43 AM5/20/20
to Thorntail
Of course, I'm using JPA fraction


On Wednesday, May 20, 2020 at 4:53:48 PM UTC+2, Ladislav Thon wrote:

Hi,

it often comes transitively when something else needs Infinispan. From the top of my head, it's at least JPA and remote EJBs. Do you perhaps have one of those?

LT

On 20. 05. 20 16:14, Hamed Hatami wrote:
Hi there,


I need to remove infinispan fraction from packaging and I didn't add infinispan as a dependency but it's being added automatically

How can I remove infinispan fraction
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thor...@googlegroups.com.

Ladislav Thon

unread,
May 20, 2020, 12:04:31 PM5/20/20
to thor...@googlegroups.com

OK, in that case, I don't think we can get rid of it. You can try adding a dependency exclusion, but I think that will either end up badly, or won't have any effect.

I assume you're trying to use Infinispan manually and the Infinispan fraction somehow collides with what you're trying to do?

There's probably some magic you can do using jboss-deployment-structure.xml: https://docs.wildfly.org/18/Developer_Guide.html#jboss-deployment-structure-file

You can try excluding the subsystem, but I think that would also end up badly.

You can instead try adding an exclusion for the org.infinispan module (I think we probably expose this module to the deployment automatically, even though WildFly doesn't), so that the built-in Infinispan won't be available to the deployment classloader, and the Infinispan JARs that come into your WEB-INF/lib because of your explicit Infinispan dependencies will be used instead.

Hope that helps,

LT

To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/e74b185d-4e6e-4b58-8930-9948656289ee%40googlegroups.com.

Ladislav Thon

unread,
May 20, 2020, 12:11:14 PM5/20/20
to thor...@googlegroups.com

One more thing: I'm not entirely sure why you can't use Infinispan that is inside Thorntail. Here's a small test that demonstrates it's possible: https://github.com/rhoar-qe/thorntail-test-suite/tree/master/wildfly/infinispan The test uses a local cache, but I think it should be possible to use a replicated or distributed cache as well.

If you could take that test and modify it to demonstrate the failure you're having, that would help figuring out what's wrong.

LT

Ladislav Thon

unread,
May 20, 2020, 12:12:27 PM5/20/20
to thor...@googlegroups.com

And here's an example that shows how to use a remote Infinispan cluster over Hot Rod: https://github.com/thorntail-examples/cache

LT

Reply all
Reply to author
Forward
0 new messages