wildfly / wildfly-glow

Galleon Layers Output from War: Automatic discover of WildFly provisioning information from an application.
Apache License 2.0
7 stars 6 forks source link

NPE when looking up feature pack #6

Closed jamezp closed 1 year ago

jamezp commented 1 year ago

https://github.com/wildfly/wildfly-glow/blob/a39fb6e8553ad57a3075f6ac930d55c7dd1a3728/core/src/main/java/org/wildfly/glow/GlowSession.java#L802

The above throws a NullPointException as the key seems to be different than what is expected for the following configurattion.

<plugin>
    <groupId>org.wildfly.plugins</groupId>
    <artifactId>wildfly-maven-plugin</artifactId>
    <version>${version.wildfly-maven-plugin}</version>
    <configuration>
        <jboss-home>${jboss.home}</jboss-home>
        <provisioning-dir>${jboss.home}</provisioning-dir>
        <overwriteProvisionedServer>true</overwriteProvisionedServer>
        <discover-provisioning-info>
            <context>cloud</context>
        </discover-provisioning-info>
        <feature-packs>
            <feature-pack>
                <location>wildfly@maven(org.jboss.universe:community-universe)#29.0.1.Final</location>
            </feature-pack>
        </feature-packs>
        <galleon-options>
            <jboss-fork-embedded>true</jboss-fork-embedded>
        </galleon-options>
    </configuration>
</plugin>

The key in the map is org.wildfly:wildfly-galleon-pack:29.0.1.Final and the fpid being used is wildfly@maven(org.jboss.universe:community-universe)#29.0.1.Final. It looks like somewhere the universe to GAV is not being done.