Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Maven Bundle Plugin not including generated TLD in jar

Avatar

Level 1

I am using tldgen to generate a tld file, which it is placing in the target/classes/META-INF.  However, when the bundle is created, it does not include the tld file.  The plugin has very little in the way of configuration:

            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Sling-Model-Packages>
                            com.flagstar.flagstaraem.core
                        </Sling-Model-Packages>
                    </instructions>
                </configuration>
               
            </plugin>

 

Any help on getting the tld file included into the resulting jar would be appreciated.

1 Reply

Avatar

Level 9

Hi,

Make use of <Include-Resource>

Thanks,