Skip to content

Command execution failed: ... -q --multi-release 17 --ignore-missing-deps --print-module-deps... #288

Description

@Leonardo-Zhou

This is my first time to submit an issuse. So I dont know if there is any specification when submitting an issuse.
I encountered a strange thing while packaging my javafx application to .exe through mvn package.
When I add some dependencies in pom.xml and add them to module-info.java, then some went wrong.

Command execution failed: D:\Program Files\Java\LibericaJDK-17-Full\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps [Ljava.lang.String;@54556723 C:\Users\Leo\IdeaProjects\P\target\P\libs*.jar C:\Users\Leo\IdeaProjects\P\target\P-1.0-SNAPSHOT-runnable.jar

this is my pom.xml
`

4.0.0

<groupId>com.example</groupId>
<artifactId>PasswordManager</artifactId>
<version>1.0-SNAPSHOT</version>
<name>PasswordManager</name>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <junit.version>5.9.1</junit.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-controls</artifactId>
        <version>19</version>
    </dependency>
    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-fxml</artifactId>
        <version>17</version>
    </dependency>

    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-api</artifactId>
        <version>${junit.version}</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-engine</artifactId>
        <version>${junit.version}</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>cn.hutool</groupId>
        <artifactId>hutool-core</artifactId>
        <version>5.8.11</version>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.10.1</version>
            <configuration>
                <source>17</source>
                <target>17</target>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-maven-plugin</artifactId>
            <version>0.0.8</version>
            <executions>
                <execution>
                    <!-- Default configuration for running with: mvn clean javafx:run -->
                    <id>default-cli</id>
                    <configuration>
                        <mainClass>com.example.p/com.example.p.Main</mainClass>
                        <launcher>app</launcher>
                        <jlinkZipName>app</jlinkZipName>
                        <jlinkImageName>app</jlinkImageName>
                        <noManPages>true</noManPages>
                        <stripDebug>true</stripDebug>
                        <noHeaderFiles>true</noHeaderFiles>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>io.github.fvarrui</groupId>
            <artifactId>javapackager</artifactId>
            <version>1.6.7</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>package</goal>
                    </goals>
                    <configuration>

                        <mainClass>com.example.p.Main</mainClass>
                        <bundleJre>true</bundleJre>
                        <generateInstaller>false</generateInstaller>
                        <administratorRequired>false</administratorRequired>
                        <platform>windows</platform>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

`

my module-info.java
`module com.example.p {
requires javafx.controls;
requires javafx.fxml;
requires hutool.core;

opens com.example.p to javafx.fxml;
exports com.example.p;

}`

and I added noting in the HelloController and HelloApplication.
It seems that whatever dependency I add, It will goes wrong.
Woundering if someone can help me.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions