Coder Social home page Coder Social logo

q-cli-jlink's Introduction

q-cli-jlink

Sample Quarkus CLI application (packaged with jlink)

Shows how a Quarkus application may be configured and packaged to create cross-platform custom Java Runtimes with jlink, package each JR as a zip distribution and publish them as assets on a Git release via JReleaser.

Prerequisites

Warning
Java 11 is required to build this sample.

$ ./mvnw -Passemble package

Inspect the artifacts found at target/jreleaser/assemble/q-cli/jlink and run one:

$ target/jreleaser/assemble/q-cli/jlink/work-linux-x86_64/q-cli-0.1.0-linux-x86_64/bin/q-cli

Releasing

Warning
Requires a GitHub token for publishing a release to GitHub.
  1. Create a GitHub Personal Access Token. See Creating a personal access token for instructions.

  2. Store the token as an environment variable (JRELEASER_GITHUB_TOKEN) or save it at a configuration file as explained at JReleaser’s environment settings.

Posting a release from a local environment

Display configuration

$ ./mvnw -Prelease jreleaser:config

Dryrun mode

$ ./mvnw -Prelease jreleaser:release -Djreleaser.dryrun=true

For production

$ ./mvnw -Prelease jreleaser:release

Inspect additional artifacts found at target/jreleaser:

target/jreleaser/
├── output.properties
├── release
│   └── CHANGELOG.md
└── trace.log

q-cli-jlink's People

Contributors

aalmiray avatar ge0ffrey avatar

Stargazers

Jason Lee avatar Pedro Lopes avatar dino lupo avatar  avatar

Watchers

Christos Vasilakis avatar  avatar James Cloos avatar  avatar

q-cli-jlink's Issues

[jlink] Error: unknown option: --ignore-missing-deps

Environment:
MacOS BigSur 11.4 - Chip M1

Command:
./mvnw -Passemble package

Error:

[INFO] JReleaser 0.9.0
[INFO]   - basedir set to /Users/dino/proj/q-cli-jlink
[INFO] Loading variables from /Users/dino/.jreleaser/config.properties
[WARNING] Variables source /Users/dino/.jreleaser/config.properties does not exist
[INFO] Validating configuration
[INFO] Project version set to 0.1.0
[INFO] Release is not snapshot
[INFO] Timestamp is 2021-11-28T11:24:42.145649+01:00
[INFO] HEAD is at 291c22f
[INFO] Platform is osx-aarch64
[INFO] dryrun set to false
[INFO] Assembling all distributions
[INFO]   [jlink] assembling q-cli distribution
[ERROR]  [jlink] Error: unknown option: --ignore-missing-deps
Usage: jdeps <options> <path ...>]
use --help for a list of possible options
[INFO] Writing output properties to target/jreleaser/output.properties
[ERROR] JReleaser failed after 0.232 s
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:48 min
[INFO] Finished at: 2021-11-28T11:24:45+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jreleaser:jreleaser-maven-plugin:0.9.0:assemble (assemble) on project q-cli-jlink: Execution assemble of goal org.jreleaser:jreleaser-maven-plugin:0.9.0:assemble failed: Unexpected error: Command execution error. exitValue = 2 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.