mvn clean compile jib:build not work for war project.
See original GitHub issueEnvironment:
- Jib version: 3.0.0
- Build tool: maven 3.6.3,Java version: 1.8.0_282,
- OS: ubuntu20.04
Description of the issue:
mvn clean compile jib:build
not work for war project.
have to package the war project. mvn clean package jib:build
The documents and the log output do not mention that.
Expected behavior: work as jar project.
Steps to reproduce:
- create simple springweb app in https://start.spring.io/; set the package to war
- run
mvn clean compile jib:build
Log output:
Obtaining project build output files failed; make sure you have compiled your project before trying to build the image. (Did you accidentally run "mvn clean jib:build" instead of "mvn clean compile jib:build"?)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
mvn clean compile jib:build failed - java - Stack Overflow
I have been jumping from one issue to another and right now i dont how to get out of this present situation... I...
Read more >google/jib - Gitter
Hi, while using jib-maven-plugin when I run mvn jib:build goal the ... my build.gradle but I don't want jib to package the project...
Read more >Building Java container images using Jib - Snyk
In this article, we will look at Jib, a 100% Java-based tool for Java developers to build highly optimized images for their Java...
Read more >mvn clean install - a short guide to Maven - Marco Behler
Your build will start from a clean slate. Install will then compile, test & package your Java project and even install/copy your built...
Read more >Building Java containers with Jib - Google Cloud
Jib build flow: Diagram showing no intermediary stages from project to container registry using Jib. Jib organizes your application into distinct layers; ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I assumed I can start working on the task and submitted a PR. @chanseokoh, feel free to review at your free time! #3306
@chanseokoh @saptaswapal I noticed this task hasn’t been worked on for some time now and I’d like to contribute. May I take this over?