Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add automatic JPMS module name manifest entry to all product JARs #352

Open
lprimak opened this issue Jun 30, 2023 · 0 comments
Open

Comments

@lprimak
Copy link

lprimak commented Jun 30, 2023

Describe the bug

Currently, compiling against any MicroProfile Spec JARs of modular applications causes a mean warning:

[WARN] *****************************************************************************************************************************************************************************************************
[WARN] * Required filename-based automodules detected: [microprofile-config-api-3.0.2.jar]. Please don't publish this project to a public artifact repository! *
[WARN] *****************************************************************************************************************************************************************************************************

Please add the manifest entry as described here: http://branchandbound.net/blog/java/2017/12/automatic-module-name/

            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <Automatic-Module-Name>microprofile.config.api</Automatic-Module-Name>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>

This will resolve future incompatibilities with JPMS-based applications, while preserving compatibility with Java 8, if necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant