英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论