JavaPackager icon indicating copy to clipboard operation
JavaPackager copied to clipboard

I need help about that

Open Tuanhung2008 opened this issue 1 year ago • 1 comments

I'm submitting a…

  • [ ] bug report
  • [ ] feature request
  • [x] other

Short description of the issue/suggestion: This is error : Failed to execute goal io.github.fvarrui:javapackager:1.7.2:package (build-launcher-without-updater) on project SvinLauncher: 'C:\mnt\svalka\Dolgoye Hraneniye\stuff\Repositories\Archive\SvinLauncher\jrefx' is not a directory! -> [Help 1] This is my pom.xml ` <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion>

<groupId>ru.svinland</groupId>
<artifactId>SvinLauncher</artifactId>
<version>2.6</version>
<packaging>jar</packaging>

<properties>
  <maven.compiler.target>17</maven.compiler.target>
  <maven.compiler.source>17</maven.compiler.source>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  <updatedNameExe>Updated</updatedNameExe>
  <launch4j.version>1.0.2.4</launch4j.version>
</properties>

<build>
    <resources>
        <resource>
            <directory>src/main/java</directory>
        </resource>
    </resources>
    <plugins>
        <!--<plugin>
            <artifactId>maven-shade-plugin</artifactId>
            <version>3.2.4</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>shade</goal>
                    </goals>
                    <configuration>
                        <filters>
                            <filter>
                                <artifact>*:*</artifact>
                                <excludes>
                                    <exclude>module-info.class</exclude>
                                    <exclude>log4j2.properties</exclude>
                                    <exclude>META-INF/maven/</exclude>
                                </excludes>
                            </filter>
                        </filters>
                    </configuration>
                </execution>
            </executions>
        </plugin>-->
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.10.1</version>
            <configuration>
                <source>17</source>
                <target>17</target>
                <annotationProcessorPaths>
                    <annotationProcessorPath>
                        <groupId>org.projectlombok</groupId>
                        <artifactId>lombok</artifactId>
                        <version>1.18.26</version>
                    </annotationProcessorPath>
                </annotationProcessorPaths>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-maven-plugin</artifactId>
            <version>0.0.8</version>
            <executions>
                <execution>
                    <id>default-cli</id>
                    <configuration>
                        <mainClass>ru.svinland.svinlauncher/ru.svinland.svinlauncher.SvinLauncher</mainClass>
                        <launcher>app</launcher>
                        <jlinkZipName>app</jlinkZipName>
                        <jlinkImageName>app</jlinkImageName>
                        <noManPages>true</noManPages>
                        <stripDebug>true</stripDebug>
                        <noHeaderFiles>true</noHeaderFiles>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <artifactId>maven-jar-plugin</artifactId>
            <version>3.1.0</version>
            <configuration>
                <archive>
                    <manifest>
                        <addClasspath>true</addClasspath>
                        <classpathPrefix>lib/</classpathPrefix>
                        <mainClass>ru.svinland.svinlauncher.SvinLauncher</mainClass>
                    </manifest>
                </archive>
            </configuration>
        </plugin>
        <plugin>
            <groupId>io.github.fvarrui</groupId>
            <artifactId>javapackager</artifactId>
            <version>1.7.2</version>
            <executions>
                <execution>
                    <id>build-launcher-without-updater</id>
                    <phase>package</phase>
                    <goals>
                        <goal>package</goal>
                    </goals>
                    <configuration>
                        <mainClass>ru.svinland.svinlauncher.SvinLauncher</mainClass>
                        <name>Updated</name>
                        <bundleJre>true</bundleJre>
                        <platform>windows</platform>
                        <copyDependencies>true</copyDependencies>
                        <generateInstaller>false</generateInstaller>
                        <administratorRequired>false</administratorRequired>
                        <jrePath>/mnt/svalka/Dolgoye Hraneniye/stuff/Repositories/Archive/SvinLauncher/jrefx</jrePath>
                        <organizationName>SvinLand</organizationName>
                        <organizationUrl>https://svinland.ru</organizationUrl>
                        <winConfig>
                            <wrapJar>true</wrapJar>
                            <icoFile>${project.basedir}/assets/windows/SvinLauncher.ico</icoFile>
                            <companyName>SvinLand</companyName>
                            <fileVersion>${launch4j.version}</fileVersion>
                            <txtFileVersion>${launch4j.version}</txtFileVersion>
                            <productVersion>${launch4j.version}</productVersion>
                            <txtProductVersion>${launch4j.version}</txtProductVersion>
                            <fileDescription>${description}</fileDescription>
                            <copyright>SvinLand</copyright>
                            <productName>${updatedNameExe}</productName>
                            <internalName>${updatedNameExe}</internalName>
                            <originalFilename>${updatedNameExe}.exe</originalFilename>
                            <setupMode>installForCurrentUser</setupMode>
                            <generateMsi>false</generateMsi>
                            <generateMsm>false</generateMsm>
                            <setupLanguages>
                                <russian>compiler:Languages\Russian.isl</russian>
                            </setupLanguages>
                            <createDesktopIconTask>true</createDesktopIconTask>
                            <!--<signing>
                                <keystore>C:\Certificates\Launcher.jks</keystore>
                                <storepass>q58PYcrKNao24S7t7MDLkGHIhrfczJnGitypSfrz</storepass>
                                <alias>svinland</alias>
                            </signing>-->
                        </winConfig>
                    </configuration>
                </execution>
                <execution>
                    <id>build-with-updater</id>
                    <phase>package</phase>
                    <goals>
                        <goal>package</goal>
                    </goals>
                    <configuration>
                        <mainClass>ru.svinland.svinupdater.SvinUpdater</mainClass>
                        <bundleJre>true</bundleJre>
                        <administratorRequired>false</administratorRequired>
                        <platform>windows</platform>
                        <runnableJar>/mnt/svalka/Dolgoye Hraneniye/stuff/Repositories/Archive/SvinLauncher/Updater/target/SvinUpdater-1.0.jar
                        </runnableJar>
                        <jrePath>/mnt/svalka/Dolgoye Hraneniye/stuff/Repositories/Archive/SvinLauncher/jrefx</jrePath>
                        <organizationName>SvinLand</organizationName>
                        <organizationUrl>https://svinland.ru</organizationUrl>
                        <winConfig>
                            <wrapJar>true</wrapJar>
                            <generateSetup>true</generateSetup>
                            <icoFile>${project.basedir}/assets/windows/SvinLauncher.ico</icoFile>
                            <companyName>SvinLand</companyName>
                            <fileVersion>${launch4j.version}</fileVersion>
                            <txtFileVersion>${launch4j.version}</txtFileVersion>
                            <productVersion>${launch4j.version}</productVersion>
                            <txtProductVersion>${launch4j.version}</txtProductVersion>
                            <fileDescription>${description}</fileDescription>
                            <copyright>SvinLand</copyright>
                            <productName>${project.name}</productName>
                            <internalName>${project.name}</internalName>
                            <originalFilename>${project.name}.exe</originalFilename>
                            <setupMode>installForCurrentUser</setupMode>
                            <generateMsi>false</generateMsi>
                            <generateMsm>false</generateMsm>
                            <disableFinishedPage>false</disableFinishedPage>
                            <disableWelcomePage>false</disableWelcomePage>
                            <disableRunAfterInstall>false</disableRunAfterInstall>
                            <setupLanguages>
                                <russian>compiler:Languages\Russian.isl</russian>
                            </setupLanguages>
                            <createDesktopIconTask>true</createDesktopIconTask>
                            <!--<signing>
                              <keystore>C:\Certificates\Launcher.jks</keystore>
                              <storepass>q58PYcrKNao24S7t7MDLkGHIhrfczJnGitypSfrz</storepass>
                              <alias>launcher</alias>
                            </signing>-->
                        </winConfig>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>
<dependencies>
    <dependency>
        <groupId>dev.3-3</groupId>
        <artifactId>jmccc</artifactId>
        <version>3.1.4</version>
    </dependency>
    <dependency>
        <groupId>dev.3-3</groupId>
        <artifactId>jmccc-mcdownloader</artifactId>
        <version>3.1.4</version>
    </dependency>
    <dependency>
        <groupId>dev.3-3</groupId>
        <artifactId>jmccc-microsoft-authenticator</artifactId>
        <version>3.1.4</version>
    </dependency>
    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>1.18.26</version>
    </dependency>
    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.10.1</version>
    </dependency>
    <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-core</artifactId>
        <version>2.21.1</version>
    </dependency>
    <dependency>
        <groupId>org.kordamp.ikonli</groupId>
        <artifactId>ikonli-core</artifactId>
        <version>12.3.1</version>
    </dependency>
    <dependency>
        <groupId>org.kordamp.ikonli</groupId>
        <artifactId>ikonli-fontawesome5-pack</artifactId>
        <version>12.3.1</version>
    </dependency>
    <dependency>
        <groupId>org.kordamp.ikonli</groupId>
        <artifactId>ikonli-javafx</artifactId>
        <version>12.3.1</version>
    </dependency>

    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-controls</artifactId>
        <version>17.0.2</version>
    </dependency>
    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-graphics</artifactId>
        <version>17.0.2</version>
    </dependency>
    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-base</artifactId>
        <version>17.0.2</version>
    </dependency>
    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-fxml</artifactId>
        <version>17.0.2</version>
    </dependency>


</dependencies>
`

Steps to reproduce the issue/enhancement:

  1. [First Step]
  2. [Second Step]
  3. [Other Steps...]

What is the expected behavior?

What is the current behavior?

Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • JavaPackager version:
  • OS version:
  • JDK version:
  • Build tool:
    • [x] Maven
    • [ ] Gradle

Other information (e.g. related issues, suggestions how to fix, links for us to have context)

Tuanhung2008 avatar Jun 19 '24 02:06 Tuanhung2008

Hi @Tuanhung2008! What's your OS? Are you sure directory C:\mnt\svalka\Dolgoye Hraneniye\stuff\Repositories\Archive\SvinLauncher\jrefx exists?

fvarrui avatar Jun 19 '24 08:06 fvarrui

I'm closing this issue due to lack of activity. If you need more help, don't hesitate on reopen this issue.

fvarrui avatar Sep 28 '24 20:09 fvarrui