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

Strange run error re mainClass value #182

Open
arnieHouston opened this issue Jul 5, 2024 · 0 comments
Open

Strange run error re mainClass value #182

arnieHouston opened this issue Jul 5, 2024 · 0 comments

Comments

@arnieHouston
Copy link

arnieHouston commented Jul 5, 2024

I have a multi-module maven project. One submodule (myappname-app) is the only place the plugin is mentioned. And yet, I get the below error when Maven processes and parent POM instead of the module's POM when using only the javafx:run goal.

Failed to execute goal org.openjfx:javafx-maven-plugin:0.0.8:run (default-cli) on project appModule: The parameters 'mainClass' for goal org.openjfx:javafx-maven-plugin:0.0.8:run are missing or invalid.

It's like it's applying this config at the wrong level instead of the sub-module. Do I need to add a specific GOAL setting?

Config from sub-module POM, not the parent POM:

<plugin> <groupId>org.openjfx</groupId> <artifactId>javafx-maven-plugin</artifactId> <configuration> <jlinkExecutable>/Library/Java/JavaVirtualMachines/jdk-22.0.1.jdk/Contents/Home/bin/jlink</jlinkExecutable> </configuration> <executions> <execution> <id>default-cli</id> <configuration> <mainClass>appModuleName/a.b.c.d.App</mainClass> <options> <option>--add-opens</option> <option>java.base/java.lang=a.b.c.d</option> </options> </configuration> </execution> </executions> </plugin>

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