question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mvn clean compile jib:build not work for war project.

See original GitHub issue

Environment:

  • 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:

  1. create simple springweb app in https://start.spring.io/; set the package to war
  2. 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:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JacekDuszenkocommented, Jun 12, 2021

I assumed I can start working on the task and submitted a PR. @chanseokoh, feel free to review at your free time! #3306

0reactions
JacekDuszenkocommented, Jun 12, 2021

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found