Quarkus guide "Packaging And Releasing With JReleaser" not working

huangapple go评论52阅读模式
英文:

Quarkus guide "Packaging And Releasing With JReleaser" not working

问题

When working through guide "Packaging And Releasing With JReleaser" and "5. Creating the distribution" with "./mvnw -Pdist package," this error occurs.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.5.0:single (make-distribution) on project simple-quarkus-app: Failed to create assembly: Error adding file to archive: /Users/xxx/simple-quarkus-app/target/simple-quarkus-app-1.0.0-SNAPSHOT-runner -> [Help 1]

I tried to install GraalVM and also to use Mandrel. Want to release a Quarkus app for Linux/macOS/Windows on GitHub Releases.

My OS is macOS/aarch64.

Thank you,
Tom

英文:

When working through guide "Packaging And Releasing With JReleaser" and "5. Creating the distribution" with "./mvnw -Pdist package" this error occurs

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.5.0:single (make-distribution) on project simple-quarkus-app: Failed to create assembly: Error adding file to archive: /Users/xxx/simple-quarkus-app/target/simple-quarkus-app-1.0.0-SNAPSHOT-runner -> [Help 1]

I tried to install graalvm and also to use mandrel.
Want to release a quarkus app for linux/macos/windows on github-releases

My OS is macos/aarch64

Thank you
Tom

答案1

得分: 1

以下是翻译的内容:

解决方案如下:

  • 安装 GraalVM
  • 使用 ./mvnw -Pnative package 编译成本机二进制文件
  • 使用 ./mvnw -Pdist package 创建你的分发包(或者只需使用 ./mvnw -Pdist -Pnative clean package
  • 现在你会在 ./target/distributions 目录下找到你的文件
英文:

The solution was:

  • install graalvm
  • compile to native binary with ./mvnw -Pnative package
  • create your distribution with ./mvnw -Pdist package (or just use ./mvnw -Pdist -Pnative clean package)
  • now you will find your files ./target/distributions

huangapple
  • 本文由 发表于 2023年5月7日 21:29:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76194224.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定