Giter Club home page Giter Club logo

Comments (12)

FibreFoX avatar FibreFoX commented on June 6, 2024

Can you share a stripped down version of your pom.xml? That sounds very odd.

from javafx-maven-plugin.

lanny886 avatar lanny886 commented on June 6, 2024

Can you share a stripped down version of your pom.xml? That sounds very odd.

this is the plugin setting where I use and tools.jar is under src/main/additionalFiles/lib

<plugin>
                <groupId>com.zenjava</groupId>
                <artifactId>javafx-maven-plugin</artifactId>
                <version>8.8.3</version>
                <configuration>
                    <vendor>xxx</vendor>
                    <mainClass>com.xxx.client.XXXApplication</mainClass>
                    <allPermissions>true</allPermissions>
                    <nativeReleaseVersion>${client-version}</nativeReleaseVersion>
                    <appName>xxx</appName>
                    <needShortcut>true</needShortcut>
                    <needMenu>true</needMenu>
                    <jvmArgs>
                        <argument>-Dglass.win.minHiDPI=1</argument>
                        <argument>-Xms512m</argument>
                        <argument>-Xmx4096m</argument>
                    </jvmArgs>
                    <bundleArguments>
                        <installdirChooser>true</installdirChooser>
                    </bundleArguments>
                    <manifestAttributes>
                        <Build-Time>${maven.build.timestamp}</Build-Time>
                        <Build-Label>${project.version}</Build-Label>
                    </manifestAttributes>
                    <additionalAppResources>src/main/additionalFiles/</additionalAppResources>
                    <useLibFolderContentForManifestClasspath>true</useLibFolderContentForManifestClasspath>
                </configuration>
            </plugin>

from javafx-maven-plugin.

lanny886 avatar lanny886 commented on June 6, 2024

Can you share a stripped down version of your pom.xml? That sounds very odd.

the main tag I use are additionalAppResources and useLibFolderContentForManifestClasspath

from javafx-maven-plugin.

FibreFoX avatar FibreFoX commented on June 6, 2024

Just to make sure, you are running mvn jfx:native twice? Or do you call other commands? Are your running this via some IDE?

from javafx-maven-plugin.

lanny886 avatar lanny886 commented on June 6, 2024

Just to make sure, you are running mvn jfx:native twice? Or do you call other commands? Are your running this via some IDE?

I runing this via IntelliJ IDEA,when I run jfx:native first time,I found tools.jar under target\jfx\app\lib,but MANIFEST.MF in xxx-jfx.jar shows lib/tools.jar not in Class-Path tag, but when I run jfx:native once more, lib/tools.jar appears in the MANIFEST.MF

from javafx-maven-plugin.

lanny886 avatar lanny886 commented on June 6, 2024

Just to make sure, you are running mvn jfx:native twice? Or do you call other commands? Are your running this via some IDE?

When before I run once more, I did not clean files generated by previous operation.

from javafx-maven-plugin.

FibreFoX avatar FibreFoX commented on June 6, 2024

Just to make sure: what JDK are you using?

from javafx-maven-plugin.

lanny886 avatar lanny886 commented on June 6, 2024

I use jdk1.8.0_311

from javafx-maven-plugin.

FibreFoX avatar FibreFoX commented on June 6, 2024

So just to make sure this is some IDE-related bug, can you check running mvn jfx:native outside your IDE while your IDE is closed? I suspect the IDE doing some voodoo in the background. If you can re-check outside the IDE and find the same issue, then I have something I can check for.

from javafx-maven-plugin.

lanny886 avatar lanny886 commented on June 6, 2024

I run mvn jfx:native in cmd when IDE is closed showing the same issue.

from javafx-maven-plugin.

lanny886 avatar lanny886 commented on June 6, 2024

The code in JarMojo shows that useLibFolderContentForManifestClasspath is running before additionalAppResources in execute method, is it the reason for the first time jar was not added to classpath but works on the second time?

from javafx-maven-plugin.

FibreFoX avatar FibreFoX commented on June 6, 2024

I am back from holiday family stuff 😺

Ah I see, yes, indeed, and initially there was reasoning behind it. I suspected such a thing. I will report back when I have some solution.

from javafx-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.