Quarkus Java backend application with React and PrimeReact components
- Quarkus and Java 21 backend
- Maven WebJars and MvNPM for frontend dependencies
- React using WebBundler Extension (using esbuild)
- PrimeReact components (with Primeicons and PrimeFlex)
The mvnpm locker Maven Plugin will create a version locker profile for your org.mvnpm and org.webjars dependencies. Allowing you to mimick the package-lock.json and yarn.lock files in a Maven world.
If you get errors like Locker BOM not found
you can bootstrap it by running the following command:
./mvnw io.mvnpm:locker-maven-plugin:LATEST:lock
Run command and open browser at http://localhost:8080
./mvnw compile quarkus:dev
The application can be packaged using:
./mvnw package
It produces the quarkus-run.jar
file in the target/quarkus-app/
directory.
Be aware that it’s not an über-jar as the dependencies are copied into the target/quarkus-app/lib/
directory.
The application is now runnable using java -jar target/quarkus-app/quarkus-run.jar
.
If you want to build an über-jar, execute the following command:
./mvnw package -Dquarkus.package.type=uber-jar
The application, packaged as an über-jar, is now runnable using java -jar target/*-runner.jar
.