wumpz opened a new issue, #8020:
URL: https://github.com/apache/netbeans/issues/8020
### Apache NetBeans version
Apache NetBeans 23
### What happened
For instance I use sometimes org.openide.util or org.openide.util.lookup in
a JPMS multi module project. Now I have to set my module information to require
those jars. Since there is no automatic module name in the jar configured I
have to use the automatic from jar file name generated name, which results in
```java
requires org.openide.util.lookup.RELEASE220;
```
The version number is included.
I would suggest including this automatic module name in the manifest file.
However, I do not know hot to achieve this using the normal ANT build. Using
maven this would be done using somelthing like
```xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.openide.util.lookup</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
```
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
Try to reference any external jar without an automatic module name.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 11
### JDK
17,21
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists