You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a non-modular project A in my workspace that uses m-jar-p 3.3.0 to add the entry com.example.a as automatic module name to its manifest. The project itself builds fine on the command line and also inside Eclipse.
A is used as a dependency in another project B. When I build B on the command line having requires com.example.a in the module-info.java, everything works fine.
In Eclipse this entry is marked with an error so referenced classes from A aren't available. Fixing this error results in requires a in the module descriptor, i.e. the workspace project name, but not the real automatic module name. Therefore the project cannot be built successfully on the command line.
What really puzzles me:
Install A into my local .m2 folder via "mvn clean install", close the project in Eclipse, use the real automatic module name in B's module descriptor => everything works...
I'm using a fresh installation of Eclipse with Adoptium Java 19.0.1:
Version: 2022-12 RC1 (4.26.0 RC1)
Build id: 20221124-2251
M2E - Complete Development Kit: 2.1.0.20221122-2114
M2E - Maven Integration for Eclipse: 2.0.6.20221122-2114
M2E - PDE Integration: 2.0.2.20221122-2012
M2E - POM Editor using LemMinX language server (includes Incubating components): 2.0.1.20221120-2121
M2E - SLF4J over Logback Logging: 2.1.0.20221015-0744
Hi,
I have a non-modular project A in my workspace that uses m-jar-p 3.3.0 to add the entry
com.example.a
as automatic module name to its manifest. The project itself builds fine on the command line and also inside Eclipse.A is used as a dependency in another project B. When I build B on the command line having
requires com.example.a
in themodule-info.java
, everything works fine.In Eclipse this entry is marked with an error so referenced classes from A aren't available. Fixing this error results in
requires a
in the module descriptor, i.e. the workspace project name, but not the real automatic module name. Therefore the project cannot be built successfully on the command line.What really puzzles me:
Install A into my local .m2 folder via "mvn clean install", close the project in Eclipse, use the real automatic module name in B's module descriptor => everything works...
I'm using a fresh installation of Eclipse with Adoptium Java 19.0.1:
Version: 2022-12 RC1 (4.26.0 RC1)
Build id: 20221124-2251
M2E - Complete Development Kit: 2.1.0.20221122-2114
M2E - Maven Integration for Eclipse: 2.0.6.20221122-2114
M2E - PDE Integration: 2.0.2.20221122-2012
M2E - POM Editor using LemMinX language server (includes Incubating components): 2.0.1.20221120-2121
M2E - SLF4J over Logback Logging: 2.1.0.20221015-0744
This seems similar to a problem I once had a couple of years ago:
https://www.eclipse.org/lists/m2e-users/msg05756.html
I've added an example with which you can reproduce the above mentioned behaviour:
example.tar.gz
Do I miss something?
The text was updated successfully, but these errors were encountered: