Thursday, 5 June 2025

Intellij: Use local module instead of maven dependency on JBoss

 Intellij 2025.1.1.1


Sometimes you want to use a dependency from your project workspace when running a server, in my case an old JBoss.

Unfortunately the JBoss does not get this right out of the box , so I made this change:

- right click on the JBoss in the Services tab

- Edit Configuration

- Deployment tab

- Edit artifact (in my case the ear:exploded)

- In the Output Layout mark the .war entry

- press the + element

- Choose Module Output

- Choose the module you want to be used


This way I got my JBoss running with the local module


Addendum:

Sometimes this stops working, unload and load seems to work most of the time to fix it




No comments:

Post a Comment