Issue Building JavaFX Project with Maven Dependency
Florian Kirmaier
florian.kirmaier at gmail.com
Tue Nov 28 14:44:41 UTC 2023
I'm really curious about how this is supposed to work without the Maven
Build.
Nowadays, most projects use maven artifacts for their build - instead of
copying jars. How do you test your own build - without publishing maven
artifacts?
The jars created in the distributions folder are useful - but using them
requires a lot of manual work for 90% of the projects.
I'm volunteering to maintain the Maven Build - because testing builds
otherwise is complicated - and I basically fix the maven build for every
fork/bugfix/PR anyways.
On Tue, 28 Nov 2023 at 12:48, Bruno Carle <bruno.carle at gmail.com> wrote:
> Hi Sarang
> In case that helps, I used these steps recently to publish jars to local
> maven repo. (I dont know if it is the proper way, but it did the job for
> me, on linux)
>
> in build.gradle change line 546:
> defineProperty("MAVEN_PUBLISH", "true")
>
> and line 1730: (add brackets)
> artifact (project.tasks."modularPublicationJar$t.capital") {
>
> then
> sh ./gradlew publishToMavenLocal
>
> Regards
> Bruno
>
>
> On Tue, Nov 28, 2023 at 10:13 AM Johan Vos <johan at lodgon.com> wrote:
>
>> Hi Sarang,
>>
>> Yes, the maven publication parts in the build.gradle are not working with
>> the latest gradle anymore. I believe we discussed this before, and at least
>> my personal opinion is that those parts need to be removed from the
>> build.gradle. Frequent changes in gradle are causing lots of maintenance
>> work on the build.gradle, so we should try to minimize that work. Since the
>> maven publication is not required to build the OpenJFX SDK's, I think it
>> makes more sense to move those tasks out of the build.gradle.
>>
>> However, if you just build the SDK (gradlew sdk), you should be able to
>> build everything you need and take it from there.
>>
>> - Johan
>>
>> Op di 28 nov 2023 om 08:05 schreef sarang s <sarangsblogtec at gmail.com>:
>>
>>> Dear OpenJFX Development Team,
>>>
>>> I hope this email finds you well. My name is [Your Name], and I am
>>> currently facing an issue while trying to build a JavaFX project with Maven
>>> dependency. I have encountered the following warnings during the build
>>> process:
>>>
>>> csharp
>>> [WARNING] Failed to build parent project for org.openjfx:javafx-controls:jar:21.0.1[WARNING] Failed to build parent project for org.openjfx:javafx-graphics:jar:21.0.1
>>> [WARNING] Failed to build parent project for org.openjfx:javafx-base:jar:21.0.1
>>> [WARNING] Failed to build parent project for org.openjfx:javafx-fxml:jar:21.0.1
>>>
>>> These warnings indicate that the build process for the mentioned JavaFX
>>> modules is failing. Consequently, the JavaFXML files are not being built,
>>> and I am unable to proceed with the development.
>>>
>>> Here are some details about my environment:
>>>
>>> - JavaFX version: 21.0.1
>>> - Build tool: Maven
>>>
>>> I have checked my Maven dependencies and configurations, but I am still
>>> encountering this issue. Could you please provide guidance on how to
>>> resolve this problem? Any assistance or advice you can offer would be
>>> greatly appreciated.
>>>
>>> If you require any additional information or logs, please let me know,
>>> and I will be happy to provide them. Thank you for your time and assistance.
>>>
>>> Best regards,
>>>
>>> Sarang S
>>> sarangsblogtec at gmail.com
>>> Blogtec software LLP
>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20231128/c6853c7c/attachment.htm>
More information about the openjfx-dev
mailing list