client-maven-plugin | simplifies using Gluon Client for Java/JavaFX maven projects
kandi X-RAY | client-maven-plugin Summary
kandi X-RAY | client-maven-plugin Summary
Plugin that simplifies using Gluon Client for Java/JavaFX maven projects
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Entry point for sub -stration
- Creates a new release configuration
- Gets the classpath elements
- Creates the project configuration
- Entry point for execution
- Create filter file
- Execute the native shared library
- Package - private
- Execute the link
- Installs the sub -strate
- Creates the RepositorySystem
- Main method
- Execute the project
- Modify the configuration from the graal VM
- Executes the invocation
- Compare two AttachServiceDefinition
- Returns the target for the specified target
- Creates a repository system session
client-maven-plugin Key Features
client-maven-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on client-maven-plugin
QUESTION
I build a native image on win 10 with gluon plugin and graalvm ce 21.0.0. If i build the app without javafx.scene.media.MediaPlayer the client works fine. If i am using the class javafx.scene.media.MediaPlayer i realized that the folder \target\client\x86_64-windows\gvm\tmp\deps does not contain the jar of javafx-media. But why? And how to solve it? When i run the client, i got following error:
...ANSWER
Answered 2021-Mar-31 at 11:03As José Pereda wrote: Media and Web for native image are not supported on Windows yet. I wasn't aware of that. Thank you!
QUESTION
i test i18n in gluon with its default project : gluon mobile single view . i add a print line to get : Locale.getdefault() . but is in english en_US and the device is in spanish . i have another large project with bundles and i had the same issue . i put the default project in this question 'cause i found better to show just small portion of code and replicate it . the code
...ANSWER
Answered 2021-Mar-26 at 23:15The problem you are facing is that the locale used to build the native image (usually the default locale on your machine, unless set otherwise) is the one that will be used on runtime, no matter what locale is set.
There is an open issue in GraalVM about this. There is no definitive fix for this yet, but it is expected to be available from GraalVM 21.1 (in just a couple of weeks).
For now, a workaround is to set the target's locale in the Client plugin configuration, like:
QUESTION
I am new on stackoverflow, this is my first post. I recently started using Gluon Mobile to develop an android mobile application using Bluetooth Low Energy.
I'm having trouble using the BLE technology. If I copy the piece of code provided in the gluon mobile documentation and I get the following message :
WARNING: No new instance for interface com.gluonhq.attach.ble.BleService and class com.gluonhq.attach.ble.impl.AndroidBleService
here is the code from the example:
...ANSWER
Answered 2021-Mar-26 at 09:48The solution was to add ble
to the in pom.xml file.
QUESTION
I have followed the instructions provided on the kotlinx.serialization github page but when I try to serialize my class, it throws the following runtime exception
...ANSWER
Answered 2021-Feb-27 at 08:40It turns out that the package containing the kotlin file needs to be opened in a modular project in order for compiler plugin to generate the serializer. Adding opens in module-info.java fixed it
QUESTION
I tried to run the native image of my javafx app on windows 10.
The app starts without any widget. I only have the following log:
[So. Jan. 31 17:10:52 MEZ 2021][INFO] ==================== RUN TASK ====================
[So. Jan. 31 17:10:52 MEZ 2021][FINE] PB Command for run until end: c:\Users\...\target\client\x86_64-windows\MyApp.exe
[So. Jan. 31 17:10:52 MEZ 2021][FINE] Start process run until end...
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] java.lang.ClassNotFoundException: com.sun.prism.shader.Solid_TextureRGB_AlphaTest_Loader
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:60)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at java.lang.Class.forName(DynamicHub.java:1247)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.prism.d3d.D3DResourceFactory.createStockShader(D3DResourceFactory.java:411)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.prism.impl.ps.BaseShaderContext.getSpecialShader(BaseShaderContext.java:318)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.prism.impl.ps.BaseShaderContext.validateTextureOp(BaseShaderContext.java:579)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.prism.impl.ps.BaseShaderContext.validateTextureOp(BaseShaderContext.java:507)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.prism.impl.BaseGraphics.drawTexture(BaseGraphics.java:432)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.prism.impl.ps.BaseShaderGraphics.drawTexture(BaseShaderGraphics.java:139)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.sg.prism.NGRegion.paintTiles(NGRegion.java:2007)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.sg.prism.NGRegion.renderBackgroundRectangle(NGRegion.java:971)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.sg.prism.NGRegion.renderAsRectangle(NGRegion.java:754)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:479)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:328)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:91)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at java.lang.Thread.run(Thread.java:834)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
[So. Jan. 31 17:10:53 MEZ 2021][INFO] [SUB] at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
Can someone tell me what to do?
pom.xml:
...ANSWER
Answered 2021-Jan-31 at 20:24Thank You again José Pereda. I added the class com.sun.prism.shader.Solid_TextureRGB_AlphaTest_Loader
to the in my pom.xml and it works.
QUESTION
I want to build a native image of my java app for windows 10.
Because I have no expirience in building native image with the graalvm-ce-java11-21.0.0 and Gluon Plug-in for Eclipse 2.8.1, i decided to build first the buildin sample of the "Gluon Mobile - Single View Project". My buildtool is Maven 3.6.3.
Can someone tell me how to solve the following error?
While running mvn client:build on the x64 Native Tools Command Prompt for VS 2019 the build fails cause of "Process link failed with result: 1120"
The complete log:
[Sa. Jan. 30 17:12:03 MEZ 2021][INFO] ==================== LINK TASK ====================
[Sa. Jan. 30 17:12:03 MEZ 2021][FINE] Looking for resource: /native/windows/launcher.c
[Sa. Jan. 30 17:12:03 MEZ 2021][FINE] PB Command for compile-additional-sources: cl -c -DSUBSTRATE /MD /D_UNICODE /DUNICODE /DWIN32 /D_WINDOWS -IC:\Users\...\SingleViewProject\target\client\x86_64-windows\gvm\SingleViewProject launcher.c
[Sa. Jan. 30 17:12:03 MEZ 2021][FINE] Start process compile-additional-sources...
[Sa. Jan. 30 17:12:03 MEZ 2021][FINE] [SUB] Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29336 for x64
[Sa. Jan. 30 17:12:03 MEZ 2021][FINE] [SUB] Copyright (C) Microsoft Corporation. All rights reserved.
[Sa. Jan. 30 17:12:03 MEZ 2021][FINE] [SUB]
[Sa. Jan. 30 17:12:03 MEZ 2021][FINE] [SUB] launcher.c
[Sa. Jan. 30 17:12:03 MEZ 2021][FINE] Result for compile-additional-sources: 0
[Sa. Jan. 30 17:12:03 MEZ 2021][FINE] PB Command for link: link C:\Users\...\SingleViewProject\target\client\x86_64-windows\gvm\SingleViewProject\launcher.obj C:\Users\...\SingleViewProject\target\client\x86_64-windows\gvm\tmp\SVM-1612022981603\com.gluonapplication.gluonapplication.obj advapi32.lib iphlpapi.lib secur32.lib userenv.lib ws2_32.lib j2pkcs11.lib java.lib net.lib nio.lib prefs.lib fdlibm.lib sunec.lib zip.lib ffi.lib jvm.lib libchelper.lib /NODEFAULTLIB:libcmt.lib /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup comdlg32.lib dwmapi.lib gdi32.lib imm32.lib shell32.lib uiautomationcore.lib urlmon.lib winmm.lib glass.lib javafx_font.lib javafx_iio.lib prism_common.lib prism_d3d.lib /WHOLEARCHIVE:glass.lib /WHOLEARCHIVE:javafx_font.lib /WHOLEARCHIVE:javafx_iio.lib /WHOLEARCHIVE:prism_common.lib /WHOLEARCHIVE:prism_d3d.lib /OUT:C:\Users\...\SingleViewProject\target\client\x86_64-windows\SingleViewProject.exe /LIBPATH:C:\Users\....gluon\substrate\javafxStaticSdk\16-ea+gvm24\windows-x86_64\sdk\lib /LIBPATH:C:\Program Files\Java\graalvm-ce-java11-21.0.0\lib\svm\clibraries\windows-amd64 /LIBPATH:C:\Program Files\Java\graalvm-ce-java11-21.0.0\lib\static\windows-amd64
[Sa. Jan. 30 17:12:03 MEZ 2021][FINE] Start process link...
[Sa. Jan. 30 17:12:03 MEZ 2021][INFO] [SUB] Microsoft (R) Incremental Linker Version 14.28.29336.0
[Sa. Jan. 30 17:12:03 MEZ 2021][INFO] [SUB] Copyright (C) Microsoft Corporation. All rights reserved.
[Sa. Jan. 30 17:12:03 MEZ 2021][INFO] [SUB]
[Sa. Jan. 30 17:12:04 MEZ 2021][INFO] [SUB] Creating library C:\Users\...\SingleViewProject\target\client\x86_64-windows\SingleViewProject.lib and object C:\Users\...\SingleViewProject\target\client\x86_64-windows\SingleViewProject.exp
[Sa. Jan. 30 17:12:04 MEZ 2021][INFO] [SUB] com.gluonapplication.gluonapplication.obj : error LNK2001: unresolved external symbol GetFileVersionInfoSizeW
[Sa. Jan. 30 17:12:04 MEZ 2021][INFO] [SUB] com.gluonapplication.gluonapplication.obj : error LNK2001: unresolved external symbol GetFileVersionInfoW
[Sa. Jan. 30 17:12:04 MEZ 2021][INFO] [SUB] com.gluonapplication.gluonapplication.obj : error LNK2001: unresolved external symbol VerQueryValueW
[Sa. Jan. 30 17:12:04 MEZ 2021][INFO] [SUB] C:\Users\...\SingleViewProject\target\client\x86_64-windows\SingleViewProject.exe : fatal error LNK1120: 3 unresolved externals
[Sa. Jan. 30 17:12:04 MEZ 2021][FINE] Result for link: 1120
[Sa. Jan. 30 17:12:04 MEZ 2021][SEVERE] Process link failed with result: 1120
pom.xml:
...ANSWER
Answered 2021-Jan-31 at 09:16As José Pereda wrote the solution is: Change the client.plugin.version to 0.1.36
QUESTION
I've been experimenting with Gluon's client maven plugin on a Windows machine for a project of mine. I decided to try out one of their "hello world" examples, here. I followed all of the steps on how to configure the machine.
However, I've encountered some errors. For some reason, the compiling always fails and gives me an error "Cannot run program "cl"". Does anyone have any clue on how to fix this?
I am running the client:build command in a "x64 Native Tools Command Prompt for VS 2019" window.
The logs are below:
...ANSWER
Answered 2020-Dec-23 at 11:04I've had the same two issues:
- No cl operations possible
- stdio.h or similar file cannot be found
Make sure the system path contains the Visual Studio entry. Something like "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX64\x64"
Visual Studio seems to miss the entry on the path variable sometimes on installation. I had it installed to a different directory. That might cause the problem.
Solution for the second issue:The documentation states that you have to run all maven or gradle commands in the Native Tools Command Prompt if running on Windows. I missed that part a few times while reading the docs.
If you are running on Windows, you need to run all the Client goals from an x64 terminal.
After that i was able to use the client:compile and client:link goals.
QUESTION
I am trying to get a JavaFX application, which uses SQLite, running on Android via Gluons client-maven-plugin but for the library with the native part of SQLite I only get an UnsatisfiedLinkError. The app as such runs fine on Android and even works perfectly with SQLite on any desktop platform, so I think my general setup is ok. In this context I wonder whether
- linking with shared libraries contained in a JAR file is supported at all for Android?
- which architecture is the right one for Android?
The app reports itself as Linux/aarch64 but the shared library for that combination, provided by "org.xerial:sqlite-jdbc:3.32.3.2", does not work. What is confusing is that there is another one for Linux/android-arm which also does not seem to work but looks more specific to Android. So which is the right one.
...ANSWER
Answered 2020-Aug-16 at 08:59This question has been answered on Gluons issue tracker on GitHub:
https://github.com/gluonhq/substrate/issues/741#issuecomment-673435037
Just in case someone is interested.
QUESTION
I cannot seem to resolve dependencies in my POM. This project was working for me earlier this morning and is currently working on another machine, but somehow now my project is so borked that all my dependencies are broken, all my imports and most of my classes are just red underlines. I want to go back to where I'm no longer having dependency/pom/maven errors and can search for the original desiredCapabilities errors.
Environment: MacOS Apache Maven 3.6.3 Java 8 and 11 are installed on my machine Project SDK: Java 11 IDE: IntelliJ Appium 1.16.0
Trying to solve the original problem:
1. Mvn clean install, with and without -U
2. Right click on project > Maven -> reimport
3. Tried to open on eclipse but this project uses graphql and I got errors that there weren't marketplace options for what I needed
4. Restarted intelliJ
5. Restarted my computer
6. Build -> Build project, rebuild project
7. Deleted my .m2 directory and tried a mvn clean install/mvn install etc, but this is where all my artifacts started breaking. Almost all dependencies now say "Dependency not found" when I hover
8. Tried updating maven indices from the pom
9. Blew out the repo and re-cloned it
10. Reverted to a previous commit
The current error on mvn clean install is: [ERROR] Failed to execute goal on project mobile-app-automation: Could not resolve dependencies for project com.automation.cm:mobile-app-automation:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.seleniumhq.selenium:selenium-java:jar:3.141.59: Failed to read artifact descriptor for org.seleniumhq.selenium:selenium-java:jar:3.141.59: Could not transfer artifact org.seleniumhq.selenium:selenium-java:pom:3.141.59 from/to central (http://jcenter.bintray.com): Authorization failed for http://jcenter.bintray.com/org/seleniumhq/selenium/selenium-java/3.141.59/selenium-java-3.141.59.pom 403 Forbidden -> [Help 1]
mvn compile gives the error: "Failure to find org.seleniumhq.selenium:selenium-java:pom:3.141.59 in https://jitpack.io was cached in the local repository, resolution will not be reattempted until the update interval of jitpack.io has elapsed or updates are forced "
Here is my pom, 90% of the dependencies are red:
...ANSWER
Answered 2020-Jan-31 at 22:42As per JFrog, as of Jan 2020, JCenter is available only over https. Your repo snapshot has http instead of https.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install client-maven-plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page