State of maven artifacts
johan at lodgon.com
Wed Sep 26 07:30:55 UTC 2018
The problem with that is that there is no cross-platform version of the
jars itself. The windows-jar for the graphics module contains different
Java classes than the linux jar, for example.
The top-level API's are the same of course, hence the logical Java module
is the same, but different physical jars are really needed.
I realise this may be strange at compile time, where you only care about
the top-level API's. Therefore, people added nice "tricks" to both a
pom.xml and build.gradle system to automatically detect the current (host)
operating system, and making sure the correct artifacts are then used.
What I really wanted to avoid is that developers had to manually add their
platform (e.g. "win") in the build files, as this would break
cross-platform development (imagine you're in a team with a win and a linux
user, and they constantly change the pom.xml or build.gradle file for
I think the current solution deals pretty well with the current situations,
where there are different concepts in gradle/maven/sonatype and in the Java
Op wo 26 sep. 2018 om 05:46 schreef Nir Lisker <nlisker at gmail.com>:
> Thanks Sam, that solved it. For some reason I was thinking that if you
> don't specify the platform it downloads a version with all native
> dependencies for cross compilation.
> On Wed, Sep 26, 2018 at 2:37 AM Sam Carlberg <sam.carlberg at gmail.com>
> > The libraries are in artifacts with platform-specific classifiers. The
> > artifacts with no classifiers that you currently depend on are completely
> > empty.
> > You need to depend on "org.openjfx:javafx-base:11:$platform", where the
> > platform is one of "win", "mac", or "linux".
> > On Tue, Sep 25, 2018, 5:18 PM Nir Lisker <nlisker at gmail.com> wrote:
> >> Hi,
> >> I haven't kept up with all of the Maven artifacts discussion. The
> >> mentioned in 2 places that there are maven artifacts, but does not
> >> their ID's, group etc. These are the downloads page  and the getting
> >> started page  (later you can see an example pom, but that doesn't
> >> count).
> >> I'm using "org.openjfx:javafx-base:11" (gradle syntax) etc. and it finds
> >> the artifacts. It should be written in the above pages if this is
> >> On the usability side it's worse. I'm using Eclipse and during
> >> I'm getting error messages that JavaFX classes like BooleanProperty
> >> be found. Is it a JavaFX problem, Eclipse problem, or me problem?
> >> If I use the SDKs, can I point Gradle and Maven to them if it will solve
> >> the problem?
> >> - Nir
> >>  https://gluonhq.com/products/javafx/
> >>  https://openjfx.io/openjfx-docs/#introduction
More information about the openjfx-dev