question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to populate module path with all maven dependencies

See original GitHub issue

This issue is close to Issue 89.

If I understand well, the javafx-maven-plugin reconstructs the module graph from the module-infos and populated the module path only with the required modules. That’s a good behaviour in the majority of cases.

But if the application needs modules that are determined dynamically by maven dependency system and cannot be added statically in module-info, this doesn’t work. We would need to add all maven dependencies to the module path and use, e.g, the special --add-modules ALL-MODULE-PATH command line argument. This concerns both run and jlink goals.

Could you consider adding this option ?

EDIT: The Apache maven-jlink-plugin has this option (but not the one that reads the module-info). Unfortunately the development of this plugin seems to have stopped.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
HGuillemetcommented, Jul 17, 2020

Sorry for this late answer. Forget my last message: the compile scope should be included in the runtime path, and it is. I forgot it was the default scope and it means runtime too.

0reactions
abhinayagarwalcommented, Jul 6, 2020

Hi @HGuillemet ,

Do you need a scope which can be used at compile time but not to be used during runtime?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does maven add all dependencies to modulepath by default?
No, Maven puts dependencies to module path only for those Maven modules that have module descriptors ( module-info.java ).
Read more >
Guide to Working with Multiple Modules - Apache Maven
Collects all the available modules to build; Sorts the projects into the correct build order; Builds the selected projects in order. Reactor Sorting....
Read more >
Multi-Module Maven Application with Java Modules - Baeldung
In a standard multi-module Maven project, we add one or more child Maven modules by placing them under the project's root folder and...
Read more >
Maven dependencies | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA lets you add a Maven dependency to your project. We recommend that you specify the dependency inside your POM. Dependencies that ......
Read more >
Building applications with Maven - Quarkus
Adding extension io.quarkus:quarkus-agroal ❌ Cannot find a dependency ... to enable debugging on all hosts, you can use the -DdebugHost option like so:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found