Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Conversation

tnn
Copy link

@tnn tnn commented May 13, 2020

"2" is not a allowed module name and the default way of turning
jar-names into Java modules translated into "raml.parser.2" which is not
a valid module name, thus preventing this library to be used in a Java
module project. This introduced a MANIFEST.MF entry recommended by the
Java system to explicitly name the module (removing "2") and this
entry should have no affect on exiting non-module projects.

The error shown was:

[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ pkgd-repository-api ---
[WARNING] Can't extract module name from raml-parser-2-1.0.48.jar: raml.parser.2: Invalid module name: '2' is not a Java identifier

"2" is not a allowed module name and the default way of turning
jar-names into Java modules translated into "raml.parser.2" which is not
a valid module name, thus preventing this library to be used in a Java
module project. This introduced a MANIFEST.MF entry recommended by the
Java system to explicitly name the module (removing "2") and this
entry should have no affect on exiting non-module projects.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant