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 install fabric8:run can result in docker build running twice

See original GitHub issue

I’ve things like this do 2 builds (which can take a long time)

mvn clean install fabric8:run

I wonder if fabric8:build should check if its been invoked already and not rerun itself?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jstrachancommented, Sep 21, 2016

I guess spring-boot:run just invokes the test-compile goal

I wonder if we should avoid the forking of Install - making folks have to type:

mvn install fabric8:run

Was just wondering if we could make the forking of the install goal conditional on the install goal being already invoked or not to avoid the double-invoke issue

0reactions
rhusscommented, Oct 5, 2018

I don’t think this can be easily fixed and we are currently on the way to make goals independent and do not look up whether they are called together with other goals.

As I suppose that’s an intrinsic Maven issue, I’m going to close this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker build with maven - how to prevent re-downloading ...
Run stage (JDK or JRE image) : copy the jar from the previous stage. 1) No explicit cache for maven dependencies : straight...
Read more >
Best practices for writing Dockerfiles - Docker Documentation
Hints, tips and guidelines for writing clean, reliable Dockerfiles. ... /go/src/project/ RUN go build -o /bin/project # This results in a single layer...
Read more >
fabric8io/docker-maven-plugin
This is a Maven plugin for managing Docker images and containers. It focuses on two major aspects for a Docker build integration: ...
Read more >
Faster Maven builds in Docker - A Java geek
2, Add required resources ... time DOCKER_BUILDKIT=0 docker build -t fast-maven:1.0 . (1) ... Here are the results of the five runs:.
Read more >
Docker Maven Plugin - YouTube
In this video, users learn options for building images with Fabric8 Docker Maven plugins. The instructor then explains how to configure the ...
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