Skip to content

Commit

Permalink
perf($POM): shorten the time for Maven lifecycle compile
Browse files Browse the repository at this point in the history
maven:package -> jib:dockerBuild
maven:verify  -> jib:build

BREAKING CHANGE: change Jib execution phase
  • Loading branch information
johnnymillergh committed May 9, 2020
1 parent e961c32 commit bac2c70
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 42 deletions.
10 changes: 4 additions & 6 deletions api-portal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,18 @@
<artifactId>jib-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `compile`.
Jib will build your image directly to a Docker daemon. -->
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `package`. Jib will build your image directly to a Docker daemon. -->
<execution>
<id>compilingPhaseJib</id>
<phase>compile</phase>
<phase>package</phase>
<goals>
<goal>dockerBuild</goal>
</goals>
</execution>
<!-- Bind `jib:build` to a Maven lifecycle `package`.
Jib will build and push image to image registry. -->
<!-- Bind `jib:build` to a Maven lifecycle `verify`. Jib will build and push image to image registry. -->
<execution>
<id>packagingPhaseJib</id>
<phase>package</phase>
<phase>verify</phase>
<goals>
<goal>build</goal>
</goals>
Expand Down
10 changes: 4 additions & 6 deletions auth-center/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@
<artifactId>jib-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `compile`.
Jib will build your image directly to a Docker daemon. -->
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `package`. Jib will build your image directly to a Docker daemon. -->
<execution>
<id>compilingPhaseJib</id>
<phase>compile</phase>
<phase>package</phase>
<goals>
<goal>dockerBuild</goal>
</goals>
</execution>
<!-- Bind `jib:build` to a Maven lifecycle `package`.
Jib will build and push image to image registry. -->
<!-- Bind `jib:build` to a Maven lifecycle `verify`. Jib will build and push image to image registry. -->
<execution>
<id>packagingPhaseJib</id>
<phase>package</phase>
<phase>verify</phase>
<goals>
<goal>build</goal>
</goals>
Expand Down
10 changes: 4 additions & 6 deletions exercise-mis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@
<artifactId>jib-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `compile`.
Jib will build your image directly to a Docker daemon. -->
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `package`. Jib will build your image directly to a Docker daemon. -->
<execution>
<id>compilingPhaseJib</id>
<phase>compile</phase>
<phase>package</phase>
<goals>
<goal>dockerBuild</goal>
</goals>
</execution>
<!-- Bind `jib:build` to a Maven lifecycle `package`.
Jib will build and push image to image registry. -->
<!-- Bind `jib:build` to a Maven lifecycle `verify`. Jib will build and push image to image registry. -->
<execution>
<id>packagingPhaseJib</id>
<phase>package</phase>
<phase>verify</phase>
<goals>
<goal>build</goal>
</goals>
Expand Down
10 changes: 4 additions & 6 deletions gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
<artifactId>jib-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `compile`.
Jib will build your image directly to a Docker daemon. -->
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `package`. Jib will build your image directly to a Docker daemon. -->
<execution>
<id>compilingPhaseJib</id>
<phase>compile</phase>
<phase>package</phase>
<goals>
<goal>dockerBuild</goal>
</goals>
</execution>
<!-- Bind `jib:build` to a Maven lifecycle `package`.
Jib will build and push image to image registry. -->
<!-- Bind `jib:build` to a Maven lifecycle `verify`. Jib will build and push image to image registry. -->
<execution>
<id>packagingPhaseJib</id>
<phase>package</phase>
<phase>verify</phase>
<goals>
<goal>build</goal>
</goals>
Expand Down
10 changes: 4 additions & 6 deletions muscle-mis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@
<artifactId>jib-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `compile`.
Jib will build your image directly to a Docker daemon. -->
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `package`. Jib will build your image directly to a Docker daemon. -->
<execution>
<id>compilingPhaseJib</id>
<phase>compile</phase>
<phase>package</phase>
<goals>
<goal>dockerBuild</goal>
</goals>
</execution>
<!-- Bind `jib:build` to a Maven lifecycle `package`.
Jib will build and push image to image registry. -->
<!-- Bind `jib:build` to a Maven lifecycle `verify`. Jib will build and push image to image registry. -->
<execution>
<id>packagingPhaseJib</id>
<phase>package</phase>
<phase>verify</phase>
<goals>
<goal>build</goal>
</goals>
Expand Down
10 changes: 4 additions & 6 deletions service-registry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@
<artifactId>jib-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `compile`.
Jib will build your image directly to a Docker daemon. -->
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `package`. Jib will build your image directly to a Docker daemon. -->
<execution>
<id>compilingPhaseJib</id>
<phase>compile</phase>
<phase>package</phase>
<goals>
<goal>dockerBuild</goal>
</goals>
</execution>
<!-- Bind `jib:build` to a Maven lifecycle `package`.
Jib will build and push image to image registry. -->
<!-- Bind `jib:build` to a Maven lifecycle `verify`. Jib will build and push image to image registry. -->
<execution>
<id>packagingPhaseJib</id>
<phase>package</phase>
<phase>verify</phase>
<goals>
<goal>build</goal>
</goals>
Expand Down
10 changes: 4 additions & 6 deletions spring-boot-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@
<artifactId>jib-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `compile`.
Jib will build your image directly to a Docker daemon. -->
<!-- Bind `jib:dockerBuild` to a Maven lifecycle `package`. Jib will build your image directly to a Docker daemon. -->
<execution>
<id>compilingPhaseJib</id>
<phase>compile</phase>
<phase>package</phase>
<goals>
<goal>dockerBuild</goal>
</goals>
</execution>
<!-- Bind `jib:build` to a Maven lifecycle `package`.
Jib will build and push image to image registry. -->
<!-- Bind `jib:build` to a Maven lifecycle `verify`. Jib will build and push image to image registry. -->
<execution>
<id>packagingPhaseJib</id>
<phase>package</phase>
<phase>verify</phase>
<goals>
<goal>build</goal>
</goals>
Expand Down

0 comments on commit bac2c70

Please sign in to comment.