Comments (12)
Can you share a stripped down version of your pom.xml
? That sounds very odd.
from javafx-maven-plugin.
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.
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.
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.
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.
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.
Just to make sure: what JDK are you using?
from javafx-maven-plugin.
I use jdk1.8.0_311
from javafx-maven-plugin.
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.
I run mvn jfx:native in cmd when IDE is closed showing the same issue.
from javafx-maven-plugin.
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.
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)
- Main class has to be a subclass of javafx.application.Application HOT 3
- Could not find or load main class HOT 4
- ISCC Versioning issue HOT 3
- How to handover --win-console HOT 2
- adding javafx to a maven project but failed! Help~~ HOT 2
- JVM arguments are getting ignored HOT 3
- Relationship to openjfx/javafx-maven-plugin? HOT 1
- Code signing not working HOT 7
- Document is mssing HOT 1
- Handle dependencies with the same artifact name
- Plugin doesnt support parallel building HOT 2
- ERROR,add shortcutHint to bundleArguments. HOT 1
- What happened to version 8.9.0? HOT 1
- Failed to execute goal com.zenjava:javafx-maven-plugin:8.8.3:native (default-cli) on project hello-javafx-maven-example: An error occurred while generating native deployment bundles: Not found MSVC dlls HOT 19
- "class com/cxsj/client/AppStartup not found"when I start the app HOT 10
- How to add external reference packages? HOT 3
- how can i add custom icon to my app? HOT 2
- plugin not work in Win11 HOT 3
- runing mvn jfx: native error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javafx-maven-plugin.