Global module Galleon layer

50 views
Skip to first unread message

Slawomir Jaranowski

unread,
Sep 19, 2025, 4:56:12 AM9/19/25
to WildFly
Hi,

I have created a module and layer in Galleon feature pack, 
I would lik add module to global-modules during layer installation.

I can do it by cli command:

/subsystem=ee:list-add(name=global-modules, value={name=my.module})

How can I do the same in layer-spec/feature spec ...

By the way I can not find a documentation / examples how to translate a cli command into layer-spec/feature spec .. 

jde...@redhat.com

unread,
Sep 19, 2025, 6:46:27 AM9/19/25
to Slawomir Jaranowski, WildFly
Hi,
The syntax to add to your layer would be:
    <feature spec="subsystem.ee">
        <param name="global-modules" value="[{name=a.b.c, slot=foo}, {name=d.e.f, slot=bar}]"/>
    </feature>

We don’t have documentation for such mapping, the current source of information is the WildFly src code.  But, as your case highlights, if there is no usage of a feature, it is not present.

 

From: wil...@googlegroups.com <wil...@googlegroups.com> on behalf of Slawomir Jaranowski <s.jara...@gmail.com>
Date: Friday, 19 September 2025 at 10:56
To: WildFly <wil...@googlegroups.com>
Subject: Global module Galleon layer

Sent from Outlook for Mac

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/b699562c-ed5e-46e5-ae7f-bed2164a6b30n%40googlegroups.com.

Slawomir Jaranowski

unread,
Sep 19, 2025, 9:40:01 AM9/19/25
to jde...@redhat.com, WildFly
On Fri, 19 Sept 2025 at 12:46, jde...@redhat.com <jde...@redhat.com> wrote:
>
> Hi,
> The syntax to add to your layer would be:
> <feature spec="subsystem.ee">
> <param name="global-modules" value="[{name=a.b.c, slot=foo}, {name=d.e.f, slot=bar}]"/>
> </feature>
>

Thanks, this works in a way that all items in the list are replaced.

Is it possible to add one element to global-modules without removing
existing ones?

> We don’t have documentation for such mapping, the current source of information is the WildFly src code. But, as your case highlights, if there is no usage of a feature, it is not present.
>
>
>
> From: wil...@googlegroups.com <wil...@googlegroups.com> on behalf of Slawomir Jaranowski <s.jara...@gmail.com>
> Date: Friday, 19 September 2025 at 10:56
> To: WildFly <wil...@googlegroups.com>
> Subject: Global module Galleon layer
>
> Sent from Outlook for Mac
>
> Hi,
>
> I have created a module and layer in Galleon feature pack,
> I would lik add module to global-modules during layer installation.
>
> I can do it by cli command:
>
> /subsystem=ee:list-add(name=global-modules, value={name=my.module})
>
> How can I do the same in layer-spec/feature spec ...
>
> By the way I can not find a documentation / examples how to translate a cli command into layer-spec/feature spec ..
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/wildfly/b699562c-ed5e-46e5-ae7f-bed2164a6b30n%40googlegroups.com.



--
Sławomir Jaranowski

jde...@redhat.com

unread,
Sep 22, 2025, 5:11:42 AM9/22/25
to Slawomir Jaranowski, WildFly
Hi,
you can use the following syntax (In this case we add 2 global-modules):
<feature spec="subsystem.ee">
      <feature spec="subsystem.ee.global-modules">
        <param name="name" value=“a.b.c"/>
        <param name="slot" value=“foo"/>
      </feature>
      <feature spec="subsystem.ee.global-modules">
        <param name="name" value=“d.e.f"/>
        <param name="slot" value=“bar"/>
      </feature>
</feature>
You can use the same syntax somewhere else to add more global-modules.

Slawomir Jaranowski

unread,
Dec 22, 2025, 9:59:14 AM12/22/25
to WildFly
Configuration such:


    <feature spec="subsystem.ee">
        <feature spec="subsystem.ee.global-modules">
            <param name="name" value="a.b.c"/>
        </feature>
    </feature>

Was working ok with wildfly-galleon-maven-plugin 7.4.0.Final, with 8.0.2.Final I have:

Execution wildfly-feature-pack-build of goal org.wildfly.galleon-plugins:wildfly-galleon-maven-plugin:8.0.2.Final:build-user-feature-pack failed: java.lang.RuntimeException: Not correct parent for spec subsystem.ee.global-modules                                                        
[ERROR] Config is [subsystem.ee.global-modules name=a.b.c]
[ERROR]  Parents [[subsystem.ee items=[subsystem.ee.global-modules name=a.b.c]]]

Can you help again - what correct configuration should be?
Reply all
Reply to author
Forward
0 new messages