From d0a77855cdd8ee3dabacbc96cfb9db682d9fd46a Mon Sep 17 00:00:00 2001 From: Brendan Robert Date: Tue, 2 Jul 2024 01:33:10 -0500 Subject: [PATCH] Clean up the first-run funkiness a little bit --- README.md | 2 +- pom.xml | 69 ++++++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 52 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 7e3ca40..f287577 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ The Gluon documentation provides a compatibility matrix for each OS platform and All other native dependencies are automatically downloaded as needed by Maven for the various LWJGL libraries. ### First time build note: -Because Jace provides an annotation processor for compilation, there is a chicken-and-egg problem when building the first time. In the pom.xml, comment out lines 35-42 dealing with annotation processors. Run `mvn install` and once that completes, un-comment those lines and compile a second time. After you compile the first time you don't have to do this step again as long as Maven is able to find a previously build version of Jace to provide this annotation processor. +Because Jace provides an annotation processor for compilation, there is a chicken-and-egg problem when building the first time. Currently, this means the first time you compile, run `mvn install` twice. You don't have to do this step again as long as Maven is able to find a previously build version of Jace to provide this annotation processor. I tried to set up the profiles in the pom.xml so that it disables the annotation processor the first time you compile to avoid any issues. If running in a CICD environment, keep in mind you will likely always need to run the "mvn install" step twice, but only if your goal is to build the entire application including the annotations (should not be needed for just running unit tests.) ## Support JACE: diff --git a/pom.xml b/pom.xml index 653648a..384b91c 100644 --- a/pom.xml +++ b/pom.xml @@ -26,23 +26,6 @@ JaceApplication - - org.apache.maven.plugins - maven-compiler-plugin - - 17 - 17 - - - org.badvision - jace - 3.0 - - - jace.config.InvokableActionAnnotationProcessor - - 3.11.0 - com.gluonhq gluonfx-maven-plugin @@ -279,6 +262,56 @@ + + default + + + target/classes + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 17 + 17 + + + org.badvision + jace + 3.0 + + + jace.config.InvokableActionAnnotationProcessor + + 3.11.0 + + + + + + firstRun + + + target/classes + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 17 + 17 + + 3.11.0 + + + + lwjgl-natives-linux-amd64 @@ -316,4 +349,4 @@ - \ No newline at end of file +