GoogleContainerTools / jib

🏗 Build container images for your Java applications.
Apache License 2.0
13.71k stars 1.44k forks source link

Error when pushing image to a private Gitlab Registry with Maven plugin 0.9.7 #746

Closed DidierSchonne closed 6 years ago

DidierSchonne commented 6 years ago

Description of the issue: Error when pushing image to a private Gitlab Registry with Maven plugin 0.9.7

Expected behavior: An image is built and pushed to my private Gitlab Registry

Steps to reproduce:

Environment:

jib-maven-plugin Configuration:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.mydomain.sandbox</groupId>
    <artifactId>slow-response</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>slow-response</name>
    <description>Demo project for Spring Boot</description>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.2.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>10</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.0</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>0.9.7</version>
                <configuration>
                    <to>
                        <image>gitlab.mydomain.com:4567/sandbox/slow-response</image>
                    </to>
                    <!--<allowInsecureRegistries>true</allowInsecureRegistries>-->
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>build</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>

Log output:

Error Log: ``` $ sudo mvn compile -X com.google.cloud.tools:jib-maven-plugin:0.9.7:build Apache Maven 3.5.2 Maven home: /usr/share/maven Java version: 10.0.1, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: fr_FR, platform encoding: UTF-8 OS name: "linux", version: "4.15.0-29-generic", arch: "amd64", family: "unix" WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [DEBUG] Created new class realm maven.api [DEBUG] Importing foreign packages into class realm maven.api [DEBUG] Imported: javax.annotation.* < plexus.core [DEBUG] Imported: javax.enterprise.inject.* < plexus.core [DEBUG] Imported: javax.enterprise.util.* < plexus.core [DEBUG] Imported: javax.inject.* < plexus.core [DEBUG] Imported: org.apache.maven.* < plexus.core [DEBUG] Imported: org.apache.maven.artifact < plexus.core [DEBUG] Imported: org.apache.maven.classrealm < plexus.core [DEBUG] Imported: org.apache.maven.cli < plexus.core [DEBUG] Imported: org.apache.maven.configuration < plexus.core [DEBUG] Imported: org.apache.maven.exception < plexus.core [DEBUG] Imported: org.apache.maven.execution < plexus.core [DEBUG] Imported: org.apache.maven.execution.scope < plexus.core [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core [DEBUG] Imported: org.apache.maven.model < plexus.core [DEBUG] Imported: org.apache.maven.monitor < plexus.core [DEBUG] Imported: org.apache.maven.plugin < plexus.core [DEBUG] Imported: org.apache.maven.profiles < plexus.core [DEBUG] Imported: org.apache.maven.project < plexus.core [DEBUG] Imported: org.apache.maven.reporting < plexus.core [DEBUG] Imported: org.apache.maven.repository < plexus.core [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core [DEBUG] Imported: org.apache.maven.settings < plexus.core [DEBUG] Imported: org.apache.maven.toolchain < plexus.core [DEBUG] Imported: org.apache.maven.usability < plexus.core [DEBUG] Imported: org.apache.maven.wagon.* < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core [DEBUG] Imported: org.codehaus.classworlds < plexus.core [DEBUG] Imported: org.codehaus.plexus.* < plexus.core [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core [DEBUG] Imported: org.codehaus.plexus.component < plexus.core [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core [DEBUG] Imported: org.codehaus.plexus.container < plexus.core [DEBUG] Imported: org.codehaus.plexus.context < plexus.core [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core [DEBUG] Imported: org.eclipse.aether.* < plexus.core [DEBUG] Imported: org.eclipse.aether.artifact < plexus.core [DEBUG] Imported: org.eclipse.aether.collection < plexus.core [DEBUG] Imported: org.eclipse.aether.deployment < plexus.core [DEBUG] Imported: org.eclipse.aether.graph < plexus.core [DEBUG] Imported: org.eclipse.aether.impl < plexus.core [DEBUG] Imported: org.eclipse.aether.installation < plexus.core [DEBUG] Imported: org.eclipse.aether.internal.impl < plexus.core [DEBUG] Imported: org.eclipse.aether.metadata < plexus.core [DEBUG] Imported: org.eclipse.aether.repository < plexus.core [DEBUG] Imported: org.eclipse.aether.resolution < plexus.core [DEBUG] Imported: org.eclipse.aether.spi < plexus.core [DEBUG] Imported: org.eclipse.aether.transfer < plexus.core [DEBUG] Imported: org.eclipse.aether.version < plexus.core [DEBUG] Imported: org.fusesource.jansi.* < plexus.core [DEBUG] Imported: org.slf4j.* < plexus.core [DEBUG] Imported: org.slf4j.helpers.* < plexus.core [DEBUG] Imported: org.slf4j.spi.* < plexus.core [DEBUG] Populating class realm maven.api [INFO] Error stacktraces are turned on. [DEBUG] Message scheme: color [DEBUG] Message styles: debug info warning error success failure strong mojo project [DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml [DEBUG] Reading user settings from /root/.m2/settings.xml [DEBUG] Reading global toolchains from /usr/share/maven/conf/toolchains.xml [DEBUG] Reading user toolchains from /root/.m2/toolchains.xml [DEBUG] Using local repository at /root/.m2/repository [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /root/.m2/repository [INFO] Scanning for projects... [DEBUG] Extension realms for project com.mydomain.sandbox:slow-response:jar:0.0.1-SNAPSHOT: (none) [DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project org.springframework.boot:spring-boot-starter-parent:pom:2.0.2.RELEASE: (none) [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project org.springframework.boot:spring-boot-dependencies:pom:2.0.2.RELEASE: (none) [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] === REACTOR BUILD PLAN ================================================ [DEBUG] Project: com.mydomain.sandbox:slow-response:jar:0.0.1-SNAPSHOT [DEBUG] Tasks: [compile, com.google.cloud.tools:jib-maven-plugin:0.9.7:build] [DEBUG] Style: Regular [DEBUG] ======================================================================= [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building slow-response 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] === PROJECT BUILD PLAN ================================================ [DEBUG] Project: com.mydomain.sandbox:slow-response:0.0.1-SNAPSHOT [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [compile, runtime+system] [DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)] [DEBUG] Repositories (plugins) : [central (https://repo.maven.apache.org/maven2, default, releases)] [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:3.0.1:resources (default-resources) [DEBUG] Style: Regular [DEBUG] Configuration: @ ${maven.resources.skip} false [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) [DEBUG] Style: Regular [DEBUG] Configuration: ${maven.compiler.compilerId} ${maven.compiler.compilerReuseStrategy} ${maven.compiler.compilerVersion} ${maven.compiler.debug} ${maven.compiler.debuglevel} ${encoding} ${maven.compiler.executable} ${maven.compiler.failOnError} ${maven.compiler.failOnWarning} ${maven.compiler.forceJavacCompilerUse} ${maven.compiler.fork} ${maven.compiler.maxmem} ${maven.compiler.meminitial} ${maven.compiler.optimize} true ${maven.compiler.release} ${maven.compiler.showDeprecation} ${maven.compiler.showWarnings} ${maven.main.skip} ${maven.compiler.skipMultiThreadWarning} ${maven.compiler.source} ${lastModGranularityMs} ${maven.compiler.target} ${maven.compiler.useIncrementalCompilation} ${maven.compiler.verbose} [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli) [DEBUG] Style: Regular [DEBUG] Configuration: gitlab.mydomain.com:4567/sandbox/slow-response${image} [DEBUG] ======================================================================= [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=673018, ConflictMarker.markTime=342394, ConflictMarker.nodeCount=102, ConflictIdSorter.graphTime=342847, ConflictIdSorter.topsortTime=238780, ConflictIdSorter.conflictIdCount=57, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=5667232, ConflictResolver.conflictItemCount=93, DefaultDependencyCollector.collectTime=220748887, DefaultDependencyCollector.transformTime=8615858} [DEBUG] com.mydomain.sandbox:slow-response:jar:0.0.1-SNAPSHOT [DEBUG] org.springframework.boot:spring-boot-starter-web:jar:2.0.2.RELEASE:compile [DEBUG] org.springframework.boot:spring-boot-starter:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] org.springframework.boot:spring-boot:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] org.springframework.boot:spring-boot-autoconfigure:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] org.springframework.boot:spring-boot-starter-logging:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] ch.qos.logback:logback-classic:jar:1.2.3:compile (version managed from 1.2.3) [DEBUG] ch.qos.logback:logback-core:jar:1.2.3:compile (version managed from 1.2.3) [DEBUG] org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0:compile (version managed from 2.10.0) [DEBUG] org.apache.logging.log4j:log4j-api:jar:2.10.0:compile (version managed from 2.10.0) [DEBUG] org.slf4j:jul-to-slf4j:jar:1.7.25:compile (version managed from 1.7.25) [DEBUG] javax.annotation:javax.annotation-api:jar:1.3.2:compile (version managed from 1.3.2) [DEBUG] org.yaml:snakeyaml:jar:1.19:runtime (version managed from 1.19) [DEBUG] org.springframework.boot:spring-boot-starter-json:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] com.fasterxml.jackson.core:jackson-databind:jar:2.9.5:compile (version managed from 2.9.5) [DEBUG] com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile (version managed from 2.9.0) [DEBUG] com.fasterxml.jackson.core:jackson-core:jar:2.9.5:compile (version managed from 2.9.5) [DEBUG] com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.5:compile (version managed from 2.9.5) [DEBUG] com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.5:compile (version managed from 2.9.5) [DEBUG] com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.5:compile (version managed from 2.9.5) [DEBUG] org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.31:compile (version managed from 8.5.31) [DEBUG] org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.31:compile (version managed from 8.5.31) [DEBUG] org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.31:compile (version managed from 8.5.31) [DEBUG] org.hibernate.validator:hibernate-validator:jar:6.0.9.Final:compile (version managed from 6.0.9.Final) [DEBUG] javax.validation:validation-api:jar:2.0.1.Final:compile (version managed from 2.0.1.Final) [DEBUG] org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile (version managed from 3.3.2.Final) [DEBUG] com.fasterxml:classmate:jar:1.3.4:compile (version managed from 1.3.4) [DEBUG] org.springframework:spring-web:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-beans:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-webmvc:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-aop:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-context:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-expression:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework.boot:spring-boot-starter-test:jar:2.0.2.RELEASE:test [DEBUG] org.springframework.boot:spring-boot-test:jar:2.0.2.RELEASE:test (version managed from 2.0.2.RELEASE) [DEBUG] org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.2.RELEASE:test (version managed from 2.0.2.RELEASE) [DEBUG] com.jayway.jsonpath:json-path:jar:2.4.0:test (version managed from 2.4.0) [DEBUG] net.minidev:json-smart:jar:2.3:test [DEBUG] net.minidev:accessors-smart:jar:1.2:test [DEBUG] org.ow2.asm:asm:jar:5.0.4:test [DEBUG] org.slf4j:slf4j-api:jar:1.7.25:compile (version managed from 1.7.25) [DEBUG] junit:junit:jar:4.12:test (version managed from 4.12) [DEBUG] org.assertj:assertj-core:jar:3.9.1:test (version managed from 3.9.1) [DEBUG] org.mockito:mockito-core:jar:2.15.0:test (version managed from 2.15.0) [DEBUG] net.bytebuddy:byte-buddy:jar:1.7.11:test (version managed from 1.7.9) [DEBUG] net.bytebuddy:byte-buddy-agent:jar:1.7.11:test (version managed from 1.7.9) [DEBUG] org.objenesis:objenesis:jar:2.6:test [DEBUG] org.hamcrest:hamcrest-core:jar:1.3:test (version managed from 1.3) [DEBUG] org.hamcrest:hamcrest-library:jar:1.3:test (version managed from 1.3) [DEBUG] org.skyscreamer:jsonassert:jar:1.5.0:test (version managed from 1.5.0) [DEBUG] com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test [DEBUG] org.springframework:spring-core:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-jcl:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-test:jar:5.0.6.RELEASE:test (version managed from 5.0.6.RELEASE) [DEBUG] org.xmlunit:xmlunit-core:jar:2.5.1:test (version managed from 2.5.1) [DEBUG] org.projectlombok:lombok:jar:1.18.0:compile [INFO] [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ slow-response --- [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=271467, ConflictMarker.markTime=137065, ConflictMarker.nodeCount=69, ConflictIdSorter.graphTime=128015, ConflictIdSorter.topsortTime=39636, ConflictIdSorter.conflictIdCount=28, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1203560, ConflictResolver.conflictItemCount=68, DefaultDependencyCollector.collectTime=123717023, DefaultDependencyCollector.transformTime=1857331} [DEBUG] org.apache.maven.plugins:maven-resources-plugin:jar:3.0.1: [DEBUG] org.apache.maven:maven-plugin-api:jar:3.0:compile [DEBUG] org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile [DEBUG] org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile [DEBUG] org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile [DEBUG] org.apache.maven:maven-core:jar:3.0:compile [DEBUG] org.apache.maven:maven-settings-builder:jar:3.0:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.0:compile [DEBUG] org.apache.maven:maven-model-builder:jar:3.0:compile [DEBUG] org.apache.maven:maven-aether-provider:jar:3.0:runtime [DEBUG] org.sonatype.aether:aether-impl:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-spi:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-api:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-util:jar:1.7:compile [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.6:compile [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.0:compile [DEBUG] org.apache.maven:maven-settings:jar:3.0:compile [DEBUG] org.apache.maven:maven-model:jar:3.0:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.24:compile [DEBUG] org.apache.maven.shared:maven-filtering:jar:3.1.1:compile [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:3.0.0:compile [DEBUG] commons-io:commons-io:jar:2.4:compile [DEBUG] com.google.code.findbugs:jsr305:jar:2.0.1:compile [DEBUG] org.sonatype.plexus:plexus-build-api:jar:0.0.7:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.22:compile [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-resources-plugin:3.0.1 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-resources-plugin:3.0.1 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-resources-plugin:3.0.1 [DEBUG] Included: org.apache.maven.plugins:maven-resources-plugin:jar:3.0.1 [DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:1.4.2 [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7 [DEBUG] Included: org.sonatype.aether:aether-util:jar:1.7 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.6 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.24 [DEBUG] Included: org.apache.maven.shared:maven-filtering:jar:3.1.1 [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:3.0.0 [DEBUG] Included: commons-io:commons-io:jar:2.4 [DEBUG] Included: com.google.code.findbugs:jsr305:jar:2.0.1 [DEBUG] Included: org.sonatype.plexus:plexus-build-api:jar:0.0.7 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.22 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-resources-plugin:3.0.1:resources from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-resources-plugin:3.0.1, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@1de0aca6] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:3.0.1:resources' with basic configurator --> [DEBUG] (f) addDefaultExcludes = true [DEBUG] (f) buildFilters = [] [DEBUG] (s) delimiters = [@] [DEBUG] (f) encoding = UTF-8 [DEBUG] (f) escapeString = \ [DEBUG] (f) escapeWindowsPaths = true [DEBUG] (f) fileNameFiltering = false [DEBUG] (s) includeEmptyDirs = false [DEBUG] (s) outputDirectory = /home/did/Dev/sandbox/_SPRING/slow-response/target/classes [DEBUG] (s) overwrite = false [DEBUG] (f) project = MavenProject: com.mydomain.sandbox:slow-response:0.0.1-SNAPSHOT @ /home/did/Dev/sandbox/_SPRING/slow-response/pom.xml [DEBUG] (s) resources = [Resource {targetPath: null, filtering: true, FileSet {directory: /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources, PatternSet [includes: {**/application*.yml, **/application*.yaml, **/application*.properties}, excludes: {}]}}, Resource {targetPath: null, filtering: false, FileSet {directory: /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources, PatternSet [includes: {}, excludes: {**/application*.yml, **/application*.yaml, **/application*.properties}]}}] [DEBUG] (f) session = org.apache.maven.execution.MavenSession@4dc8c0ea [DEBUG] (f) skip = false [DEBUG] (f) supportMultiLineFiltering = false [DEBUG] (f) useBuildFilters = true [DEBUG] (s) useDefaultDelimiters = false [DEBUG] -- end configuration -- [DEBUG] properties used {spring-integration.version=5.0.5.RELEASE, flyway.version=5.0.7, java.specification.version=10, webjars-hal-browser.version=3325375, java.vendor.url=http://java.oracle.com/, jna.version=4.5.1, sun.boot.library.path=/usr/lib/jvm/java-11-openjdk-amd64/lib, sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher compile -X com.google.cloud.tools:jib-maven-plugin:0.9.7:build, jdk.debug=release, maven.version=3.5.2, kafka.version=1.0.1, jboss-transaction-spi.version=7.6.0.Final, java.specification.name=Java Platform API Specification, java.vm.specification.vendor=Oracle Corporation, exec-maven-plugin.version=1.5.0, maven-install-plugin.version=2.5.2, byte-buddy.version=1.7.11, java.runtime.version=10.0.1+10-Ubuntu-3ubuntu1, micrometer.version=1.0.4, rxjava-adapter.version=1.2.1, project.baseUri=file:/home/did/Dev/sandbox/_SPRING/slow-response/, hibernate.version=5.2.17.Final, java.io.tmpdir=/tmp, java.version=10.0.1, build-helper-maven-plugin.version=3.0.0, mockito.version=2.15.0, java.vm.specification.name=Java Virtual Machine Specification, infinispan.version=9.1.7.Final, nekohtml.version=1.9.22, maven-assembly-plugin.version=3.1.0, java.library.path=/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib, java.vendor=Oracle Corporation, spring-cloud-connectors.version=2.0.1.RELEASE, thymeleaf-extras-java8time.version=3.0.1.RELEASE, undertow.version=1.4.25.Final, mariadb.version=2.2.3, env.XAUTHORITY=/home/did/.Xauthority, selenium-htmlunit.version=2.29.3, thymeleaf-extras-data-attribute.version=2.0.1, ehcache3.version=3.5.2, commons-dbcp2.version=2.2.0, env.LANG=fr_FR.UTF-8, mongodb.version=3.6.3, couchbase-cache-client.version=2.1.0, env.LC_MONETARY=fr_FR.UTF-8, user.timezone=, java.vm.specification.version=10, javax-transaction.version=1.2, maven.compiler.source=10, user.home=/root, spring.version=5.0.6.RELEASE, postgresql.version=42.2.2, env.LANGUAGE=, reactive-streams.version=1.0.2, jmustache.version=1.14, querydsl.version=4.1.4, appengine-sdk.version=1.9.63, thymeleaf-layout-dialect.version=2.3.0, hamcrest.version=1.3, os.version=4.15.0-29-generic, commons-pool.version=1.6, env.MAIL=/var/mail/root, java.vm.name=OpenJDK 64-Bit Server VM, maven-help-plugin.version=2.2, env.LC_ADDRESS=fr_FR.UTF-8, json-path.version=2.4.0, jaxen.version=1.1.6, env.USERNAME=root, os.arch=amd64, spring-batch.version=4.0.1.RELEASE, couchbase-client.version=2.5.8, derby.version=10.14.1.0, jest.version=5.3.3, javax-jsonb.version=1.0, junit-platform.version=1.1.0, rxjava2.version=2.1.13, neo4j-ogm.version=3.1.0, maven-site-plugin.version=3.6, awt.toolkit=sun.awt.X11.XToolkit, flatten-maven-plugin.version=1.0.0, commons-codec.version=1.11, caffeine.version=2.6.2, dom4j.version=1.6.1, h2.version=1.4.197, java.vm.compressedOopsMode=Zero based, unboundid-ldapsdk.version=4.0.5, javax-jaxb.version=2.3.0, sqlite-jdbc.version=3.21.0.1, env.LC_TELEPHONE=fr_FR.UTF-8, activemq.version=5.15.3, httpasyncclient.version=4.1.3, jtds.version=1.3.1, javax-jms.version=2.0.1, env.LOGNAME=root, spring-security.version=5.0.5.RELEASE, hibernate-validator.version=6.0.9.Final, assertj.version=3.9.1, influxdb-java.version=2.9, env.SUDO_USER=did, sun.os.patch.level=unknown, lombok.version=1.16.20, maven.compiler.target=10, library.jansi.path=/usr/share/maven/lib/jansi-native, commons-pool2.version=2.5.0, env.LC_MEASUREMENT=fr_FR.UTF-8, spring-retry.version=1.2.2.RELEASE, maven-invoker-plugin.version=3.0.0, maven-antrun-plugin.version=1.8, maven.conf=/usr/share/maven/conf, sun.java.launcher=SUN_STANDARD, user.country=FR, resource.delimiter=@, javax-json.version=1.1.2, jboss-logging.version=3.3.2.Final, maven-resources-plugin.version=3.0.1, javax-validation.version=2.0.1.Final, netty.version=4.1.24.Final, jetty-jsp.version=2.2.0.v201112011158, maven-source-plugin.version=3.0.1, jetty.version=9.4.10.v20180503, rxjava.version=1.3.8, elasticsearch.version=5.6.9, java.runtime.name=OpenJDK Runtime Environment, rest-assured.version=3.0.7, maven-deploy-plugin.version=2.8.2, env.MAVEN_CMD_LINE_ARGS= compile -X com.google.cloud.tools:jib-maven-plugin:0.9.7:build, log4j2.version=2.10.0, maven-failsafe-plugin.version=2.21.0, dropwizard-metrics.version=3.2.6, git-commit-id-plugin.version=2.2.3, hazelcast-hibernate5.version=1.2.3, htmlunit.version=2.29, env.TERM=xterm-256color, sun.cpu.isalist=, jackson.version=2.9.5, sun.arch.data.model=64, spring-restdocs.version=2.0.1.RELEASE, freemarker.version=2.3.28, thymeleaf.version=3.0.9.RELEASE, janino.version=3.0.8, maven-jar-plugin.version=3.0.2, maven-compiler-plugin.version=3.7.0, java.specification.vendor=Oracle Corporation, bitronix.version=2.1.4, rabbit-amqp-client.version=5.1.2, java.version.date=2018-04-17, spring-amqp.version=2.0.3.RELEASE, java.home=/usr/lib/jvm/java-11-openjdk-amd64, env.SUDO_GID=1000, spring-plugin.version=1.2.0.RELEASE, maven-war-plugin.version=3.1.0, thymeleaf-extras-springsecurity4.version=3.0.2.RELEASE, jolokia.version=1.5.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, env.PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin, httpclient.version=4.5.5, maven-dependency-plugin.version=3.0.2, jsonassert.version=1.5.0, file.encoding=UTF-8, gson.version=2.8.4, sun-mail.version=1.6.1, env.LC_IDENTIFICATION=fr_FR.UTF-8, env.LC_NUMERIC=fr_FR.UTF-8, nio-multipart-parser.version=1.1.0, mssql-jdbc.version=6.2.2.jre8, snakeyaml.version=1.19, liquibase.version=3.5.5, java.awt.printerjob=sun.print.PSPrinterJob, httpcore.version=4.4.9, lettuce.version=5.0.4.RELEASE, org.slf4j.simpleLogger.defaultLogLevel=debug, statsd-client.version=3.1.0, classworlds.conf=/usr/share/maven/bin/m2.conf, sun.io.unicode.encoding=UnicodeLittle, joda-time.version=2.9.9, kotlin.version=1.2.41, wsdl4j.version=1.6.3, tomcat.version=8.5.31, sendgrid.version=4.1.2, spring-ws.version=3.0.1.RELEASE, commons-lang3.version=3.7, os.name=Linux, junit.version=4.12, env.DISPLAY=:0, simple-json.version=1.1.1, jetty-el.version=8.5.24.2, mongo-driver-reactivestreams.version=1.7.1, maven.build.timestamp=2018-07-31T13:51:25Z, reactor-bom.version=Bismuth-SR9, maven-enforcer-plugin.version=3.0.0-M1, jstl.version=1.2, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, quartz.version=2.3.0, javax-money.version=1.0.3, spring-hateoas.version=0.24.0.RELEASE, path.separator=:, env.SHELL=/bin/bash, maven.multiModuleProjectDirectory=/home/did/Dev/sandbox/_SPRING/slow-response, env.MAVEN_PROJECTBASEDIR=/home/did/Dev/sandbox/_SPRING/slow-response, java.vm.info=mixed mode, cassandra-driver.version=3.4.0, env.USER=root, java.class.version=54.0, xml-maven-plugin.version=1.0.1, narayana.version=5.8.1.Final, sun.jnu.encoding=UTF-8, xmlunit2.version=2.5.1, slf4j.version=1.7.25, solr.version=6.6.3, maven.build.version=Apache Maven 3.5.2, hikaricp.version=2.7.9, maven.home=/usr/share/maven, maven-shade-plugin.version=2.4.3, file.separator=/, line.separator= , spring-kafka.version=2.1.6.RELEASE, jersey.version=2.26, user.name=root, env.LC_TIME=fr_FR.UTF-8, hazelcast.version=3.9.4, jdom2.version=2.0.6, atomikos.version=4.0.6, aspectj.version=1.8.13, spring-data-releasetrain.version=Kay-SR7, hsqldb.version=2.4.0, webjars-locator-core.version=0.35, project.reporting.outputEncoding=UTF-8, xml-apis.version=1.4.01, env.SUDO_COMMAND=/usr/bin/mvn compile -X com.google.cloud.tools:jib-maven-plugin:0.9.7:build, env.OLDPWD=/home/did/Dev/sandbox/_SPRING/slow-response, env.PWD=/home/did/Dev/sandbox/_SPRING/slow-response, file.encoding.pkg=sun.io, embedded-mongo.version=2.0.3, env.LC_NAME=fr_FR.UTF-8, johnzon-jsonb.version=1.1.7, spring-ldap.version=2.3.2.RELEASE, java.class.path=/usr/share/maven/boot/plexus-classworlds-2.x.jar, env.HOME=/home/did, java.vm.vendor=Oracle Corporation, maven-javadoc-plugin.version=3.0.0, servlet-api.version=3.1.0, artemis.version=2.4.0, groovy.version=2.4.15, javax-cache.version=1.1.0, logback.version=1.2.3, sun.cpu.endian=little, versions-maven-plugin.version=2.3, user.language=fr, jedis.version=2.9.0, maven-clean-plugin.version=3.0.0, javax-mail.version=1.6.1, maven-surefire-plugin.version=2.21.0, javax-annotation.version=1.3.2, env.LC_PAPER=fr_FR.UTF-8, env.SUDO_UID=1000, mysql.version=5.1.46, classmate.version=1.3.4, jaybird.version=3.0.4, antlr2.version=2.7.7, selenium.version=3.9.1, glassfish-el.version=3.0.0, project.build.sourceEncoding=UTF-8, jooq.version=3.10.7, java.vendor.url.bug=http://bugreport.java.com/bugreport/, user.dir=/home/did/Dev/sandbox/_SPRING/slow-response, ehcache.version=2.10.4, junit-jupiter.version=5.1.1, java.vm.version=10.0.1+10-Ubuntu-3ubuntu1, maven-eclipse-plugin.version=2.10, spring-session-bom.version=Apple-SR2} [INFO] Using 'UTF-8' encoding to copy filtered resources. [DEBUG] resource with targetPath null directory /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources excludes [] includes [**/application*.yml, **/application*.yaml, **/application*.properties] [DEBUG] ignoreDelta true [INFO] Copying 1 resource [DEBUG] Copying file application.yml [DEBUG] file application.yml has a filtered file extension [DEBUG] filtering /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources/application.yml to /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/application.yml [DEBUG] resource with targetPath null directory /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources excludes [**/application*.yml, **/application*.yaml, **/application*.properties] includes [] [DEBUG] ignoreDelta true [INFO] Copying 1 resource [DEBUG] Copying file log4j.properties [DEBUG] file log4j.properties has a filtered file extension [DEBUG] copy /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources/log4j.properties to /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/log4j.properties [DEBUG] no use filter components [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ slow-response --- [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=301547, ConflictMarker.markTime=116458, ConflictMarker.nodeCount=118, ConflictIdSorter.graphTime=147376, ConflictIdSorter.topsortTime=60019, ConflictIdSorter.conflictIdCount=45, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1040411, ConflictResolver.conflictItemCount=72, DefaultDependencyCollector.collectTime=68928454, DefaultDependencyCollector.transformTime=1696123} [DEBUG] org.apache.maven.plugins:maven-compiler-plugin:jar:3.7.0: [DEBUG] org.apache.maven:maven-plugin-api:jar:3.0:compile [DEBUG] org.apache.maven:maven-model:jar:3.0:compile [DEBUG] org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile [DEBUG] org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile [DEBUG] org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.0:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.4:compile [DEBUG] org.apache.maven:maven-core:jar:3.0:compile [DEBUG] org.apache.maven:maven-settings:jar:3.0:compile [DEBUG] org.apache.maven:maven-settings-builder:jar:3.0:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.0:compile [DEBUG] org.apache.maven:maven-model-builder:jar:3.0:compile [DEBUG] org.apache.maven:maven-aether-provider:jar:3.0:runtime [DEBUG] org.sonatype.aether:aether-impl:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-spi:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-api:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-util:jar:1.7:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.14:compile [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.6:compile [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile [DEBUG] commons-io:commons-io:jar:2.5:compile [DEBUG] org.apache.maven.shared:maven-shared-incremental:jar:1.1:compile [DEBUG] org.codehaus.plexus:plexus-java:jar:0.9.2:compile [DEBUG] org.ow2.asm:asm:jar:6.0_BETA:compile [DEBUG] com.thoughtworks.qdox:qdox:jar:2.0-M7:compile [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:2.8.2:compile [DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:2.8.2:compile [DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:2.8.2:runtime [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.7.0 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.7.0 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.7.0 [DEBUG] Included: org.apache.maven.plugins:maven-compiler-plugin:jar:3.7.0 [DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:1.4.2 [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.4 [DEBUG] Included: org.sonatype.aether:aether-util:jar:1.7 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.14 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.6 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:3.1.0 [DEBUG] Included: commons-io:commons-io:jar:2.5 [DEBUG] Included: org.apache.maven.shared:maven-shared-incremental:jar:1.1 [DEBUG] Included: org.codehaus.plexus:plexus-java:jar:0.9.2 [DEBUG] Included: org.ow2.asm:asm:jar:6.0_BETA [DEBUG] Included: com.thoughtworks.qdox:qdox:jar:2.0-M7 [DEBUG] Included: org.codehaus.plexus:plexus-compiler-api:jar:2.8.2 [DEBUG] Included: org.codehaus.plexus:plexus-compiler-manager:jar:2.8.2 [DEBUG] Included: org.codehaus.plexus:plexus-compiler-javac:jar:2.8.2 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:3.7.0, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@1de0aca6] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile' with basic configurator --> [DEBUG] (f) basedir = /home/did/Dev/sandbox/_SPRING/slow-response [DEBUG] (f) buildDirectory = /home/did/Dev/sandbox/_SPRING/slow-response/target [DEBUG] (f) compilePath = [/home/did/Dev/sandbox/_SPRING/slow-response/target/classes, /root/.m2/repository/org/springframework/boot/spring-boot-starter-web/2.0.2.RELEASE/spring-boot-starter-web-2.0.2.RELEASE.jar, /root/.m2/repository/org/springframework/boot/spring-boot-starter/2.0.2.RELEASE/spring-boot-starter-2.0.2.RELEASE.jar, /root/.m2/repository/org/springframework/boot/spring-boot/2.0.2.RELEASE/spring-boot-2.0.2.RELEASE.jar, /root/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.0.2.RELEASE/spring-boot-autoconfigure-2.0.2.RELEASE.jar, /root/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.0.2.RELEASE/spring-boot-starter-logging-2.0.2.RELEASE.jar, /root/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar, /root/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar, /root/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.10.0/log4j-to-slf4j-2.10.0.jar, /root/.m2/repository/org/apache/logging/log4j/log4j-api/2.10.0/log4j-api-2.10.0.jar, /root/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar, /root/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar, /root/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.0.2.RELEASE/spring-boot-starter-json-2.0.2.RELEASE.jar, /root/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.5/jackson-databind-2.9.5.jar, /root/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar, /root/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.5/jackson-core-2.9.5.jar, /root/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.5/jackson-datatype-jdk8-2.9.5.jar, /root/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.5/jackson-datatype-jsr310-2.9.5.jar, /root/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.5/jackson-module-parameter-names-2.9.5.jar, /root/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/2.0.2.RELEASE/spring-boot-starter-tomcat-2.0.2.RELEASE.jar, /root/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.31/tomcat-embed-core-8.5.31.jar, /root/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.5.31/tomcat-embed-el-8.5.31.jar, /root/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.31/tomcat-embed-websocket-8.5.31.jar, /root/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.9.Final/hibernate-validator-6.0.9.Final.jar, /root/.m2/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar, /root/.m2/repository/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar, /root/.m2/repository/com/fasterxml/classmate/1.3.4/classmate-1.3.4.jar, /root/.m2/repository/org/springframework/spring-web/5.0.6.RELEASE/spring-web-5.0.6.RELEASE.jar, /root/.m2/repository/org/springframework/spring-beans/5.0.6.RELEASE/spring-beans-5.0.6.RELEASE.jar, /root/.m2/repository/org/springframework/spring-webmvc/5.0.6.RELEASE/spring-webmvc-5.0.6.RELEASE.jar, /root/.m2/repository/org/springframework/spring-aop/5.0.6.RELEASE/spring-aop-5.0.6.RELEASE.jar, /root/.m2/repository/org/springframework/spring-context/5.0.6.RELEASE/spring-context-5.0.6.RELEASE.jar, /root/.m2/repository/org/springframework/spring-expression/5.0.6.RELEASE/spring-expression-5.0.6.RELEASE.jar, /root/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar, /root/.m2/repository/org/springframework/spring-core/5.0.6.RELEASE/spring-core-5.0.6.RELEASE.jar, /root/.m2/repository/org/springframework/spring-jcl/5.0.6.RELEASE/spring-jcl-5.0.6.RELEASE.jar, /root/.m2/repository/org/projectlombok/lombok/1.18.0/lombok-1.18.0.jar] [DEBUG] (f) compileSourceRoots = [/home/did/Dev/sandbox/_SPRING/slow-response/src/main/java] [DEBUG] (f) compilerId = javac [DEBUG] (f) debug = true [DEBUG] (f) encoding = UTF-8 [DEBUG] (f) failOnError = true [DEBUG] (f) failOnWarning = false [DEBUG] (f) forceJavacCompilerUse = false [DEBUG] (f) fork = false [DEBUG] (f) generatedSourcesDirectory = /home/did/Dev/sandbox/_SPRING/slow-response/target/generated-sources/annotations [DEBUG] (f) mojoExecution = org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile {execution: default-compile} [DEBUG] (f) optimize = false [DEBUG] (f) outputDirectory = /home/did/Dev/sandbox/_SPRING/slow-response/target/classes [DEBUG] (f) parameters = true [DEBUG] (f) project = MavenProject: com.mydomain.sandbox:slow-response:0.0.1-SNAPSHOT @ /home/did/Dev/sandbox/_SPRING/slow-response/pom.xml [DEBUG] (f) projectArtifact = com.mydomain.sandbox:slow-response:jar:0.0.1-SNAPSHOT [DEBUG] (f) session = org.apache.maven.execution.MavenSession@4dc8c0ea [DEBUG] (f) showDeprecation = false [DEBUG] (f) showWarnings = false [DEBUG] (f) skipMultiThreadWarning = false [DEBUG] (f) source = 10 [DEBUG] (f) staleMillis = 0 [DEBUG] (f) target = 10 [DEBUG] (f) useIncrementalCompilation = true [DEBUG] (f) verbose = false [DEBUG] -- end configuration -- [DEBUG] Using compiler 'javac'. [DEBUG] Adding /home/did/Dev/sandbox/_SPRING/slow-response/target/generated-sources/annotations to compile source roots: /home/did/Dev/sandbox/_SPRING/slow-response/src/main/java [DEBUG] New compile source roots: /home/did/Dev/sandbox/_SPRING/slow-response/src/main/java /home/did/Dev/sandbox/_SPRING/slow-response/target/generated-sources/annotations [DEBUG] CompilerReuseStrategy: reuseCreated [DEBUG] useIncrementalCompilation enabled [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- jib-maven-plugin:0.9.7:build (default-cli) @ slow-response --- [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=372573, ConflictMarker.markTime=121075, ConflictMarker.nodeCount=106, ConflictIdSorter.graphTime=103333, ConflictIdSorter.topsortTime=60644, ConflictIdSorter.conflictIdCount=50, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2111185, ConflictResolver.conflictItemCount=103, DefaultDependencyCollector.collectTime=166811815, DefaultDependencyCollector.transformTime=2805228} [DEBUG] com.google.cloud.tools:jib-maven-plugin:jar:0.9.7: [DEBUG] com.google.http-client:google-http-client:jar:1.23.0:compile [DEBUG] com.google.code.findbugs:jsr305:jar:1.3.9:compile [DEBUG] org.apache.httpcomponents:httpclient:jar:4.0.1:compile [DEBUG] org.apache.httpcomponents:httpcore:jar:4.0.1:compile [DEBUG] commons-logging:commons-logging:jar:1.1.1:compile [DEBUG] commons-codec:commons-codec:jar:1.3:compile [DEBUG] org.apache.commons:commons-compress:jar:1.17:compile [DEBUG] com.google.guava:guava:jar:23.5-jre:compile [DEBUG] org.checkerframework:checker-qual:jar:2.0.0:compile [DEBUG] com.google.errorprone:error_prone_annotations:jar:2.0.18:compile [DEBUG] com.google.j2objc:j2objc-annotations:jar:1.1:compile [DEBUG] org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile [DEBUG] com.fasterxml.jackson.core:jackson-databind:jar:2.9.6:compile [DEBUG] com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile [DEBUG] com.fasterxml.jackson.core:jackson-core:jar:2.9.6:compile [DEBUG] org.slf4j:slf4j-api:jar:1.7.25:compile [DEBUG] org.javassist:javassist:jar:3.22.0-GA:compile [DEBUG] org.apache.maven:maven-plugin-api:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-model:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.5.2:compile [DEBUG] org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.3:compile [DEBUG] javax.enterprise:cdi-api:jar:1.0:compile [DEBUG] javax.annotation:jsr250-api:jar:1.0:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:3.1.0:compile [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.5.2:compile [DEBUG] org.apache.maven:maven-core:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-settings:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-settings-builder:jar:3.5.2:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.24:compile [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:compile [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile [DEBUG] org.apache.maven:maven-builder-support:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-model-builder:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-resolver-provider:jar:3.5.2:compile [DEBUG] org.apache.maven.resolver:maven-resolver-impl:jar:1.1.0:compile [DEBUG] org.apache.maven.resolver:maven-resolver-api:jar:1.1.0:compile [DEBUG] org.apache.maven.resolver:maven-resolver-spi:jar:1.1.0:compile [DEBUG] org.apache.maven.resolver:maven-resolver-util:jar:1.1.0:compile [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile [DEBUG] commons-io:commons-io:jar:2.5:compile [DEBUG] org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3:compile [DEBUG] com.google.inject:guice:jar:no_aop:4.0:compile [DEBUG] aopalliance:aopalliance:jar:1.0:compile [DEBUG] javax.inject:javax.inject:jar:1:compile [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:compile [DEBUG] org.apache.commons:commons-lang3:jar:3.5:compile [DEBUG] org.apache.maven.shared:maven-verifier:jar:1.6:compile [DEBUG] junit:junit:jar:3.8.2:compile [DEBUG] Created new class realm plugin>com.google.cloud.tools:jib-maven-plugin:0.9.7 [DEBUG] Importing foreign packages into class realm plugin>com.google.cloud.tools:jib-maven-plugin:0.9.7 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>com.google.cloud.tools:jib-maven-plugin:0.9.7 [DEBUG] Included: com.google.cloud.tools:jib-maven-plugin:jar:0.9.7 [DEBUG] Included: com.google.http-client:google-http-client:jar:1.23.0 [DEBUG] Included: com.google.code.findbugs:jsr305:jar:1.3.9 [DEBUG] Included: org.apache.httpcomponents:httpclient:jar:4.0.1 [DEBUG] Included: org.apache.httpcomponents:httpcore:jar:4.0.1 [DEBUG] Included: commons-logging:commons-logging:jar:1.1.1 [DEBUG] Included: commons-codec:commons-codec:jar:1.3 [DEBUG] Included: org.apache.commons:commons-compress:jar:1.17 [DEBUG] Included: com.google.guava:guava:jar:23.5-jre [DEBUG] Included: org.checkerframework:checker-qual:jar:2.0.0 [DEBUG] Included: com.google.errorprone:error_prone_annotations:jar:2.0.18 [DEBUG] Included: com.google.j2objc:j2objc-annotations:jar:1.1 [DEBUG] Included: org.codehaus.mojo:animal-sniffer-annotations:jar:1.14 [DEBUG] Included: com.fasterxml.jackson.core:jackson-databind:jar:2.9.6 [DEBUG] Included: com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0 [DEBUG] Included: com.fasterxml.jackson.core:jackson-core:jar:2.9.6 [DEBUG] Included: org.javassist:javassist:jar:3.22.0-GA [DEBUG] Included: javax.enterprise:cdi-api:jar:1.0 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.1.0 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.24 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.apache.maven:maven-builder-support:jar:3.5.2 [DEBUG] Included: org.apache.maven.resolver:maven-resolver-util:jar:1.1.0 [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:3.1.0 [DEBUG] Included: commons-io:commons-io:jar:2.5 [DEBUG] Included: org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3 [DEBUG] Included: com.google.inject:guice:jar:no_aop:4.0 [DEBUG] Included: aopalliance:aopalliance:jar:1.0 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.7.1 [DEBUG] Included: org.apache.commons:commons-lang3:jar:3.5 [DEBUG] Included: org.apache.maven.shared:maven-verifier:jar:1.6 [DEBUG] Included: junit:junit:jar:3.8.2 [DEBUG] Configuring mojo com.google.cloud.tools:jib-maven-plugin:0.9.7:build from plugin realm ClassRealm[plugin>com.google.cloud.tools:jib-maven-plugin:0.9.7, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@1de0aca6] [DEBUG] Configuring mojo 'com.google.cloud.tools:jib-maven-plugin:0.9.7:build' with basic configurator --> [DEBUG] (f) allowInsecureRegistries = false [DEBUG] (f) extraDirectory = /home/did/Dev/sandbox/_SPRING/slow-response/src/main/jib [DEBUG] (f) project = MavenProject: com.mydomain.sandbox:slow-response:0.0.1-SNAPSHOT @ /home/did/Dev/sandbox/_SPRING/slow-response/pom.xml [DEBUG] (f) session = org.apache.maven.execution.MavenSession@4dc8c0ea [DEBUG] (f) image = gitlab.mydomain.com:4567/sandbox/slow-response [DEBUG] (f) to = com.google.cloud.tools.jib.maven.JibPluginConfiguration$ToConfiguration@64d4f7c7 [DEBUG] (f) useOnlyProjectCache = false [DEBUG] -- end configuration -- [DEBUG] Searching for main class... Add a 'mainClass' configuration to 'jib-maven-plugin' to improve build speed. [DEBUG] Could not find a valid main class specified in 'maven-jar-plugin'; attempting to infer main class. [WARNING] Base image 'gcr.io/distroless/java' does not use a specific image digest - build may not be reproducible [INFO] [INFO] Containerizing application to gitlab.mydomain.com:4567/sandbox/slow-response... [DEBUG] Containerizing application with the following files: [DEBUG] Classes: [DEBUG] /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/net [DEBUG] Resources: [DEBUG] /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/application.yml [DEBUG] /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/log4j.properties [DEBUG] Dependencies: [DEBUG] /root/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar [DEBUG] /root/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar [DEBUG] /root/.m2/repository/com/fasterxml/classmate/1.3.4/classmate-1.3.4.jar [DEBUG] /root/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar [DEBUG] /root/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.5/jackson-core-2.9.5.jar [DEBUG] /root/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.5/jackson-databind-2.9.5.jar [DEBUG] /root/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.5/jackson-datatype-jdk8-2.9.5.jar [DEBUG] /root/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.5/jackson-datatype-jsr310-2.9.5.jar [DEBUG] /root/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.5/jackson-module-parameter-names-2.9.5.jar [DEBUG] /root/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar [DEBUG] /root/.m2/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar [DEBUG] /root/.m2/repository/org/apache/logging/log4j/log4j-api/2.10.0/log4j-api-2.10.0.jar [DEBUG] /root/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.10.0/log4j-to-slf4j-2.10.0.jar [DEBUG] /root/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.31/tomcat-embed-core-8.5.31.jar [DEBUG] /root/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.5.31/tomcat-embed-el-8.5.31.jar [DEBUG] /root/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.31/tomcat-embed-websocket-8.5.31.jar [DEBUG] /root/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.9.Final/hibernate-validator-6.0.9.Final.jar [DEBUG] /root/.m2/repository/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar [DEBUG] /root/.m2/repository/org/projectlombok/lombok/1.18.0/lombok-1.18.0.jar [DEBUG] /root/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar [DEBUG] /root/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar [DEBUG] /root/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.0.2.RELEASE/spring-boot-autoconfigure-2.0.2.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.0.2.RELEASE/spring-boot-starter-json-2.0.2.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.0.2.RELEASE/spring-boot-starter-logging-2.0.2.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/2.0.2.RELEASE/spring-boot-starter-tomcat-2.0.2.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/boot/spring-boot-starter-web/2.0.2.RELEASE/spring-boot-starter-web-2.0.2.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/boot/spring-boot-starter/2.0.2.RELEASE/spring-boot-starter-2.0.2.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/boot/spring-boot/2.0.2.RELEASE/spring-boot-2.0.2.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/spring-aop/5.0.6.RELEASE/spring-aop-5.0.6.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/spring-beans/5.0.6.RELEASE/spring-beans-5.0.6.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/spring-context/5.0.6.RELEASE/spring-context-5.0.6.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/spring-core/5.0.6.RELEASE/spring-core-5.0.6.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/spring-expression/5.0.6.RELEASE/spring-expression-5.0.6.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/spring-jcl/5.0.6.RELEASE/spring-jcl-5.0.6.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/spring-web/5.0.6.RELEASE/spring-web-5.0.6.RELEASE.jar [DEBUG] /root/.m2/repository/org/springframework/spring-webmvc/5.0.6.RELEASE/spring-webmvc-5.0.6.RELEASE.jar [DEBUG] /root/.m2/repository/org/yaml/snakeyaml/1.19/snakeyaml-1.19.jar [INFO] [DEBUG] TIMING Building and pushing image [DEBUG] RUNNING Building and pushing image [INFO] Retrieving registry credentials for gitlab.mydomain.com:4567... [DEBUG] TIMING Retrieving registry credentials for gitlab.mydomain.com:4567 [DEBUG] RUNNING Retrieving registry credentials for gitlab.mydomain.com:4567 [DEBUG] No credentials could be retrieved for registry gitlab.mydomain.com:4567 [DEBUG] TIMED Retrieving registry credentials for gitlab.mydomain.com:4567 : 3.452 ms [DEBUG] Retrieving registry credentials for gitlab.mydomain.com:4567 : 3.452 ms [DEBUG] TIMING Authenticating with push to gitlab.mydomain.com:4567 [DEBUG] RUNNING Authenticating with push to gitlab.mydomain.com:4567 [INFO] Getting base image gcr.io/distroless/java... [DEBUG] TIMING Pulling base image manifest [DEBUG] RUNNING Pulling base image manifest [DEBUG] TIMING Building application layers [DEBUG] RUNNING Building application layers [INFO] Building dependencies layer... [DEBUG] TIMING Building dependencies layer [DEBUG] RUNNING Building dependencies layer [INFO] Building resources layer... [DEBUG] TIMING Building resources layer [DEBUG] RUNNING Building resources layer [DEBUG] TIMED Building application layers : 1.9 ms [INFO] Building classes layer... [DEBUG] Building application layers : 1.9 ms [DEBUG] TIMING Building classes layer [DEBUG] RUNNING Building classes layer [DEBUG] TIMING Setting up to push layers [DEBUG] RUNNING Setting up to push layers [DEBUG] TIMED Setting up to push layers : 2.256 ms [DEBUG] Setting up to push layers : 2.256 ms [DEBUG] TIMED Building classes layer : 13.573 ms [DEBUG] Building classes layer : 13.573 ms [DEBUG] TIMED Building dependencies layer : 19.3 ms [DEBUG] Building dependencies layer : 19.3 ms [DEBUG] Building resources layer built sha256:d513ff2660b3365e501814478a76f5766347c5009549645fe318fe41c43dc500 [DEBUG] TIMED Building resources layer : 43.604 ms [DEBUG] Building resources layer : 43.604 ms [DEBUG] TIMED Authenticating with push to gitlab.mydomain.com:4567 : 788.472 ms [DEBUG] Authenticating with push to gitlab.mydomain.com:4567 : 788.472 ms [DEBUG] TIMED Pulling base image manifest : 1155.214 ms [DEBUG] Pulling base image manifest : 1155.214 ms [DEBUG] TIMING Setting up base image caching [DEBUG] RUNNING Setting up base image caching [DEBUG] TIMED Setting up base image caching : 0.872 ms [DEBUG] Setting up base image caching : 0.872 ms [DEBUG] TIMING Pulling base image layer sha256:8f125ded1b483229a567e48eece98cc8867c2bee55fb73e9cd65ceecc448b7c7 [DEBUG] TIMING Setting up to push layers [DEBUG] RUNNING Setting up to push layers [DEBUG] TIMED Setting up to push layers : 0.112 ms [DEBUG] Setting up to push layers : 0.112 ms [DEBUG] TIMING Pulling base image layer sha256:e55f91cfcc4c37eae015b13ca9634aa854a6370232eb6188586e6434d3305774 [DEBUG] RUNNING Pulling base image layer sha256:e55f91cfcc4c37eae015b13ca9634aa854a6370232eb6188586e6434d3305774 [DEBUG] TIMED Pulling base image layer sha256:e55f91cfcc4c37eae015b13ca9634aa854a6370232eb6188586e6434d3305774 : 0.44 ms [DEBUG] Pulling base image layer sha256:e55f91cfcc4c37eae015b13ca9634aa854a6370232eb6188586e6434d3305774 : 0.44 ms [DEBUG] TIMING Pulling base image layer sha256:ba7c544469e514f1a9a4dec59ab640540d50992b288adbb34a1a63c45bf19a24 [DEBUG] RUNNING Pulling base image layer sha256:ba7c544469e514f1a9a4dec59ab640540d50992b288adbb34a1a63c45bf19a24 [DEBUG] TIMED Pulling base image layer sha256:ba7c544469e514f1a9a4dec59ab640540d50992b288adbb34a1a63c45bf19a24 : 1.611 ms [DEBUG] Pulling base image layer sha256:ba7c544469e514f1a9a4dec59ab640540d50992b288adbb34a1a63c45bf19a24 : 1.611 ms [DEBUG] RUNNING Pulling base image layer sha256:8f125ded1b483229a567e48eece98cc8867c2bee55fb73e9cd65ceecc448b7c7 [DEBUG] TIMED Pulling base image layer sha256:8f125ded1b483229a567e48eece98cc8867c2bee55fb73e9cd65ceecc448b7c7 : 1.906 ms [DEBUG] Pulling base image layer sha256:8f125ded1b483229a567e48eece98cc8867c2bee55fb73e9cd65ceecc448b7c7 : 1.906 ms [DEBUG] TIMING Building container configuration [DEBUG] RUNNING Building container configuration [DEBUG] TIMED Building container configuration : 0.345 ms [DEBUG] Building container configuration : 0.345 ms [INFO] Finalizing... [DEBUG] TIMED Building and pushing image : 1360.335 ms [DEBUG] Building and pushing image : 1360.335 ms [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.794 s [INFO] Finished at: 2018-07-31T15:51:27+02:00 [INFO] Final Memory: 23M/94M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli) on project slow-response: Build image failed, perhaps you should make sure you have permissions for gitlab.mydomain.com:4567/sandbox/slow-response: Unauthorized for gitlab.mydomain.com:4567/sandbox/slow-response: 403 Forbidden [ERROR] {"errors":[{"code":"DENIED","message":"access forbidden"}],"http_status":403} [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli) on project slow-response: Build image failed, perhaps you should make sure you have permissions for gitlab.mydomain.com:4567/sandbox/slow-response at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Build image failed, perhaps you should make sure you have permissions for gitlab.mydomain.com:4567/sandbox/slow-response at com.google.cloud.tools.jib.maven.BuildImageMojo.execute (BuildImageMojo.java:165) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: com.google.cloud.tools.jib.registry.RegistryUnauthorizedException: Unauthorized for gitlab.mydomain.com:4567/sandbox/slow-response at com.google.cloud.tools.jib.frontend.BuildStepsRunner.build (BuildStepsRunner.java:246) at com.google.cloud.tools.jib.maven.BuildImageMojo.execute (BuildImageMojo.java:161) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: com.google.api.client.http.HttpResponseException: 403 Forbidden {"errors":[{"code":"DENIED","message":"access forbidden"}],"http_status":403} at com.google.api.client.http.HttpRequest.execute (HttpRequest.java:1070) at com.google.cloud.tools.jib.http.Connection.send (Connection.java:130) at com.google.cloud.tools.jib.http.Connection.get (Connection.java:87) at com.google.cloud.tools.jib.registry.RegistryAuthenticator.authenticate (RegistryAuthenticator.java:247) at com.google.cloud.tools.jib.registry.RegistryAuthenticator.authenticatePush (RegistryAuthenticator.java:220) at com.google.cloud.tools.jib.builder.steps.AuthenticatePushStep.call (AuthenticatePushStep.java:89) at com.google.cloud.tools.jib.builder.steps.AuthenticatePushStep.call (AuthenticatePushStep.java:42) at com.google.common.util.concurrent.CombinedFuture$CallableInterruptibleTask.runInterruptibly (CombinedFuture.java:181) at com.google.common.util.concurrent.InterruptibleTask.run (InterruptibleTask.java:57) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1135) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635) at java.lang.Thread.run (Thread.java:844) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException ``` **Additional Information**: But ```sudo mvn compile -X com.google.cloud.tools:jib-maven-plugin:0.9.7:dockerBuild``` Works well. I locally have my image built and I'm able to push it to my private Gitlab Repo. And If I don't use `sudo` I get this error : ``` [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli) on project slow-response: Build image failed, perhaps you should use a registry that supports HTTPS or set the configuration parameter 'allowInsecureRegistries': Only secure connections are allowed, but tried to reach URL http://gcr.io/v2/distroless/java/manifests/latest -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli) on project slow-response: Build image failed, perhaps you should use a registry that supports HTTPS or set the configuration parameter 'allowInsecureRegistries' ```

Thank you for your help.

chanseokoh commented 6 years ago

Hi @DidierSchonne,

For the issue about 403 Forbidden, the log seems to show that the username and the password in you ~/.m2/settings.xml are not being picked up. What's the contents of your settings.xml? I expect it would look like

<settings>
  ...
  <servers>
    ...
    <server>
      <id>gitlab.mydomain.com:4567</id>
      <username>...</username>
      <password>...</password>
    </server>
  </servers>
</settings>
DidierSchonne commented 6 years ago

Hi @chanseokoh, I tried with and without the port and I still have the same issue, and it is well filled as you expect :

      <servers>
        <server>
          <id>gitlab.mydomain.com:4567</id>
          <username>***</username>
          <password>***</password>
        </server>
      </servers>

I tried many times to copy / paste from a docker login command in order to avoid a misspelling. And don't understand why I have this: No credentials could be retrieved for registry gitlab.mydomain.com:4567

coollog commented 6 years ago

Hi @DidierSchonne , if you run mvn help:effective-settings, do the settings for your registry show up in the output?

chanseokoh commented 6 years ago

I tried with and without the port

FYI, the port part (:4567) is necessary.

And don't understand why I have this: No credentials could be retrieved for registry gitlab.mydomain.com:4567

This is the sign that Jib was not able to find the credentials from your settings.xml. Let's check the output of mvn help:effective-settings as @coollog suggested. FYI, you can do mvn --settings /path/to/custom/settings-xml.file ... to provide any arbitrary settings file.

briandealwis commented 6 years ago

The other thing to try is to enable full-auth logging. Follow the instructions for enabling logging with the Google HTTP Client, but instead of "CONFIG" use "ALL". That should show the username and password being passed up to gitlab.

DidierSchonne commented 6 years ago

@coollog, @chanseokoh, result is:

<settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
  <localRepository xmlns="http://maven.apache.org/SETTINGS/1.1.0">/home/did/.m2/repository</localRepository>
  <servers xmlns="http://maven.apache.org/SETTINGS/1.1.0">
    <server>
      <username>...</username>
      <password>***</password>
      <id>gitlab.mydomain.com:4567</id>
    </server>
  </servers>
  <pluginGroups xmlns="http://maven.apache.org/SETTINGS/1.1.0">
    <pluginGroup>org.apache.maven.plugins</pluginGroup>
    <pluginGroup>org.codehaus.mojo</pluginGroup>
  </pluginGroups>
</settings>

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

Thank you @briandealwis, I'm going to try your suggestion.

chanseokoh commented 6 years ago

@DidierSchonne and can you confirm you still see No credentials could be retrieved for registry gitlab.mydomain.com:4567?

briandealwis commented 6 years ago

Do either of your username or password contain any XML-relevant characters? Enabling Google HTTP logging should help reveal that. Basically you should see an item like:

Jul 31, 2018 12:24:56 PM com.google.api.client.http.HttpRequest execute
CONFIG: -------------- REQUEST  --------------
GET https://auth.docker.io/token?service=registry.docker.io&scope=repository:briandealwis/first:pull,push
Accept: */*
Accept-Encoding: gzip
Authorization: Basic YnJpYW5kZWFsd2lzOmZvb2Jhcg==
User-Agent: Google-HTTP-Java-Client/1.23.0 (gzip)

but to your gitlab instance. Base64-decoding that Authorization blog should reveal your username and password, separated with a colon.

$ echo 'YnJpYW5kZWFsd2lzOmZvb2Jhcg==' | base64 -D
briandealwis:foobar
DidierSchonne commented 6 years ago

@chanseokoh, I confirm and still have it:

[INFO] Retrieving registry credentials for gitlab.mydomain.com:4567...
[DEBUG] TIMING  Retrieving registry credentials for gitlab.mydomain.com:4567
[DEBUG] RUNNING Retrieving registry credentials for gitlab.mydomain.com:4567
[DEBUG] No credentials could be retrieved for registry gitlab.mydomain.com:4567
[DEBUG] TIMED   Retrieving registry credentials for gitlab.mydomain.com:4567 : 1.573 ms
[DEBUG] Retrieving registry credentials for gitlab.mydomain.com:4567 : 1.573 ms
[DEBUG] TIMING  Authenticating with push to gitlab.mydomain.com:4567
[DEBUG] RUNNING Authenticating with push to gitlab.mydomain.com:4567

@briandealwis, my password contained a special character but I changed my password to avoid any issue with it. I'm currently checking what the logs have to say.

DidierSchonne commented 6 years ago

@briandealwis Using your tip, the authorization header is simply not present.

``` $ sudo mvn jib:build -Djava.util.logging.config.file=src/main/resources/log.properties WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building slow-response 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- jib-maven-plugin:0.9.7:build (default-cli) @ slow-response --- [WARNING] Base image 'gcr.io/distroless/java' does not use a specific image digest - build may not be reproducible [INFO] [INFO] Containerizing application to gitlab.mydomain.com:4567/sandbox/slow-response... [INFO] [INFO] Retrieving registry credentials for gitlab.mydomain.com:4567... [INFO] Getting base image gcr.io/distroless/java... [INFO] Building dependencies layer... [INFO] Building resources layer... [INFO] Building classes layer... juil. 31, 2018 6:28:06 PM com.google.api.client.http.HttpRequest execute CONFIG: -------------- REQUEST -------------- GET https://gcr.io/v2/distroless/java/manifests/latest Accept: application/vnd.oci.image.manifest.v1+json,application/vnd.docker.distribution.manifest.v2+json,application/vnd.docker.distribution.manifest.v1+json Accept-Encoding: gzip User-Agent: jib 0.9.7 jib-maven-plugin Google-HTTP-Java-Client/1.23.0 (gzip) juil. 31, 2018 6:28:06 PM com.google.api.client.http.HttpRequest execute CONFIG: -------------- REQUEST -------------- GET https://gitlab.mydomain.com:4567/v2/ Accept: Accept-Encoding: gzip User-Agent: jib 0.9.7 jib-maven-plugin Google-HTTP-Java-Client/1.23.0 (gzip) juil. 31, 2018 6:28:06 PM com.google.api.client.http.HttpRequest execute CONFIG: curl -v --compressed -H 'Accept: ' -H 'Accept-Encoding: gzip' -H 'User-Agent: jib 0.9.7 jib-maven-plugin Google-HTTP-Java-Client/1.23.0 (gzip)' -- 'https://gitlab.mydomain.com:4567/v2/' juil. 31, 2018 6:28:06 PM com.google.api.client.http.HttpRequest execute CONFIG: curl -v --compressed -H 'Accept: application/vnd.oci.image.manifest.v1+json,application/vnd.docker.distribution.manifest.v2+json,application/vnd.docker.distribution.manifest.v1+json' -H 'Accept-Encoding: gzip' -H 'User-Agent: jib 0.9.7 jib-maven-plugin Google-HTTP-Java-Client/1.23.0 (gzip)' -- 'https://gcr.io/v2/distroless/java/manifests/latest' juil. 31, 2018 6:28:06 PM com.google.api.client.http.HttpResponse CONFIG: -------------- RESPONSE -------------- HTTP/1.1 401 Unauthorized Server: nginx Date: Tue, 31 Jul 2018 16:28:06 GMT Content-Type: application/json; charset=utf-8 Content-Length: 87 Connection: keep-alive Docker-Distribution-Api-Version: registry/2.0 Www-Authenticate: Bearer realm="https://gitlab.mydomain.com/jwt/auth",service="container_registry" X-Content-Type-Options: nosniff juil. 31, 2018 6:28:06 PM com.google.api.client.util.LoggingByteArrayOutputStream close CONFIG: Total: 87 bytes juil. 31, 2018 6:28:06 PM com.google.api.client.util.LoggingByteArrayOutputStream close CONFIG: {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]} ```
briandealwis commented 6 years ago

Oh, I suspect you're communicating over HTTP, and not HTTPS. We don't send auth over HTTP by default, since it's insecure. You'll need to run with the sendCredentialsOverHttp system property set to true (#599). This isn't a recommended approach: you should configure your registry with an SSL certificate, even if self-signed.

TadCordle commented 6 years ago

@briandealwis I'm not sure if that's the case; if that were true, jib should log something like "Required credentials for xxxx/yyyy were not sent because the connection was over HTTP", but I don't see that anywhere in their logs. If that is the case here, though, that may be a bug with jib not displaying the correct error message.

DidierSchonne commented 6 years ago

Hmm.. I added SSL through Let's Encrypt to Gitlab and parameterized the Gitlab Registry to use it. If I try to connect to http://gitlab.mydomain.com:4567 I'm switched to https.

chanseokoh commented 6 years ago

@DidierSchonne I noticed that you're running mvn with sudo. Regarding https://github.com/GoogleContainerTools/jib/issues/746#issuecomment-409276911, did you do

mvn help:effective-setting

or

sudo mvn help:effective-setting

? Do they give different results? For sudo mvn ..., I believe it will look into, e.g., /root/.m2/settings.xml on a typical Linux. Most likely you shouldn't do sudo when building.

briandealwis commented 6 years ago

@DidierSchonne I see from gitlab's documentation that it supports the use of docker login. Perhaps try that instead of the Maven settings: we should pick up the settings from the ~/.docker/config.json.

Users should now be able to login to the Container Registry with their GitLab credentials using:

docker login gitlab.example.com:4567
DidierSchonne commented 6 years ago

You're right @chanseokoh, with sudo I don't have my right settings. So I added my user to the Docker group, because I guess that it is needed to push to the registry, right?

But with mvn compile -X com.google.cloud.tools:jib-maven-plugin:0.9.7:build

I have this error: Caused by: com.google.cloud.tools.jib.registry.InsecureRegistryException: Only secure connections are allowed, but tried to reach URL http://gcr.io/v2/distroless/java/manifests/latest which I didn't have with sudo. And I'm stuck before trying to push to the registry.

Error Log: ``` $ mvn compile -X com.google.cloud.tools:jib-maven-plugin:0.9.7:build Apache Maven 3.5.2 Maven home: /usr/share/maven Java version: 10, vendor: Oracle Corporation Java home: /home/did/.sdkman/candidates/java/10.0.0-openjdk Default locale: fr_FR, platform encoding: UTF-8 OS name: "linux", version: "4.15.0-29-generic", arch: "amd64", family: "unix" WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [DEBUG] Created new class realm maven.api [DEBUG] Importing foreign packages into class realm maven.api [DEBUG] Imported: javax.annotation.* < plexus.core [DEBUG] Imported: javax.enterprise.inject.* < plexus.core [DEBUG] Imported: javax.enterprise.util.* < plexus.core [DEBUG] Imported: javax.inject.* < plexus.core [DEBUG] Imported: org.apache.maven.* < plexus.core [DEBUG] Imported: org.apache.maven.artifact < plexus.core [DEBUG] Imported: org.apache.maven.classrealm < plexus.core [DEBUG] Imported: org.apache.maven.cli < plexus.core [DEBUG] Imported: org.apache.maven.configuration < plexus.core [DEBUG] Imported: org.apache.maven.exception < plexus.core [DEBUG] Imported: org.apache.maven.execution < plexus.core [DEBUG] Imported: org.apache.maven.execution.scope < plexus.core [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core [DEBUG] Imported: org.apache.maven.model < plexus.core [DEBUG] Imported: org.apache.maven.monitor < plexus.core [DEBUG] Imported: org.apache.maven.plugin < plexus.core [DEBUG] Imported: org.apache.maven.profiles < plexus.core [DEBUG] Imported: org.apache.maven.project < plexus.core [DEBUG] Imported: org.apache.maven.reporting < plexus.core [DEBUG] Imported: org.apache.maven.repository < plexus.core [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core [DEBUG] Imported: org.apache.maven.settings < plexus.core [DEBUG] Imported: org.apache.maven.toolchain < plexus.core [DEBUG] Imported: org.apache.maven.usability < plexus.core [DEBUG] Imported: org.apache.maven.wagon.* < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core [DEBUG] Imported: org.codehaus.classworlds < plexus.core [DEBUG] Imported: org.codehaus.plexus.* < plexus.core [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core [DEBUG] Imported: org.codehaus.plexus.component < plexus.core [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core [DEBUG] Imported: org.codehaus.plexus.container < plexus.core [DEBUG] Imported: org.codehaus.plexus.context < plexus.core [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core [DEBUG] Imported: org.eclipse.aether.* < plexus.core [DEBUG] Imported: org.eclipse.aether.artifact < plexus.core [DEBUG] Imported: org.eclipse.aether.collection < plexus.core [DEBUG] Imported: org.eclipse.aether.deployment < plexus.core [DEBUG] Imported: org.eclipse.aether.graph < plexus.core [DEBUG] Imported: org.eclipse.aether.impl < plexus.core [DEBUG] Imported: org.eclipse.aether.installation < plexus.core [DEBUG] Imported: org.eclipse.aether.internal.impl < plexus.core [DEBUG] Imported: org.eclipse.aether.metadata < plexus.core [DEBUG] Imported: org.eclipse.aether.repository < plexus.core [DEBUG] Imported: org.eclipse.aether.resolution < plexus.core [DEBUG] Imported: org.eclipse.aether.spi < plexus.core [DEBUG] Imported: org.eclipse.aether.transfer < plexus.core [DEBUG] Imported: org.eclipse.aether.version < plexus.core [DEBUG] Imported: org.fusesource.jansi.* < plexus.core [DEBUG] Imported: org.slf4j.* < plexus.core [DEBUG] Imported: org.slf4j.helpers.* < plexus.core [DEBUG] Imported: org.slf4j.spi.* < plexus.core [DEBUG] Populating class realm maven.api [INFO] Error stacktraces are turned on. [DEBUG] Message scheme: color [DEBUG] Message styles: debug info warning error success failure strong mojo project [DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml [DEBUG] Reading user settings from /home/did/.m2/settings.xml [DEBUG] Reading global toolchains from /usr/share/maven/conf/toolchains.xml [DEBUG] Reading user toolchains from /home/did/.m2/toolchains.xml [DEBUG] Using local repository at /home/did/.m2/repository [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /home/did/.m2/repository [INFO] Scanning for projects... [DEBUG] Extension realms for project com.mydomain.sandbox:slow-response:jar:0.0.1-SNAPSHOT: (none) [DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project org.springframework.boot:spring-boot-starter-parent:pom:2.0.2.RELEASE: (none) [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project org.springframework.boot:spring-boot-dependencies:pom:2.0.2.RELEASE: (none) [DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] === REACTOR BUILD PLAN ================================================ [DEBUG] Project: com.mydomain.sandbox:slow-response:jar:0.0.1-SNAPSHOT [DEBUG] Tasks: [compile, com.google.cloud.tools:jib-maven-plugin:0.9.7:build] [DEBUG] Style: Regular [DEBUG] ======================================================================= [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building slow-response 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] === PROJECT BUILD PLAN ================================================ [DEBUG] Project: com.mydomain.sandbox:slow-response:0.0.1-SNAPSHOT [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [compile, runtime+system] [DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)] [DEBUG] Repositories (plugins) : [central (https://repo.maven.apache.org/maven2, default, releases)] [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:3.0.1:resources (default-resources) [DEBUG] Style: Regular [DEBUG] Configuration: @ ${maven.resources.skip} false [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) [DEBUG] Style: Regular [DEBUG] Configuration: ${maven.compiler.compilerId} ${maven.compiler.compilerReuseStrategy} ${maven.compiler.compilerVersion} ${maven.compiler.debug} ${maven.compiler.debuglevel} ${encoding} ${maven.compiler.executable} ${maven.compiler.failOnError} ${maven.compiler.failOnWarning} ${maven.compiler.forceJavacCompilerUse} ${maven.compiler.fork} ${maven.compiler.maxmem} ${maven.compiler.meminitial} ${maven.compiler.optimize} true ${maven.compiler.release} ${maven.compiler.showDeprecation} ${maven.compiler.showWarnings} ${maven.main.skip} ${maven.compiler.skipMultiThreadWarning} ${maven.compiler.source} ${lastModGranularityMs} ${maven.compiler.target} ${maven.compiler.useIncrementalCompilation} ${maven.compiler.verbose} [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli) [DEBUG] Style: Regular [DEBUG] Configuration: gitlab.mydomain.com:4567/sandbox/slow-response${image} [DEBUG] ======================================================================= [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=620012, ConflictMarker.markTime=357668, ConflictMarker.nodeCount=102, ConflictIdSorter.graphTime=313468, ConflictIdSorter.topsortTime=224048, ConflictIdSorter.conflictIdCount=57, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=5824887, ConflictResolver.conflictItemCount=93, DefaultDependencyCollector.collectTime=226531140, DefaultDependencyCollector.transformTime=8640217} [DEBUG] com.mydomain.sandbox:slow-response:jar:0.0.1-SNAPSHOT [DEBUG] org.springframework.boot:spring-boot-starter-web:jar:2.0.2.RELEASE:compile [DEBUG] org.springframework.boot:spring-boot-starter:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] org.springframework.boot:spring-boot:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] org.springframework.boot:spring-boot-autoconfigure:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] org.springframework.boot:spring-boot-starter-logging:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] ch.qos.logback:logback-classic:jar:1.2.3:compile (version managed from 1.2.3) [DEBUG] ch.qos.logback:logback-core:jar:1.2.3:compile (version managed from 1.2.3) [DEBUG] org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0:compile (version managed from 2.10.0) [DEBUG] org.apache.logging.log4j:log4j-api:jar:2.10.0:compile (version managed from 2.10.0) [DEBUG] org.slf4j:jul-to-slf4j:jar:1.7.25:compile (version managed from 1.7.25) [DEBUG] javax.annotation:javax.annotation-api:jar:1.3.2:compile (version managed from 1.3.2) [DEBUG] org.yaml:snakeyaml:jar:1.19:runtime (version managed from 1.19) [DEBUG] org.springframework.boot:spring-boot-starter-json:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] com.fasterxml.jackson.core:jackson-databind:jar:2.9.5:compile (version managed from 2.9.5) [DEBUG] com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile (version managed from 2.9.0) [DEBUG] com.fasterxml.jackson.core:jackson-core:jar:2.9.5:compile (version managed from 2.9.5) [DEBUG] com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.5:compile (version managed from 2.9.5) [DEBUG] com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.5:compile (version managed from 2.9.5) [DEBUG] com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.5:compile (version managed from 2.9.5) [DEBUG] org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.2.RELEASE:compile (version managed from 2.0.2.RELEASE) [DEBUG] org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.31:compile (version managed from 8.5.31) [DEBUG] org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.31:compile (version managed from 8.5.31) [DEBUG] org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.31:compile (version managed from 8.5.31) [DEBUG] org.hibernate.validator:hibernate-validator:jar:6.0.9.Final:compile (version managed from 6.0.9.Final) [DEBUG] javax.validation:validation-api:jar:2.0.1.Final:compile (version managed from 2.0.1.Final) [DEBUG] org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile (version managed from 3.3.2.Final) [DEBUG] com.fasterxml:classmate:jar:1.3.4:compile (version managed from 1.3.4) [DEBUG] org.springframework:spring-web:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-beans:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-webmvc:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-aop:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-context:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-expression:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework.boot:spring-boot-starter-test:jar:2.0.2.RELEASE:test [DEBUG] org.springframework.boot:spring-boot-test:jar:2.0.2.RELEASE:test (version managed from 2.0.2.RELEASE) [DEBUG] org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.2.RELEASE:test (version managed from 2.0.2.RELEASE) [DEBUG] com.jayway.jsonpath:json-path:jar:2.4.0:test (version managed from 2.4.0) [DEBUG] net.minidev:json-smart:jar:2.3:test [DEBUG] net.minidev:accessors-smart:jar:1.2:test [DEBUG] org.ow2.asm:asm:jar:5.0.4:test [DEBUG] org.slf4j:slf4j-api:jar:1.7.25:compile (version managed from 1.7.25) [DEBUG] junit:junit:jar:4.12:test (version managed from 4.12) [DEBUG] org.assertj:assertj-core:jar:3.9.1:test (version managed from 3.9.1) [DEBUG] org.mockito:mockito-core:jar:2.15.0:test (version managed from 2.15.0) [DEBUG] net.bytebuddy:byte-buddy:jar:1.7.11:test (version managed from 1.7.9) [DEBUG] net.bytebuddy:byte-buddy-agent:jar:1.7.11:test (version managed from 1.7.9) [DEBUG] org.objenesis:objenesis:jar:2.6:test [DEBUG] org.hamcrest:hamcrest-core:jar:1.3:test (version managed from 1.3) [DEBUG] org.hamcrest:hamcrest-library:jar:1.3:test (version managed from 1.3) [DEBUG] org.skyscreamer:jsonassert:jar:1.5.0:test (version managed from 1.5.0) [DEBUG] com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test [DEBUG] org.springframework:spring-core:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-jcl:jar:5.0.6.RELEASE:compile (version managed from 5.0.6.RELEASE) [DEBUG] org.springframework:spring-test:jar:5.0.6.RELEASE:test (version managed from 5.0.6.RELEASE) [DEBUG] org.xmlunit:xmlunit-core:jar:2.5.1:test (version managed from 2.5.1) [DEBUG] org.projectlombok:lombok:jar:1.18.0:compile [INFO] [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ slow-response --- [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=243703, ConflictMarker.markTime=114606, ConflictMarker.nodeCount=69, ConflictIdSorter.graphTime=114525, ConflictIdSorter.topsortTime=37367, ConflictIdSorter.conflictIdCount=28, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1268509, ConflictResolver.conflictItemCount=68, DefaultDependencyCollector.collectTime=86538053, DefaultDependencyCollector.transformTime=1846490} [DEBUG] org.apache.maven.plugins:maven-resources-plugin:jar:3.0.1: [DEBUG] org.apache.maven:maven-plugin-api:jar:3.0:compile [DEBUG] org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile [DEBUG] org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile [DEBUG] org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile [DEBUG] org.apache.maven:maven-core:jar:3.0:compile [DEBUG] org.apache.maven:maven-settings-builder:jar:3.0:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.0:compile [DEBUG] org.apache.maven:maven-model-builder:jar:3.0:compile [DEBUG] org.apache.maven:maven-aether-provider:jar:3.0:runtime [DEBUG] org.sonatype.aether:aether-impl:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-spi:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-api:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-util:jar:1.7:compile [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.6:compile [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.0:compile [DEBUG] org.apache.maven:maven-settings:jar:3.0:compile [DEBUG] org.apache.maven:maven-model:jar:3.0:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.24:compile [DEBUG] org.apache.maven.shared:maven-filtering:jar:3.1.1:compile [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:3.0.0:compile [DEBUG] commons-io:commons-io:jar:2.4:compile [DEBUG] com.google.code.findbugs:jsr305:jar:2.0.1:compile [DEBUG] org.sonatype.plexus:plexus-build-api:jar:0.0.7:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.22:compile [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-resources-plugin:3.0.1 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-resources-plugin:3.0.1 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-resources-plugin:3.0.1 [DEBUG] Included: org.apache.maven.plugins:maven-resources-plugin:jar:3.0.1 [DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:1.4.2 [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7 [DEBUG] Included: org.sonatype.aether:aether-util:jar:1.7 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.6 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.24 [DEBUG] Included: org.apache.maven.shared:maven-filtering:jar:3.1.1 [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:3.0.0 [DEBUG] Included: commons-io:commons-io:jar:2.4 [DEBUG] Included: com.google.code.findbugs:jsr305:jar:2.0.1 [DEBUG] Included: org.sonatype.plexus:plexus-build-api:jar:0.0.7 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.22 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-resources-plugin:3.0.1:resources from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-resources-plugin:3.0.1, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@1de0aca6] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:3.0.1:resources' with basic configurator --> [DEBUG] (f) addDefaultExcludes = true [DEBUG] (f) buildFilters = [] [DEBUG] (s) delimiters = [@] [DEBUG] (f) encoding = UTF-8 [DEBUG] (f) escapeString = \ [DEBUG] (f) escapeWindowsPaths = true [DEBUG] (f) fileNameFiltering = false [DEBUG] (s) includeEmptyDirs = false [DEBUG] (s) outputDirectory = /home/did/Dev/sandbox/_SPRING/slow-response/target/classes [DEBUG] (s) overwrite = false [DEBUG] (f) project = MavenProject: com.mydomain.sandbox:slow-response:0.0.1-SNAPSHOT @ /home/did/Dev/sandbox/_SPRING/slow-response/pom.xml [DEBUG] (s) resources = [Resource {targetPath: null, filtering: true, FileSet {directory: /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources, PatternSet [includes: {**/application*.yml, **/application*.yaml, **/application*.properties}, excludes: {}]}}, Resource {targetPath: null, filtering: false, FileSet {directory: /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources, PatternSet [includes: {}, excludes: {**/application*.yml, **/application*.yaml, **/application*.properties}]}}] [DEBUG] (f) session = org.apache.maven.execution.MavenSession@2de50ee4 [DEBUG] (f) skip = false [DEBUG] (f) supportMultiLineFiltering = false [DEBUG] (f) useBuildFilters = true [DEBUG] (s) useDefaultDelimiters = false [DEBUG] -- end configuration -- [DEBUG] properties used {spring-integration.version=5.0.5.RELEASE, flyway.version=5.0.7, java.specification.version=10, webjars-hal-browser.version=3325375, java.vendor.url=http://java.oracle.com/, jna.version=4.5.1, sun.boot.library.path=/home/did/.sdkman/candidates/java/10.0.0-openjdk/lib, sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher compile -X com.google.cloud.tools:jib-maven-plugin:0.9.7:build, jdk.debug=release, env.SSH_AGENT_PID=1881, maven.version=3.5.2, kafka.version=1.0.1, jboss-transaction-spi.version=7.6.0.Final, java.specification.name=Java Platform API Specification, java.vm.specification.vendor=Oracle Corporation, env.NVM_BIN=/home/did/.nvm/versions/node/v10.5.0/bin, exec-maven-plugin.version=1.5.0, maven-install-plugin.version=2.5.2, byte-buddy.version=1.7.11, env.XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1, java.runtime.version=10+46, java.vendor.version=18.3, micrometer.version=1.0.4, rxjava-adapter.version=1.2.1, project.baseUri=file:/home/did/Dev/sandbox/_SPRING/slow-response/, hibernate.version=5.2.17.Final, java.io.tmpdir=/tmp, java.version=10, build-helper-maven-plugin.version=3.0.0, mockito.version=2.15.0, java.vm.specification.name=Java Virtual Machine Specification, infinispan.version=9.1.7.Final, nekohtml.version=1.9.22, maven-assembly-plugin.version=3.1.0, env.SDKMAN_PLATFORM=Linux64, java.library.path=/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, java.vendor=Oracle Corporation, spring-cloud-connectors.version=2.0.1.RELEASE, thymeleaf-extras-java8time.version=3.0.1.RELEASE, undertow.version=1.4.25.Final, mariadb.version=2.2.3, env.XAUTHORITY=/home/did/.Xauthority, selenium-htmlunit.version=2.29.3, thymeleaf-extras-data-attribute.version=2.0.1, ehcache3.version=3.5.2, commons-dbcp2.version=2.2.0, env.LANG=fr_FR.UTF-8, mongodb.version=3.6.3, couchbase-cache-client.version=2.1.0, env.PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket, env.GRADLE_HOME=/home/did/.sdkman/candidates/gradle/current, env.LC_MONETARY=fr_FR.UTF-8, env.XDG_DATA_DIRS=/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop, user.timezone=, java.vm.specification.version=10, javax-transaction.version=1.2, maven.compiler.source=10, user.home=/home/did, spring.version=5.0.6.RELEASE, postgresql.version=42.2.2, env.LANGUAGE=, reactive-streams.version=1.0.2, env.DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-M63hqBAHWx,guid=5daa730518a582364ad51f295b60cabe, jmustache.version=1.14, querydsl.version=4.1.4, appengine-sdk.version=1.9.63, thymeleaf-layout-dialect.version=2.3.0, hamcrest.version=1.3, os.version=4.15.0-29-generic, commons-pool.version=1.6, java.vm.name=OpenJDK 64-Bit Server VM, env.KDE_SESSION_UID=1000, maven-help-plugin.version=2.2, env.LC_ADDRESS=fr_FR.UTF-8, json-path.version=2.4.0, jaxen.version=1.1.6, os.arch=amd64, spring-batch.version=4.0.1.RELEASE, couchbase-client.version=2.5.8, derby.version=10.14.1.0, env.DESKTOP_SESSION=plasma, jest.version=5.3.3, javax-jsonb.version=1.0, junit-platform.version=1.1.0, rxjava2.version=2.1.13, neo4j-ogm.version=3.1.0, maven-site-plugin.version=3.6, awt.toolkit=sun.awt.X11.XToolkit, env.SDKMAN_CANDIDATES_API=https://api.sdkman.io/2, flatten-maven-plugin.version=1.0.0, env.TEXTDOMAINDIR=/usr/share/locale/, commons-codec.version=1.11, env.DEFAULTS_PATH=/usr/share/gconf/plasma.default.path, caffeine.version=2.6.2, dom4j.version=1.6.1, h2.version=1.4.197, env.JAVA_HOME=/home/did/.sdkman/candidates/java/current, java.vm.compressedOopsMode=Zero based, unboundid-ldapsdk.version=4.0.5, javax-jaxb.version=2.3.0, sqlite-jdbc.version=3.21.0.1, env.LC_TELEPHONE=fr_FR.UTF-8, activemq.version=5.15.3, httpasyncclient.version=4.1.3, jtds.version=1.3.1, javax-jms.version=2.0.1, env.LOGNAME=did, spring-security.version=5.0.5.RELEASE, hibernate-validator.version=6.0.9.Final, assertj.version=3.9.1, env.XDG_VTNR=1, env.XCURSOR_THEME=breeze_cursors, env.SSH_AUTH_SOCK=/tmp/ssh-v9IsHlLFKwFZ/agent.1803, influxdb-java.version=2.9, sun.os.patch.level=unknown, lombok.version=1.16.20, env.SDKMAN_DIR=/home/did/.sdkman, maven.compiler.target=10, library.jansi.path=/usr/share/maven/lib/jansi-native, env.XDG_SESSION_CLASS=user, commons-pool2.version=2.5.0, env.LC_MEASUREMENT=fr_FR.UTF-8, spring-retry.version=1.2.2.RELEASE, maven-invoker-plugin.version=3.0.0, maven-antrun-plugin.version=1.8, maven.conf=/usr/share/maven/conf, sun.java.launcher=SUN_STANDARD, user.country=FR, env.MANDATORY_PATH=/usr/share/gconf/plasma.mandatory.path, env.NVM_DIR=/home/did/.nvm, resource.delimiter=@, javax-json.version=1.1.2, jboss-logging.version=3.3.2.Final, maven-resources-plugin.version=3.0.1, javax-validation.version=2.0.1.Final, netty.version=4.1.24.Final, jetty-jsp.version=2.2.0.v201112011158, maven-source-plugin.version=3.0.1, jetty.version=9.4.10.v20180503, rxjava.version=1.3.8, elasticsearch.version=5.6.9, java.runtime.name=OpenJDK Runtime Environment, env.XDG_SESSION_ID=3, rest-assured.version=3.0.7, maven-deploy-plugin.version=2.8.2, env.NVM_CD_FLAGS=, env.MAVEN_CMD_LINE_ARGS= compile -X com.google.cloud.tools:jib-maven-plugin:0.9.7:build, log4j2.version=2.10.0, maven-failsafe-plugin.version=2.21.0, env.XDG_CONFIG_DIRS=/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings, env.SDKMAN_VERSION=5.7.2+323, dropwizard-metrics.version=3.2.6, git-commit-id-plugin.version=2.2.3, hazelcast-hibernate5.version=1.2.3, htmlunit.version=2.29, env.TERM=xterm-256color, sun.cpu.isalist=, jackson.version=2.9.5, sun.arch.data.model=64, spring-restdocs.version=2.0.1.RELEASE, freemarker.version=2.3.28, thymeleaf.version=3.0.9.RELEASE, janino.version=3.0.8, env.TEXTDOMAIN=im-config, maven-jar-plugin.version=3.0.2, maven-compiler-plugin.version=3.7.0, java.specification.vendor=Oracle Corporation, bitronix.version=2.1.4, rabbit-amqp-client.version=5.1.2, java.version.date=2018-03-20, spring-amqp.version=2.0.3.RELEASE, java.home=/home/did/.sdkman/candidates/java/10.0.0-openjdk, spring-plugin.version=1.2.0.RELEASE, maven-war-plugin.version=3.1.0, thymeleaf-extras-springsecurity4.version=3.0.2.RELEASE, jolokia.version=1.5.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, env.PATH=/opt/java/jdk1.8.0_11//bin:/home/did/.nvm/versions/node/v10.5.0/bin:/home/did/.sdkman/candidates/java/current/bin:/home/did/.sdkman/candidates/gradle/current/bin:/opt/java/jdk1.8.0_11//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/did/Dev/tools/gradle-2.1/bin/:/home/did/Android/Sdk/tools:/home/did/Android/Sdk/platform-tools:/home/did/Dev/infra/minishift-1.17.0-linux-amd64/:/home/did/Dev/tools/gradle-2.1/bin/:/home/did/Android/Sdk/tools:/home/did/Android/Sdk/platform-tools:/home/did/Dev/infra/minishift-1.17.0-linux-amd64/, httpclient.version=4.5.5, maven-dependency-plugin.version=3.0.2, env.XDG_SEAT=seat0, jsonassert.version=1.5.0, file.encoding=UTF-8, gson.version=2.8.4, sun-mail.version=1.6.1, env.LC_IDENTIFICATION=fr_FR.UTF-8, env.LC_NUMERIC=fr_FR.UTF-8, env._=/usr/bin/mvn, nio-multipart-parser.version=1.1.0, env.XDG_SESSION_DESKTOP=KDE, env.SHLVL=1, mssql-jdbc.version=6.2.2.jre8, snakeyaml.version=1.19, liquibase.version=3.5.5, java.awt.printerjob=sun.print.PSPrinterJob, httpcore.version=4.4.9, lettuce.version=5.0.4.RELEASE, org.slf4j.simpleLogger.defaultLogLevel=debug, statsd-client.version=3.1.0, env.IM_CONFIG_PHASE=2, classworlds.conf=/usr/share/maven/bin/m2.conf, sun.io.unicode.encoding=UnicodeLittle, joda-time.version=2.9.9, kotlin.version=1.2.41, wsdl4j.version=1.6.3, env.SESSION_MANAGER=local/Tintaglia:@/tmp/.ICE-unix/1948,unix/Tintaglia:/tmp/.ICE-unix/1948, tomcat.version=8.5.31, sendgrid.version=4.1.2, spring-ws.version=3.0.1.RELEASE, commons-lang3.version=3.7, os.name=Linux, junit.version=4.12, env.DISPLAY=:0, simple-json.version=1.1.1, jetty-el.version=8.5.24.2, mongo-driver-reactivestreams.version=1.7.1, maven.build.timestamp=2018-07-31T21:51:53Z, reactor-bom.version=Bismuth-SR9, maven-enforcer-plugin.version=3.0.0-M1, env.GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1, jstl.version=1.2, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, quartz.version=2.3.0, javax-money.version=1.0.3, env.DESKTOP_STARTUP_ID=Tintaglia;1533072542;713675;1987_TIME2988954, spring-hateoas.version=0.24.0.RELEASE, path.separator=:, env.SHELL=/bin/bash, env.LESSCLOSE=/usr/bin/lesspipe %s %s, env.XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0, maven.multiModuleProjectDirectory=/home/did/Dev/sandbox/_SPRING/slow-response, env.MAVEN_PROJECTBASEDIR=/home/did/Dev/sandbox/_SPRING/slow-response, java.vm.info=mixed mode, cassandra-driver.version=3.4.0, env.USER=did, java.class.version=54.0, xml-maven-plugin.version=1.0.1, env.KDE_SESSION_VERSION=5, narayana.version=5.8.1.Final, sun.jnu.encoding=UTF-8, env.QT_SCREEN_SCALE_FACTORS=eDP-1-1=1.6;VGA-1-1=1.6;DP-1-1=1.6;HDMI-1-1=1.6;DP-1-2=1.6;HDMI-1-2=1.6;DP-0=1.6;DP-1=1.6;DP-1-2-1=1.6;DP-1-2-2=1.6;DP-1-2-3=1.6;, xmlunit2.version=2.5.1, slf4j.version=1.7.25, solr.version=6.6.3, maven.build.version=Apache Maven 3.5.2, hikaricp.version=2.7.9, maven.home=/usr/share/maven, maven-shade-plugin.version=2.4.3, file.separator=/, line.separator= , spring-kafka.version=2.1.6.RELEASE, jersey.version=2.26, user.name=did, env.LC_TIME=fr_FR.UTF-8, hazelcast.version=3.9.4, jdom2.version=2.0.6, atomikos.version=4.0.6, aspectj.version=1.8.13, spring-data-releasetrain.version=Kay-SR7, hsqldb.version=2.4.0, env.XDG_RUNTIME_DIR=/run/user/1000, env.ANDROID_HOME=/home/did/Android/Sdk, webjars-locator-core.version=0.35, project.reporting.outputEncoding=UTF-8, env.KDE_FULL_SESSION=true, xml-apis.version=1.4.01, env.MINISHIFT=/home/did/Dev/infra/minishift-1.17.0-linux-amd64/, env.XDG_SESSION_TYPE=x11, env.SDKMAN_CANDIDATES_DIR=/home/did/.sdkman/candidates, env.OLDPWD=/home/did/Dev/sandbox/_SPRING/slow-response, env.PWD=/home/did/Dev/sandbox/_SPRING/slow-response, file.encoding.pkg=sun.io, embedded-mongo.version=2.0.3, env.LESSOPEN=| /usr/bin/lesspipe %s, env.LC_NAME=fr_FR.UTF-8, johnzon-jsonb.version=1.1.7, spring-ldap.version=2.3.2.RELEASE, java.class.path=/usr/share/maven/boot/plexus-classworlds-2.x.jar, env.HOME=/home/did, java.vm.vendor="Oracle Corporation", maven-javadoc-plugin.version=3.0.0, servlet-api.version=3.1.0, artemis.version=2.4.0, groovy.version=2.4.15, javax-cache.version=1.1.0, logback.version=1.2.3, env.QT_ACCESSIBILITY=1, sun.cpu.endian=little, versions-maven-plugin.version=2.3, env.PAM_KWALLET_LOGIN=/run/user/1000/kwallet.socket, user.language=fr, jedis.version=2.9.0, maven-clean-plugin.version=3.0.0, javax-mail.version=1.6.1, maven-surefire-plugin.version=2.21.0, javax-annotation.version=1.3.2, env.LC_PAPER=fr_FR.UTF-8, mysql.version=5.1.46, classmate.version=1.3.4, jaybird.version=3.0.4, antlr2.version=2.7.7, env.GS_LIB=/home/did/.fonts, selenium.version=3.9.1, glassfish-el.version=3.0.0, project.build.sourceEncoding=UTF-8, jooq.version=3.10.7, java.vendor.url.bug=http://bugreport.java.com/bugreport/, user.dir=/home/did/Dev/sandbox/_SPRING/slow-response, ehcache.version=2.10.4, env.XDG_CURRENT_DESKTOP=KDE, junit-jupiter.version=5.1.1, java.vm.version=10+46, maven-eclipse-plugin.version=2.10, spring-session-bom.version=Apple-SR2, env.QT_AUTO_SCREEN_SCALE_FACTOR=0} [INFO] Using 'UTF-8' encoding to copy filtered resources. [DEBUG] resource with targetPath null directory /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources excludes [] includes [**/application*.yml, **/application*.yaml, **/application*.properties] [DEBUG] ignoreDelta true [INFO] Copying 1 resource [DEBUG] Copying file application.yml [DEBUG] file application.yml has a filtered file extension [DEBUG] filtering /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources/application.yml to /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/application.yml [DEBUG] resource with targetPath null directory /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources excludes [**/application*.yml, **/application*.yaml, **/application*.properties] includes [] [DEBUG] ignoreDelta true [INFO] Copying 2 resources [DEBUG] Copying file log4j.properties [DEBUG] file log4j.properties has a filtered file extension [DEBUG] copy /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources/log4j.properties to /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/log4j.properties [DEBUG] Copying file log.properties [DEBUG] file log.properties has a filtered file extension [DEBUG] copy /home/did/Dev/sandbox/_SPRING/slow-response/src/main/resources/log.properties to /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/log.properties [DEBUG] no use filter components [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ slow-response --- [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=416637, ConflictMarker.markTime=206948, ConflictMarker.nodeCount=118, ConflictIdSorter.graphTime=221459, ConflictIdSorter.topsortTime=74250, ConflictIdSorter.conflictIdCount=45, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1709588, ConflictResolver.conflictItemCount=72, DefaultDependencyCollector.collectTime=96512592, DefaultDependencyCollector.transformTime=2662085} [DEBUG] org.apache.maven.plugins:maven-compiler-plugin:jar:3.7.0: [DEBUG] org.apache.maven:maven-plugin-api:jar:3.0:compile [DEBUG] org.apache.maven:maven-model:jar:3.0:compile [DEBUG] org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile [DEBUG] org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile [DEBUG] org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.0:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.4:compile [DEBUG] org.apache.maven:maven-core:jar:3.0:compile [DEBUG] org.apache.maven:maven-settings:jar:3.0:compile [DEBUG] org.apache.maven:maven-settings-builder:jar:3.0:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.0:compile [DEBUG] org.apache.maven:maven-model-builder:jar:3.0:compile [DEBUG] org.apache.maven:maven-aether-provider:jar:3.0:runtime [DEBUG] org.sonatype.aether:aether-impl:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-spi:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-api:jar:1.7:compile [DEBUG] org.sonatype.aether:aether-util:jar:1.7:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.14:compile [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.6:compile [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile [DEBUG] commons-io:commons-io:jar:2.5:compile [DEBUG] org.apache.maven.shared:maven-shared-incremental:jar:1.1:compile [DEBUG] org.codehaus.plexus:plexus-java:jar:0.9.2:compile [DEBUG] org.ow2.asm:asm:jar:6.0_BETA:compile [DEBUG] com.thoughtworks.qdox:qdox:jar:2.0-M7:compile [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:2.8.2:compile [DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:2.8.2:compile [DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:2.8.2:runtime [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.7.0 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.7.0 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.7.0 [DEBUG] Included: org.apache.maven.plugins:maven-compiler-plugin:jar:3.7.0 [DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:1.4.2 [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.4 [DEBUG] Included: org.sonatype.aether:aether-util:jar:1.7 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.14 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.6 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:3.1.0 [DEBUG] Included: commons-io:commons-io:jar:2.5 [DEBUG] Included: org.apache.maven.shared:maven-shared-incremental:jar:1.1 [DEBUG] Included: org.codehaus.plexus:plexus-java:jar:0.9.2 [DEBUG] Included: org.ow2.asm:asm:jar:6.0_BETA [DEBUG] Included: com.thoughtworks.qdox:qdox:jar:2.0-M7 [DEBUG] Included: org.codehaus.plexus:plexus-compiler-api:jar:2.8.2 [DEBUG] Included: org.codehaus.plexus:plexus-compiler-manager:jar:2.8.2 [DEBUG] Included: org.codehaus.plexus:plexus-compiler-javac:jar:2.8.2 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:3.7.0, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@1de0aca6] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile' with basic configurator --> [DEBUG] (f) basedir = /home/did/Dev/sandbox/_SPRING/slow-response [DEBUG] (f) buildDirectory = /home/did/Dev/sandbox/_SPRING/slow-response/target [DEBUG] (f) compilePath = [/home/did/Dev/sandbox/_SPRING/slow-response/target/classes, /home/did/.m2/repository/org/springframework/boot/spring-boot-starter-web/2.0.2.RELEASE/spring-boot-starter-web-2.0.2.RELEASE.jar, /home/did/.m2/repository/org/springframework/boot/spring-boot-starter/2.0.2.RELEASE/spring-boot-starter-2.0.2.RELEASE.jar, /home/did/.m2/repository/org/springframework/boot/spring-boot/2.0.2.RELEASE/spring-boot-2.0.2.RELEASE.jar, /home/did/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.0.2.RELEASE/spring-boot-autoconfigure-2.0.2.RELEASE.jar, /home/did/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.0.2.RELEASE/spring-boot-starter-logging-2.0.2.RELEASE.jar, /home/did/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar, /home/did/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar, /home/did/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.10.0/log4j-to-slf4j-2.10.0.jar, /home/did/.m2/repository/org/apache/logging/log4j/log4j-api/2.10.0/log4j-api-2.10.0.jar, /home/did/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar, /home/did/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar, /home/did/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.0.2.RELEASE/spring-boot-starter-json-2.0.2.RELEASE.jar, /home/did/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.5/jackson-databind-2.9.5.jar, /home/did/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar, /home/did/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.5/jackson-core-2.9.5.jar, /home/did/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.5/jackson-datatype-jdk8-2.9.5.jar, /home/did/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.5/jackson-datatype-jsr310-2.9.5.jar, /home/did/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.5/jackson-module-parameter-names-2.9.5.jar, /home/did/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/2.0.2.RELEASE/spring-boot-starter-tomcat-2.0.2.RELEASE.jar, /home/did/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.31/tomcat-embed-core-8.5.31.jar, /home/did/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.5.31/tomcat-embed-el-8.5.31.jar, /home/did/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.31/tomcat-embed-websocket-8.5.31.jar, /home/did/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.9.Final/hibernate-validator-6.0.9.Final.jar, /home/did/.m2/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar, /home/did/.m2/repository/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar, /home/did/.m2/repository/com/fasterxml/classmate/1.3.4/classmate-1.3.4.jar, /home/did/.m2/repository/org/springframework/spring-web/5.0.6.RELEASE/spring-web-5.0.6.RELEASE.jar, /home/did/.m2/repository/org/springframework/spring-beans/5.0.6.RELEASE/spring-beans-5.0.6.RELEASE.jar, /home/did/.m2/repository/org/springframework/spring-webmvc/5.0.6.RELEASE/spring-webmvc-5.0.6.RELEASE.jar, /home/did/.m2/repository/org/springframework/spring-aop/5.0.6.RELEASE/spring-aop-5.0.6.RELEASE.jar, /home/did/.m2/repository/org/springframework/spring-context/5.0.6.RELEASE/spring-context-5.0.6.RELEASE.jar, /home/did/.m2/repository/org/springframework/spring-expression/5.0.6.RELEASE/spring-expression-5.0.6.RELEASE.jar, /home/did/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar, /home/did/.m2/repository/org/springframework/spring-core/5.0.6.RELEASE/spring-core-5.0.6.RELEASE.jar, /home/did/.m2/repository/org/springframework/spring-jcl/5.0.6.RELEASE/spring-jcl-5.0.6.RELEASE.jar, /home/did/.m2/repository/org/projectlombok/lombok/1.18.0/lombok-1.18.0.jar] [DEBUG] (f) compileSourceRoots = [/home/did/Dev/sandbox/_SPRING/slow-response/src/main/java] [DEBUG] (f) compilerId = javac [DEBUG] (f) debug = true [DEBUG] (f) encoding = UTF-8 [DEBUG] (f) failOnError = true [DEBUG] (f) failOnWarning = false [DEBUG] (f) forceJavacCompilerUse = false [DEBUG] (f) fork = false [DEBUG] (f) generatedSourcesDirectory = /home/did/Dev/sandbox/_SPRING/slow-response/target/generated-sources/annotations [DEBUG] (f) mojoExecution = org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile {execution: default-compile} [DEBUG] (f) optimize = false [DEBUG] (f) outputDirectory = /home/did/Dev/sandbox/_SPRING/slow-response/target/classes [DEBUG] (f) parameters = true [DEBUG] (f) project = MavenProject: com.mydomain.sandbox:slow-response:0.0.1-SNAPSHOT @ /home/did/Dev/sandbox/_SPRING/slow-response/pom.xml [DEBUG] (f) projectArtifact = com.mydomain.sandbox:slow-response:jar:0.0.1-SNAPSHOT [DEBUG] (f) session = org.apache.maven.execution.MavenSession@2de50ee4 [DEBUG] (f) showDeprecation = false [DEBUG] (f) showWarnings = false [DEBUG] (f) skipMultiThreadWarning = false [DEBUG] (f) source = 10 [DEBUG] (f) staleMillis = 0 [DEBUG] (f) target = 10 [DEBUG] (f) useIncrementalCompilation = true [DEBUG] (f) verbose = false [DEBUG] -- end configuration -- [DEBUG] Using compiler 'javac'. [DEBUG] Adding /home/did/Dev/sandbox/_SPRING/slow-response/target/generated-sources/annotations to compile source roots: /home/did/Dev/sandbox/_SPRING/slow-response/src/main/java [DEBUG] New compile source roots: /home/did/Dev/sandbox/_SPRING/slow-response/src/main/java /home/did/Dev/sandbox/_SPRING/slow-response/target/generated-sources/annotations [DEBUG] CompilerReuseStrategy: reuseCreated [DEBUG] useIncrementalCompilation enabled [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- jib-maven-plugin:0.9.7:build (default-cli) @ slow-response --- [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=299203, ConflictMarker.markTime=94218, ConflictMarker.nodeCount=106, ConflictIdSorter.graphTime=95362, ConflictIdSorter.topsortTime=53464, ConflictIdSorter.conflictIdCount=50, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1554658, ConflictResolver.conflictItemCount=103, DefaultDependencyCollector.collectTime=161287027, DefaultDependencyCollector.transformTime=2131600} [DEBUG] com.google.cloud.tools:jib-maven-plugin:jar:0.9.7: [DEBUG] com.google.http-client:google-http-client:jar:1.23.0:compile [DEBUG] com.google.code.findbugs:jsr305:jar:1.3.9:compile [DEBUG] org.apache.httpcomponents:httpclient:jar:4.0.1:compile [DEBUG] org.apache.httpcomponents:httpcore:jar:4.0.1:compile [DEBUG] commons-logging:commons-logging:jar:1.1.1:compile [DEBUG] commons-codec:commons-codec:jar:1.3:compile [DEBUG] org.apache.commons:commons-compress:jar:1.17:compile [DEBUG] com.google.guava:guava:jar:23.5-jre:compile [DEBUG] org.checkerframework:checker-qual:jar:2.0.0:compile [DEBUG] com.google.errorprone:error_prone_annotations:jar:2.0.18:compile [DEBUG] com.google.j2objc:j2objc-annotations:jar:1.1:compile [DEBUG] org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile [DEBUG] com.fasterxml.jackson.core:jackson-databind:jar:2.9.6:compile [DEBUG] com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile [DEBUG] com.fasterxml.jackson.core:jackson-core:jar:2.9.6:compile [DEBUG] org.slf4j:slf4j-api:jar:1.7.25:compile [DEBUG] org.javassist:javassist:jar:3.22.0-GA:compile [DEBUG] org.apache.maven:maven-plugin-api:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-model:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.5.2:compile [DEBUG] org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.3:compile [DEBUG] javax.enterprise:cdi-api:jar:1.0:compile [DEBUG] javax.annotation:jsr250-api:jar:1.0:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:3.1.0:compile [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.5.2:compile [DEBUG] org.apache.maven:maven-core:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-settings:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-settings-builder:jar:3.5.2:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.24:compile [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:compile [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile [DEBUG] org.apache.maven:maven-builder-support:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-model-builder:jar:3.5.2:compile [DEBUG] org.apache.maven:maven-resolver-provider:jar:3.5.2:compile [DEBUG] org.apache.maven.resolver:maven-resolver-impl:jar:1.1.0:compile [DEBUG] org.apache.maven.resolver:maven-resolver-api:jar:1.1.0:compile [DEBUG] org.apache.maven.resolver:maven-resolver-spi:jar:1.1.0:compile [DEBUG] org.apache.maven.resolver:maven-resolver-util:jar:1.1.0:compile [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile [DEBUG] commons-io:commons-io:jar:2.5:compile [DEBUG] org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3:compile [DEBUG] com.google.inject:guice:jar:no_aop:4.0:compile [DEBUG] aopalliance:aopalliance:jar:1.0:compile [DEBUG] javax.inject:javax.inject:jar:1:compile [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:compile [DEBUG] org.apache.commons:commons-lang3:jar:3.5:compile [DEBUG] org.apache.maven.shared:maven-verifier:jar:1.6:compile [DEBUG] junit:junit:jar:3.8.2:compile [DEBUG] Created new class realm plugin>com.google.cloud.tools:jib-maven-plugin:0.9.7 [DEBUG] Importing foreign packages into class realm plugin>com.google.cloud.tools:jib-maven-plugin:0.9.7 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>com.google.cloud.tools:jib-maven-plugin:0.9.7 [DEBUG] Included: com.google.cloud.tools:jib-maven-plugin:jar:0.9.7 [DEBUG] Included: com.google.http-client:google-http-client:jar:1.23.0 [DEBUG] Included: com.google.code.findbugs:jsr305:jar:1.3.9 [DEBUG] Included: org.apache.httpcomponents:httpclient:jar:4.0.1 [DEBUG] Included: org.apache.httpcomponents:httpcore:jar:4.0.1 [DEBUG] Included: commons-logging:commons-logging:jar:1.1.1 [DEBUG] Included: commons-codec:commons-codec:jar:1.3 [DEBUG] Included: org.apache.commons:commons-compress:jar:1.17 [DEBUG] Included: com.google.guava:guava:jar:23.5-jre [DEBUG] Included: org.checkerframework:checker-qual:jar:2.0.0 [DEBUG] Included: com.google.errorprone:error_prone_annotations:jar:2.0.18 [DEBUG] Included: com.google.j2objc:j2objc-annotations:jar:1.1 [DEBUG] Included: org.codehaus.mojo:animal-sniffer-annotations:jar:1.14 [DEBUG] Included: com.fasterxml.jackson.core:jackson-databind:jar:2.9.6 [DEBUG] Included: com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0 [DEBUG] Included: com.fasterxml.jackson.core:jackson-core:jar:2.9.6 [DEBUG] Included: org.javassist:javassist:jar:3.22.0-GA [DEBUG] Included: javax.enterprise:cdi-api:jar:1.0 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.1.0 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.24 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.apache.maven:maven-builder-support:jar:3.5.2 [DEBUG] Included: org.apache.maven.resolver:maven-resolver-util:jar:1.1.0 [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:3.1.0 [DEBUG] Included: commons-io:commons-io:jar:2.5 [DEBUG] Included: org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3 [DEBUG] Included: com.google.inject:guice:jar:no_aop:4.0 [DEBUG] Included: aopalliance:aopalliance:jar:1.0 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.7.1 [DEBUG] Included: org.apache.commons:commons-lang3:jar:3.5 [DEBUG] Included: org.apache.maven.shared:maven-verifier:jar:1.6 [DEBUG] Included: junit:junit:jar:3.8.2 [DEBUG] Configuring mojo com.google.cloud.tools:jib-maven-plugin:0.9.7:build from plugin realm ClassRealm[plugin>com.google.cloud.tools:jib-maven-plugin:0.9.7, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@1de0aca6] [DEBUG] Configuring mojo 'com.google.cloud.tools:jib-maven-plugin:0.9.7:build' with basic configurator --> [DEBUG] (f) allowInsecureRegistries = false [DEBUG] (f) extraDirectory = /home/did/Dev/sandbox/_SPRING/slow-response/src/main/jib [DEBUG] (f) project = MavenProject: com.mydomain.sandbox:slow-response:0.0.1-SNAPSHOT @ /home/did/Dev/sandbox/_SPRING/slow-response/pom.xml [DEBUG] (f) session = org.apache.maven.execution.MavenSession@2de50ee4 [DEBUG] (f) image = gitlab.mydomain.com:4567/sandbox/slow-response [DEBUG] (f) to = com.google.cloud.tools.jib.maven.JibPluginConfiguration$ToConfiguration@2a4f5433 [DEBUG] (f) useOnlyProjectCache = false [DEBUG] -- end configuration -- [DEBUG] Searching for main class... Add a 'mainClass' configuration to 'jib-maven-plugin' to improve build speed. [DEBUG] Could not find a valid main class specified in 'maven-jar-plugin'; attempting to infer main class. [WARNING] Base image 'gcr.io/distroless/java' does not use a specific image digest - build may not be reproducible [INFO] [INFO] Containerizing application to gitlab.mydomain.com:4567/sandbox/slow-response... [DEBUG] Containerizing application with the following files: [DEBUG] Classes: [DEBUG] /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/net [DEBUG] Resources: [DEBUG] /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/application.yml [DEBUG] /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/log.properties [DEBUG] /home/did/Dev/sandbox/_SPRING/slow-response/target/classes/log4j.properties [DEBUG] Dependencies: [DEBUG] /home/did/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar [DEBUG] /home/did/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar [DEBUG] /home/did/.m2/repository/com/fasterxml/classmate/1.3.4/classmate-1.3.4.jar [DEBUG] /home/did/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar [DEBUG] /home/did/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.5/jackson-core-2.9.5.jar [DEBUG] /home/did/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.5/jackson-databind-2.9.5.jar [DEBUG] /home/did/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.5/jackson-datatype-jdk8-2.9.5.jar [DEBUG] /home/did/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.5/jackson-datatype-jsr310-2.9.5.jar [DEBUG] /home/did/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.5/jackson-module-parameter-names-2.9.5.jar [DEBUG] /home/did/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar [DEBUG] /home/did/.m2/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar [DEBUG] /home/did/.m2/repository/org/apache/logging/log4j/log4j-api/2.10.0/log4j-api-2.10.0.jar [DEBUG] /home/did/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.10.0/log4j-to-slf4j-2.10.0.jar [DEBUG] /home/did/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.31/tomcat-embed-core-8.5.31.jar [DEBUG] /home/did/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.5.31/tomcat-embed-el-8.5.31.jar [DEBUG] /home/did/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.5.31/tomcat-embed-websocket-8.5.31.jar [DEBUG] /home/did/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.9.Final/hibernate-validator-6.0.9.Final.jar [DEBUG] /home/did/.m2/repository/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar [DEBUG] /home/did/.m2/repository/org/projectlombok/lombok/1.18.0/lombok-1.18.0.jar [DEBUG] /home/did/.m2/repository/org/slf4j/jul-to-slf4j/1.7.25/jul-to-slf4j-1.7.25.jar [DEBUG] /home/did/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar [DEBUG] /home/did/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.0.2.RELEASE/spring-boot-autoconfigure-2.0.2.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.0.2.RELEASE/spring-boot-starter-json-2.0.2.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.0.2.RELEASE/spring-boot-starter-logging-2.0.2.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/2.0.2.RELEASE/spring-boot-starter-tomcat-2.0.2.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/boot/spring-boot-starter-web/2.0.2.RELEASE/spring-boot-starter-web-2.0.2.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/boot/spring-boot-starter/2.0.2.RELEASE/spring-boot-starter-2.0.2.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/boot/spring-boot/2.0.2.RELEASE/spring-boot-2.0.2.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/spring-aop/5.0.6.RELEASE/spring-aop-5.0.6.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/spring-beans/5.0.6.RELEASE/spring-beans-5.0.6.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/spring-context/5.0.6.RELEASE/spring-context-5.0.6.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/spring-core/5.0.6.RELEASE/spring-core-5.0.6.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/spring-expression/5.0.6.RELEASE/spring-expression-5.0.6.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/spring-jcl/5.0.6.RELEASE/spring-jcl-5.0.6.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/spring-web/5.0.6.RELEASE/spring-web-5.0.6.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/springframework/spring-webmvc/5.0.6.RELEASE/spring-webmvc-5.0.6.RELEASE.jar [DEBUG] /home/did/.m2/repository/org/yaml/snakeyaml/1.19/snakeyaml-1.19.jar [INFO] [DEBUG] TIMING Building and pushing image [DEBUG] RUNNING Building and pushing image [INFO] Retrieving registry credentials for gitlab.mydomain.com:4567... [DEBUG] TIMING Retrieving registry credentials for gitlab.mydomain.com:4567 [DEBUG] RUNNING Retrieving registry credentials for gitlab.mydomain.com:4567 [DEBUG] Using Maven settings for gitlab.mydomain.com:4567 [DEBUG] TIMED Retrieving registry credentials for gitlab.mydomain.com:4567 : 0.141 ms [DEBUG] Retrieving registry credentials for gitlab.mydomain.com:4567 : 0.141 ms [DEBUG] TIMING Authenticating with push to gitlab.mydomain.com:4567 [DEBUG] RUNNING Authenticating with push to gitlab.mydomain.com:4567 [INFO] Getting base image gcr.io/distroless/java... [DEBUG] TIMING Pulling base image manifest [DEBUG] RUNNING Pulling base image manifest [DEBUG] TIMING Building application layers [DEBUG] RUNNING Building application layers [INFO] Building dependencies layer... [DEBUG] TIMING Building dependencies layer [DEBUG] RUNNING Building dependencies layer [INFO] Building resources layer... [DEBUG] TIMING Building resources layer [DEBUG] RUNNING Building resources layer [INFO] Building classes layer... [DEBUG] TIMING Building classes layer [DEBUG] TIMED Building application layers : 4.624 ms [DEBUG] RUNNING Building classes layer [DEBUG] Building application layers : 4.624 ms [DEBUG] TIMING Setting up to push layers [DEBUG] RUNNING Setting up to push layers [DEBUG] TIMED Setting up to push layers : 7.528 ms [DEBUG] Setting up to push layers : 7.528 ms [DEBUG] Building resources layer built sha256:5906bc2d22c20bbbcd3f9392f1006afe6bc898c6e8527a53778594ae19efe677 [DEBUG] Building classes layer built sha256:8c6edb5791e092349b575dffe3f96ecec804f10fced89ef45a6870c17d1d08b1 [DEBUG] TIMED Building resources layer : 71.84 ms [DEBUG] TIMED Building classes layer : 71.266 ms [DEBUG] Building resources layer : 71.84 ms [DEBUG] Building classes layer : 71.266 ms [DEBUG] TIMED Pulling base image manifest : 397.185 ms [DEBUG] Pulling base image manifest : 397.185 ms [DEBUG] TIMED Building and pushing image : 618.488 ms [DEBUG] Building and pushing image : 618.488 ms [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.972 s [INFO] Finished at: 2018-07-31T23:51:54+02:00 [INFO] Final Memory: 29M/604M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli) on project slow-response: Build image failed, perhaps you should use a registry that supports HTTPS or set the configuration parameter 'allowInsecureRegistries': Only secure connections are allowed, but tried to reach URL http://gcr.io/v2/distroless/java/manifests/latest -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli) on project slow-response: Build image failed, perhaps you should use a registry that supports HTTPS or set the configuration parameter 'allowInsecureRegistries' at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Build image failed, perhaps you should use a registry that supports HTTPS or set the configuration parameter 'allowInsecureRegistries' at com.google.cloud.tools.jib.maven.BuildImageMojo.execute (BuildImageMojo.java:165) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: com.google.cloud.tools.jib.registry.InsecureRegistryException: Only secure connections are allowed, but tried to reach URL http://gcr.io/v2/distroless/java/manifests/latest at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call (RegistryEndpointCaller.java:158) at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call (RegistryEndpointCaller.java:244) at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call (RegistryEndpointCaller.java:141) at com.google.cloud.tools.jib.registry.RegistryClient.callRegistryEndpoint (RegistryClient.java:338) at com.google.cloud.tools.jib.registry.RegistryClient.pullManifest (RegistryClient.java:213) at com.google.cloud.tools.jib.registry.RegistryClient.pullManifest (RegistryClient.java:221) at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.pullBaseImage (PullBaseImageStep.java:177) at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.call (PullBaseImageStep.java:109) at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.call (PullBaseImageStep.java:54) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly (TrustedListenableFutureTask.java:127) at com.google.common.util.concurrent.InterruptibleTask.run (InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run (TrustedListenableFutureTask.java:80) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1135) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635) at java.lang.Thread.run (Thread.java:844) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException ```
chanseokoh commented 6 years ago

So I added my user to the Docker group, because I guess that it is needed to push to the registry, right?

Jib doesn't need privileged rights to push an image to a remote registry (unless you are pushing to your local Docker daemon, which usually requires sudo). BTW, I don't think adding yourself to the Docker group makes mvn without sudo to look into /root/.m2/settings.xml. It'll look into your ~/.m2/settings.xml, so it's enough to have it correct. In any case, Jib should work without sudo, so I'd forget about the Docker group; it's irrelevant to the InsecureRegistryException issue you mentioned. Jib even works without docker locally installed (when pushing to a remote registry).

That said, I'll look into the log and try to think what's happening with the following error.

 Only secure connections are allowed, but tried to reach URL: http://gcr.io/v2/distroless/java/manifests/lates
adorearun commented 6 years ago

I am having same issue similar to DidierSchonne Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli) on project SkuGroupMaintainWS: Build image failed, perhaps you should use a registry that supports HTTPS or set the configuration parameter 'allowInsecureRegistries': Only secure connections are allowed, but tried to reach URL http://us.gcr.io/v2/xxx/xxxx

chanseokoh commented 6 years ago

@adorearun yeah, it looks very similar. Interesting. Can you tell us which base and target registries you are using?

briandealwis commented 6 years ago

@DidierSchonne and @adorearun are you behind proxies by any chance?

adorearun commented 6 years ago

GCR is our target registry and I am using maven plugin. It was working earlier only failing now.

adorearun commented 6 years ago

@briandealwis Nope. But It was strange for me because it used to work after I upgrade from 0.9.4 version to 0.9.7 in the morning and after an hour it started failing. Does it ring any bell?

adorearun commented 6 years ago

@chanseokoh @briandealwis To debug further if I set allowinsecureregistries param to true, I am getting the below error. Any help pls?

Build image failed: peer not authenticated

I am using google container registry for storing images and I use <credHelper>gcloud</credHelper> as credential helper.

briandealwis commented 6 years ago

I am using google container registry for storing images and I use gcloud as credential helper.

I think you should be using the gcr credential helper. Do you have multiple accounts? It could also be that you're logged into the wrong account.

If that doesn't fix things, could you try enabling Google HTTP logging?

It sounds like somehow the SSL certificate validation is failing and so jib is failing over to using HTTP. If you set the com.google.api.client.http.level=ALL then it will include live auth values and you can then try replaying the shown curl commands to find out more.

chanseokoh commented 6 years ago

it used to work after I upgrade from 0.9.4 version to 0.9.7 in the morning and after an hour it started failing. Does it ring any bell?

@adorearun is this still happening? We figured out that, if Jib 0.9.7 can't connect to the registry for reasons like the registry not listening or temporarily down (while allowInsecureRegistries is not set), Jib prints out the misleading error message you saw: https://github.com/GoogleContainerTools/jib/issues/767#issuecomment-409799872

@DidierSchonne same goes for you. If this is still happening (while allowInsecureRegistries is not set), I believe what below can actually mean is that you just cannot establish normal connection to gcr.io for whatever reasons.

Only secure connections are allowed, but tried to reach URL: http://gcr.io/v2/distroless/java/manifests/latest

DidierSchonne commented 6 years ago

@chanseokoh so I confirm that I'm not behind a proxy and I still have the same issue.

briandealwis commented 6 years ago

Could you please try with the newly-released 0.9.8? It includes some fixes that may apply here, including dealing with SSL issues.

If the problems are still occurring, please run with -DjibSerialize=true (prevents performing operations in parallel) and enable the Google HTTP logging. Try with com.google.api.client.http.level=ALL and if nothing obvious jumps out, try again with com.google.api.client.http.level=CONFIG (To hide airy info) and attach the output here.

adorearun commented 6 years ago

@briandealwis I tried upgrading to 0.9.8 and run using -DjibSerialize=true and got the below exception com.google.cloud.tools.jib.registry.InsecureRegistryException:

Failed to verify the server at https://us.gcr.io/v2/<projectID>/<imageID>/blobs/shaxxxxxx because only secure connections are allowed
    at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.handleUnverifiableServerException(RegistryEndpointCaller.java:160)
    at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.callWithAllowInsecureRegistryHandling(RegistryEndpointCaller.java:153)
Full Log ``` Failed to verify the server at https://us.gcr.io/v2///blobs/shaxxxxxx because only secure connections are allowed at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.handleUnverifiableServerException(RegistryEndpointCaller.java:160) at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.callWithAllowInsecureRegistryHandling(RegistryEndpointCaller.java:153) at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call(RegistryEndpointCaller.java:140) at com.google.cloud.tools.jib.registry.RegistryClient.callRegistryEndpoint(RegistryClient.java:356) at com.google.cloud.tools.jib.registry.RegistryClient.checkBlob(RegistryClient.java:262) at com.google.cloud.tools.jib.builder.steps.PushBlobStep.call(PushBlobStep.java:82) at com.google.cloud.tools.jib.builder.steps.PushBlobStep.call(PushBlobStep.java:35) at com.google.common.util.concurrent.CombinedFuture$CallableInterruptibleTask.runInterruptibly(CombinedFuture.java:181) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:258) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureInterruptibleTask.execute(CombinedFuture.java:112) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureRunningState.handleAllCompleted(CombinedFuture.java:75) at com.google.common.util.concurrent.AggregateFuture$RunningState.processCompleted(AggregateFuture.java:261) at com.google.common.util.concurrent.AggregateFuture$RunningState.decrementCountAndMaybeComplete(AggregateFuture.java:248) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$300(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture$RunningState$1.run(AggregateFuture.java:151) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:397) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1016) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:672) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107) at com.google.common.util.concurrent.AggregateFuture$RunningState.init(AggregateFuture.java:144) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$100(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture.init(AggregateFuture.java:91) at com.google.common.util.concurrent.CombinedFuture.(CombinedFuture.java:52) at com.google.common.util.concurrent.Futures$FutureCombiner.call(Futures.java:993) at com.google.cloud.tools.jib.builder.steps.PushBlobStep.(PushBlobStep.java:59) at com.google.cloud.tools.jib.builder.steps.PushContainerConfigurationStep.afterBuildConfigurationFutureFuture(PushContainerConfigurationStep.java:90) at com.google.common.util.concurrent.CombinedFuture$CallableInterruptibleTask.runInterruptibly(CombinedFuture.java:181) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:258) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureInterruptibleTask.execute(CombinedFuture.java:112) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureRunningState.handleAllCompleted(CombinedFuture.java:75) at com.google.common.util.concurrent.AggregateFuture$RunningState.processCompleted(AggregateFuture.java:261) at com.google.common.util.concurrent.AggregateFuture$RunningState.decrementCountAndMaybeComplete(AggregateFuture.java:248) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$300(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture$RunningState$1.run(AggregateFuture.java:151) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:397) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1016) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:672) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107) at com.google.common.util.concurrent.AggregateFuture$RunningState.init(AggregateFuture.java:144) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$100(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture.init(AggregateFuture.java:91) at com.google.common.util.concurrent.CombinedFuture.(CombinedFuture.java:52) at com.google.common.util.concurrent.Futures$FutureCombiner.call(Futures.java:993) at com.google.cloud.tools.jib.builder.steps.PushContainerConfigurationStep.call(PushContainerConfigurationStep.java:74) at com.google.cloud.tools.jib.builder.steps.PushContainerConfigurationStep.call(PushContainerConfigurationStep.java:38) at com.google.common.util.concurrent.CombinedFuture$CallableInterruptibleTask.runInterruptibly(CombinedFuture.java:181) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:258) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureInterruptibleTask.execute(CombinedFuture.java:112) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureRunningState.handleAllCompleted(CombinedFuture.java:75) at com.google.common.util.concurrent.AggregateFuture$RunningState.processCompleted(AggregateFuture.java:261) at com.google.common.util.concurrent.AggregateFuture$RunningState.decrementCountAndMaybeComplete(AggregateFuture.java:248) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$300(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture$RunningState$1.run(AggregateFuture.java:151) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:397) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1016) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:672) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107) at com.google.common.util.concurrent.AggregateFuture$RunningState.init(AggregateFuture.java:144) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$100(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture.init(AggregateFuture.java:91) at com.google.common.util.concurrent.CombinedFuture.(CombinedFuture.java:52) at com.google.common.util.concurrent.Futures$FutureCombiner.call(Futures.java:993) at com.google.cloud.tools.jib.builder.steps.PushContainerConfigurationStep.(PushContainerConfigurationStep.java:61) at com.google.cloud.tools.jib.builder.steps.StepsRunner.runPushContainerConfigurationStep(StepsRunner.java:146) at com.google.cloud.tools.jib.builder.BuildSteps.lambda$forBuildToDockerRegistry$0(BuildSteps.java:90) at com.google.cloud.tools.jib.builder.BuildSteps.run(BuildSteps.java:208) at com.google.cloud.tools.jib.frontend.BuildStepsRunner.build(BuildStepsRunner.java:211) at com.google.cloud.tools.jib.maven.BuildImageMojo.execute(BuildImageMojo.java:173) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:954) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) ```
briandealwis commented 6 years ago

@adorearun could you run with -X too and send the results? And the Google HTTP logging output would be helpful too.

DidierSchonne commented 6 years ago

@briandealwis 0.9.8 did not resolve the issue directly BUT if I enable allowInsecureRegistries, it works, I well have my image pushed to my private registry. I guess that distroless is downloaded through http and then my image pushed through https. I'm going to update this comment with logs to let you investigate why distroless is not downloaded without allowInsecureRegistries enabled.

adorearun commented 6 years ago

@briandealwis Please find the exception below after following the steps .

Aug 02, 2018 9:58:22 AM com.google.api.client.http.HttpRequest execute
CONFIG: -------------- REQUEST  --------------
HEAD https://us.gcr.io/v2/projectID/imageid/blobs/sha256:0a4ee1511969276095d958e5f15313637cc310e731623223979b7ea662a8f167
Accept: 
Accept-Encoding: gzip
Authorization: <Not Logged>
User-Agent: jib 0.9.8 jib-maven-plugin Google-HTTP-Java-Client/1.23.0 (gzip)

Aug 02, 2018 9:58:22 AM com.google.api.client.http.HttpRequest execute
CONFIG: curl -v --compressed -X HEAD -H 'Accept: ' -H 'Accept-Encoding: gzip' -H 'Authorization: <Not Logged>' -H 'User-Agent: jib 0.9.8 jib-maven-plugin Google-HTTP-Java-Client/1.23.0 (gzip)' -- 'https://us.gcr.io/v2/projectID/imageid/blobs/sha256:0a4ee1511969276095d958e5f15313637cc310e731623223979b7ea662a8f167'
[DEBUG] TIMED   Pushing BLOB digest: sha256:0a4ee1511969276095d958e5f15313637cc310e731623223979b7ea662a8f167, size: 25978 : 84.093 ms
[DEBUG] Pushing BLOB digest: sha256:0a4ee1511969276095d958e5f15313637cc310e731623223979b7ea662a8f167, size: 25978 : 84.093 ms
[DEBUG] TIMED   Setting up to push layers : 271.796 ms
[DEBUG] Setting up to push layers : 271.796 ms
[INFO] Finalizing...
Aug 02, 2018 9:58:22 AM com.google.common.util.concurrent.AggregateFuture$RunningState handleException
SEVERE: Got more than one input Future failure. Logging failures after the first
com.google.cloud.tools.jib.registry.InsecureRegistryException: Failed to verify the server at https://us.gcr.io/v2/projectid/imageid/blobs/sha256:1607093a898cc241de8712e4361dcd907898fff35b945adca42db3963f3827b3 because only secure connections are allowed.
    at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.handleUnverifiableServerException(RegistryEndpointCaller.java:160)
    at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.callWithAllowInsecureRegistryHandling(RegistryEndpointCaller.java:153)
Full Log ``` Aug 02, 2018 9:58:22 AM com.google.api.client.http.HttpRequest execute CONFIG: -------------- REQUEST -------------- HEAD https://us.gcr.io/v2/projectID/imageid/blobs/sha256:0a4ee1511969276095d958e5f15313637cc310e731623223979b7ea662a8f167 Accept: Accept-Encoding: gzip Authorization: User-Agent: jib 0.9.8 jib-maven-plugin Google-HTTP-Java-Client/1.23.0 (gzip) Aug 02, 2018 9:58:22 AM com.google.api.client.http.HttpRequest execute CONFIG: curl -v --compressed -X HEAD -H 'Accept: ' -H 'Accept-Encoding: gzip' -H 'Authorization: ' -H 'User-Agent: jib 0.9.8 jib-maven-plugin Google-HTTP-Java-Client/1.23.0 (gzip)' -- 'https://us.gcr.io/v2/projectID/imageid/blobs/sha256:0a4ee1511969276095d958e5f15313637cc310e731623223979b7ea662a8f167' [DEBUG] TIMED Pushing BLOB digest: sha256:0a4ee1511969276095d958e5f15313637cc310e731623223979b7ea662a8f167, size: 25978 : 84.093 ms [DEBUG] Pushing BLOB digest: sha256:0a4ee1511969276095d958e5f15313637cc310e731623223979b7ea662a8f167, size: 25978 : 84.093 ms [DEBUG] TIMED Setting up to push layers : 271.796 ms [DEBUG] Setting up to push layers : 271.796 ms [INFO] Finalizing... Aug 02, 2018 9:58:22 AM com.google.common.util.concurrent.AggregateFuture$RunningState handleException SEVERE: Got more than one input Future failure. Logging failures after the first com.google.cloud.tools.jib.registry.InsecureRegistryException: Failed to verify the server at https://us.gcr.io/v2/projectid/imageid/blobs/sha256:1607093a898cc241de8712e4361dcd907898fff35b945adca42db3963f3827b3 because only secure connections are allowed. at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.handleUnverifiableServerException(RegistryEndpointCaller.java:160) at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.callWithAllowInsecureRegistryHandling(RegistryEndpointCaller.java:153) at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call(RegistryEndpointCaller.java:140) at com.google.cloud.tools.jib.registry.RegistryClient.callRegistryEndpoint(RegistryClient.java:356) at com.google.cloud.tools.jib.registry.RegistryClient.checkBlob(RegistryClient.java:262) at com.google.cloud.tools.jib.builder.steps.PushBlobStep.call(PushBlobStep.java:82) at com.google.cloud.tools.jib.builder.steps.PushBlobStep.call(PushBlobStep.java:35) at com.google.common.util.concurrent.CombinedFuture$CallableInterruptibleTask.runInterruptibly(CombinedFuture.java:181) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:258) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureInterruptibleTask.execute(CombinedFuture.java:112) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureRunningState.handleAllCompleted(CombinedFuture.java:75) at com.google.common.util.concurrent.AggregateFuture$RunningState.processCompleted(AggregateFuture.java:261) at com.google.common.util.concurrent.AggregateFuture$RunningState.decrementCountAndMaybeComplete(AggregateFuture.java:248) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$300(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture$RunningState$1.run(AggregateFuture.java:151) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:397) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1016) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:672) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107) at com.google.common.util.concurrent.AggregateFuture$RunningState.init(AggregateFuture.java:144) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$100(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture.init(AggregateFuture.java:91) at com.google.common.util.concurrent.CombinedFuture.(CombinedFuture.java:52) at com.google.common.util.concurrent.Futures$FutureCombiner.call(Futures.java:993) at com.google.cloud.tools.jib.builder.steps.PushBlobStep.(PushBlobStep.java:59) at com.google.cloud.tools.jib.builder.steps.PushLayersStep.makePushBlobStep(PushLayersStep.java:93) at com.google.cloud.tools.jib.builder.steps.PushLayersStep.lambda$call$0(PushLayersStep.java:77) at com.google.common.util.concurrent.CombinedFuture$CallableInterruptibleTask.runInterruptibly(CombinedFuture.java:181) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:258) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureInterruptibleTask.execute(CombinedFuture.java:112) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureRunningState.handleAllCompleted(CombinedFuture.java:75) at com.google.common.util.concurrent.AggregateFuture$RunningState.processCompleted(AggregateFuture.java:261) at com.google.common.util.concurrent.AggregateFuture$RunningState.decrementCountAndMaybeComplete(AggregateFuture.java:248) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$300(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture$RunningState$1.run(AggregateFuture.java:151) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:397) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1016) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:672) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107) at com.google.common.util.concurrent.AggregateFuture$RunningState.init(AggregateFuture.java:144) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$100(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture.init(AggregateFuture.java:91) at com.google.common.util.concurrent.CombinedFuture.(CombinedFuture.java:52) at com.google.common.util.concurrent.Futures$FutureCombiner.call(Futures.java:993) at com.google.cloud.tools.jib.builder.steps.PushLayersStep.call(PushLayersStep.java:77) at com.google.cloud.tools.jib.builder.steps.PushLayersStep.call(PushLayersStep.java:31) at com.google.common.util.concurrent.CombinedFuture$CallableInterruptibleTask.runInterruptibly(CombinedFuture.java:181) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:258) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureInterruptibleTask.execute(CombinedFuture.java:112) at com.google.common.util.concurrent.CombinedFuture$CombinedFutureRunningState.handleAllCompleted(CombinedFuture.java:75) at com.google.common.util.concurrent.AggregateFuture$RunningState.processCompleted(AggregateFuture.java:261) at com.google.common.util.concurrent.AggregateFuture$RunningState.decrementCountAndMaybeComplete(AggregateFuture.java:248) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$300(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture$RunningState$1.run(AggregateFuture.java:151) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:397) at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1016) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:672) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107) at com.google.common.util.concurrent.AggregateFuture$RunningState.init(AggregateFuture.java:144) at com.google.common.util.concurrent.AggregateFuture$RunningState.access$100(AggregateFuture.java:94) at com.google.common.util.concurrent.AggregateFuture.init(AggregateFuture.java:91) at com.google.common.util.concurrent.CombinedFuture.(CombinedFuture.java:52) at com.google.common.util.concurrent.Futures$FutureCombiner.call(Futures.java:993) at com.google.cloud.tools.jib.builder.steps.PushLayersStep.(PushLayersStep.java:58) at com.google.cloud.tools.jib.builder.steps.StepsRunner.runPushBaseImageLayersStep(StepsRunner.java:118) at com.google.cloud.tools.jib.builder.BuildSteps.lambda$forBuildToDockerRegistry$0(BuildSteps.java:87) at com.google.cloud.tools.jib.builder.BuildSteps.run(BuildSteps.java:208) at com.google.cloud.tools.jib.frontend.BuildStepsRunner.build(BuildStepsRunner.java:211) at com.google.cloud.tools.jib.maven.BuildImageMojo.execute(BuildImageMojo.java:173) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:954) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) ```
briandealwis commented 6 years ago

@DidierSchonne and @adorearun what OS and Java runtime are you running? I wonder if your JRE's Certification Authority roots have been changed?

Could you please run the following three commands and report back on the output:

java -version

Assuming you have OpenSSL installed, let's see what certificate issues OpenSSL reports:

openssl s_client -showcerts -connect us.gcr.io:443 < /dev/null

And could you run the following to output the CA certs from your JRE keystore:

keytool -list -rfc -storepass changeit -keystore $JAVA_HOME/jre/lib/security/cacerts

The last part may need to change: if you're running a JRE by default, then it'll just be $JAVA_HOME/lib/security/cacerts. We're looking to ensure there's a globalsignr2ca certificate listed.

I see the following certificate chain when connecting with openssl:

$ openssl s_client -showcerts -connect us.gcr.io:443 </dev/null
Command Output ``` CONNECTED(00000003) depth=2 OU = GlobalSign Root CA - R2, O = GlobalSign, CN = GlobalSign verify return:1 depth=1 C = US, O = Google Trust Services, CN = Google Internet Authority G3 verify return:1 depth=0 C = US, ST = California, L = Mountain View, O = Google LLC, CN = *.googlecode.com verify return:1 --- Certificate chain 0 s:/C=US/ST=California/L=Mountain View/O=Google LLC/CN=*.googlecode.com i:/C=US/O=Google Trust Services/CN=Google Internet Authority G3 -----BEGIN CERTIFICATE----- MIIFNTCCBB2gAwIBAgIIM11XoHNGYyswDQYJKoZIhvcNAQELBQAwVDELMAkGA1UE BhMCVVMxHjAcBgNVBAoTFUdvb2dsZSBUcnVzdCBTZXJ2aWNlczElMCMGA1UEAxMc R29vZ2xlIEludGVybmV0IEF1dGhvcml0eSBHMzAeFw0xODA2MTkxMTM5NDlaFw0x ODA4MjgxMTMxMDBaMGoxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlh MRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKDApHb29nbGUgTExDMRkw FwYDVQQDDBAqLmdvb2dsZWNvZGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A MIIBCgKCAQEA3kR/X5Mq8uwaevanMJD48PSE3nSE9USIld/4F/npcDM8xioWvovM dKlvDoYbCVaIPFtjSdiMHwhiAcAQsc1JfeugNBJHuL3pGznMZcGuJ90lO+82le9N muO9UKBPCIreBLrHyjMI1aQr5/QIz6BjA7DZ0sIuphvI0H/mjeA1w9SPDArA14HH cwfuvebu6hypfZ6NANrCNKjIr95vU0NfPNd0ViczMTTaESEhXu0FEhWmoK0mNNXH LfiCczsDtVreej8+m8U/5rWujmAkZ7IJfJk5T02slLQ525J45sAFjrCQGc5HnQzl fKNmkUK7xbbKWLFhCfGSNs9JtOusamFk7QIDAQABo4IB8zCCAe8wEwYDVR0lBAww CgYIKwYBBQUHAwEwgckGA1UdEQSBwTCBvoIQKi5nb29nbGVjb2RlLmNvbYISKi5j bG91ZC5nb29nbGUuY29tghEqLmNvZGUuZ29vZ2xlLmNvbYIOKi5jb2Rlc3BvdC5j b22CFyouZGV2ZWxvcGVycy5nb29nbGUuY29tgggqLmdjci5pb4ISKi5nb29nbGVz b3VyY2UuY29tghIqLnUuZ29vZ2xlY29kZS5jb22CBmdjci5pb4IOZ29vZ2xlY29k ZS5jb22CEGdvb2dsZXNvdXJjZS5jb20waAYIKwYBBQUHAQEEXDBaMC0GCCsGAQUF BzAChiFodHRwOi8vcGtpLmdvb2cvZ3NyMi9HVFNHSUFHMy5jcnQwKQYIKwYBBQUH MAGGHWh0dHA6Ly9vY3NwLnBraS5nb29nL0dUU0dJQUczMB0GA1UdDgQWBBTrLr4H K0SaEYZm6G3Wg3X5V8pFKTAMBgNVHRMBAf8EAjAAMB8GA1UdIwQYMBaAFHfCuFCa Z3Z2sS3ChtCDoH6mfrpLMCEGA1UdIAQaMBgwDAYKKwYBBAHWeQIFAzAIBgZngQwB AgIwMQYDVR0fBCowKDAmoCSgIoYgaHR0cDovL2NybC5wa2kuZ29vZy9HVFNHSUFH My5jcmwwDQYJKoZIhvcNAQELBQADggEBAK8oXIE+3jKw1AmuOYUx8karMzQL1BDL R8gzfCTziYsDdmuhjK/hjgj3+eHlJYPq7UuJh2pb7K/oW2JmI1TFAsRUduYALi0S g4acmHcXmvPM5I0+p8P6FvFQnT+Dvs0u5Vq4Hhg6tzYVIDuEQBypXrrLargpXrap l1kGqeg69+5PFrS6fxWkyo0p1Ok4ipoYqaCKen7GFJHSv5bdMM+W18uwsa2z2TXN 32VpapsKbjHobAF7/0DA9HniwZ4Wa8IbzzXB4CobXJsxaLFO6WQKoaNm4mJlM3jz 2JZh8nlXhtGs9nGs1d7w0Ie9LOdDCvVUE/5osGiT3GUqc4Ju5o4DM1U= -----END CERTIFICATE----- 1 s:/C=US/O=Google Trust Services/CN=Google Internet Authority G3 i:/OU=GlobalSign Root CA - R2/O=GlobalSign/CN=GlobalSign -----BEGIN CERTIFICATE----- MIIEXDCCA0SgAwIBAgINAeOpMBz8cgY4P5pTHTANBgkqhkiG9w0BAQsFADBMMSAw HgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMjETMBEGA1UEChMKR2xvYmFs U2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjAeFw0xNzA2MTUwMDAwNDJaFw0yMTEy MTUwMDAwNDJaMFQxCzAJBgNVBAYTAlVTMR4wHAYDVQQKExVHb29nbGUgVHJ1c3Qg U2VydmljZXMxJTAjBgNVBAMTHEdvb2dsZSBJbnRlcm5ldCBBdXRob3JpdHkgRzMw ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDKUkvqHv/OJGuo2nIYaNVW XQ5IWi01CXZaz6TIHLGp/lOJ+600/4hbn7vn6AAB3DVzdQOts7G5pH0rJnnOFUAK 71G4nzKMfHCGUksW/mona+Y2emJQ2N+aicwJKetPKRSIgAuPOB6Aahh8Hb2XO3h9 RUk2T0HNouB2VzxoMXlkyW7XUR5mw6JkLHnA52XDVoRTWkNty5oCINLvGmnRsJ1z ouAqYGVQMc/7sy+/EYhALrVJEA8KbtyX+r8snwU5C1hUrwaW6MWOARa8qBpNQcWT kaIeoYvy/sGIJEmjR0vFEwHdp1cSaWIr6/4g72n7OqXwfinu7ZYW97EfoOSQJeAz AgMBAAGjggEzMIIBLzAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0lBBYwFAYIKwYBBQUH AwEGCCsGAQUFBwMCMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFHfCuFCa Z3Z2sS3ChtCDoH6mfrpLMB8GA1UdIwQYMBaAFJviB1dnHB7AagbeWbSaLd/cGYYu MDUGCCsGAQUFBwEBBCkwJzAlBggrBgEFBQcwAYYZaHR0cDovL29jc3AucGtpLmdv b2cvZ3NyMjAyBgNVHR8EKzApMCegJaAjhiFodHRwOi8vY3JsLnBraS5nb29nL2dz cjIvZ3NyMi5jcmwwPwYDVR0gBDgwNjA0BgZngQwBAgIwKjAoBggrBgEFBQcCARYc aHR0cHM6Ly9wa2kuZ29vZy9yZXBvc2l0b3J5LzANBgkqhkiG9w0BAQsFAAOCAQEA HLeJluRT7bvs26gyAZ8so81trUISd7O45skDUmAge1cnxhG1P2cNmSxbWsoiCt2e ux9LSD+PAj2LIYRFHW31/6xoic1k4tbWXkDCjir37xTTNqRAMPUyFRWSdvt+nlPq wnb8Oa2I/maSJukcxDjNSfpDh/Bd1lZNgdd/8cLdsE3+wypufJ9uXO1iQpnh9zbu FIwsIONGl1p3A8CgxkqI/UAih3JaGOqcpcdaCIzkBaR9uYQ1X4k2Vg5APRLouzVy 7a8IVk6wuy6pm+T7HT4LY8ibS5FEZlfAFLSW8NwsVz9SBK2Vqn1N0PIMn5xA6NZV c7o835DLAFshEWfC7TIe3g== -----END CERTIFICATE----- --- Server certificate subject=/C=US/ST=California/L=Mountain View/O=Google LLC/CN=*.googlecode.com issuer=/C=US/O=Google Trust Services/CN=Google Internet Authority G3 --- No client certificate CA names sent Peer signing digest: SHA256 Server Temp Key: ECDH, P-256, 256 bits --- SSL handshake has read 3165 bytes and written 433 bytes --- New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE No ALPN negotiated SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: 07EFF45B0087C3E9A9874D9F35BF3EC279316E11DF1A8048ECA736DFA3F49491 Session-ID-ctx: Master-Key: 82537B10A741E6506B9DC7637238F4390BA0966F6E33A70EE042921C9B06471A051E8AC668F572554BF57E27620CEF56 Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 100800 (seconds) TLS session ticket: 0000 - 00 a6 2f b4 6b c8 63 a8-76 39 19 71 9c 28 bf 60 ../.k.c.v9.q.(.` 0010 - fd 85 6c b0 32 0f de e1-1b 33 ad 3e 9c 4f 2b 07 ..l.2....3.>.O+. 0020 - f8 30 9d dd b3 f8 8e 3f-5e 2b 2e 34 90 49 56 11 .0.....?^+.4.IV. 0030 - 89 6f 54 d6 76 89 10 d8-63 82 f2 24 e2 5c 00 ff .oT.v...c..$.\.. 0040 - 36 3f 71 2e 20 07 4e 36-8c 17 ac 88 55 5d 46 74 6?q. .N6....U]Ft 0050 - eb 29 b0 ad 84 3a ec 3c-c0 a5 be 76 a8 8e de d8 .)...:.<...v.... 0060 - aa f3 f7 f9 d0 e3 c1 83-e0 a6 37 4b f3 13 b4 68 ..........7K...h 0070 - 98 58 84 9f 43 1e ac c8-e8 3e 0d a8 9b e7 41 8a .X..C....>....A. 0080 - 08 be e8 77 1f 2d b6 b6-17 b8 eb 1a 69 de 30 e2 ...w.-......i.0. 0090 - 24 2d 66 bd d0 2c a6 81-1b da c3 5d dc 5a 95 44 $-f..,.....].Z.D 00a0 - 74 76 41 3b 59 45 46 0c-b1 9f 79 0c 5a 37 f6 93 tvA;YEF...y.Z7.. 00b0 - 00 df ad 24 03 4a 93 a9-51 3e 9d 49 37 a2 aa 13 ...$.J..Q>.I7... 00c0 - 56 78 2c 25 34 be 20 b1-72 62 92 ab 31 0c 23 61 Vx,%4. .rb..1.#a 00d0 - b7 43 74 cd 1c .Ct.. Start Time: 1533219207 Timeout : 300 (sec) Verify return code: 0 (ok) --- DONE ```
chanseokoh commented 6 years ago

Yeah, we are on the right track, and it all makes sense now. The cause of the failure is that both @DidierSchonne @adorearun cannot verify the TLS certificate of gcr.io at some point for some reason. That explains all the error messages and behaviors of Jib 0.9.7 and 0.9.8. There can be many reasons, but reasons can well be a problem in the local environment (e.g., you have an outdated or modified list of trusted root CA certificates, using some custom JDK, behind a proxy, etc.).

0.9.8 now allows connecting to an HTTPS server whose certificate cannot be verified if allowInsecureRegistries is set (previously with 0.9.7, it could only try HTTP, which gcr.io just doesn't listen on), so that's why 0.9.8 works. But still, for some unknown reason, you cannot verify the authenticity of gcr.io from your machine. @adorearun seems to have the same issue, so I expect allowInsecureRegistries with 0.9.8 may work.

DidierSchonne commented 6 years ago
$ java -version
openjdk version "10" 2018-03-20
OpenJDK Runtime Environment 18.3 (build 10+46)
OpenJDK 64-Bit Server VM 18.3 (build 10+46, mixed mode)
$ openssl s_client -showcerts -connect us.gcr.io:443 < /dev/null
Command Output ``` $ openssl s_client -showcerts -connect us.gcr.io:443 < /dev/null CONNECTED(00000003) depth=2 OU = GlobalSign Root CA - R2, O = GlobalSign, CN = GlobalSign verify return:1 depth=1 C = US, O = Google Trust Services, CN = Google Internet Authority G3 verify return:1 depth=0 C = US, ST = California, L = Mountain View, O = Google LLC, CN = *.googlecode.com verify return:1 --- Certificate chain 0 s:/C=US/ST=California/L=Mountain View/O=Google LLC/CN=*.googlecode.com i:/C=US/O=Google Trust Services/CN=Google Internet Authority G3 -----BEGIN CERTIFICATE----- MIIFNTCCBB2gAwIBAgIIbWjxmCegKPowDQYJKoZIhvcNAQELBQAwVDELMAkGA1UE BhMCVVMxHjAcBgNVBAoTFUdvb2dsZSBUcnVzdCBTZXJ2aWNlczElMCMGA1UEAxMc R29vZ2xlIEludGVybmV0IEF1dGhvcml0eSBHMzAeFw0xODA3MjQxNjA5MTdaFw0x ODEwMDIxNjAwMDBaMGoxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlh MRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKDApHb29nbGUgTExDMRkw FwYDVQQDDBAqLmdvb2dsZWNvZGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A MIIBCgKCAQEA7M9iivILa+gxspaSNogk+mQVP1cTUUErIOrxvgaxpfYTxHFWJhpx /XUHU43lxxyhK4JTo0T2tVVfOzD9QzglQDqN5vITJ/pHofzuyBuNCZqAG9D+1ElC PlrfgiO50O9FNU/22UAhzCn/n9FpBvnL+r5VNI7c3EglYK++wSV02aqQ6FoQJ40w F6TLBIAOQ7XHA8uBi27iL+MG8PlLx208BldUuVg+TlNUnhBXNnkNkoGFMDRQP6nZ Z0OpvJ1Y3HVz/O/aoIbY0WqbMpbKgoU9PdDle384hZkpejCd1rd3Jq6lBOD95X3t 6nUZ8BCSjVg794U/+j79y1JKxUGkeP2xmwIDAQABo4IB8zCCAe8wEwYDVR0lBAww CgYIKwYBBQUHAwEwgckGA1UdEQSBwTCBvoIQKi5nb29nbGVjb2RlLmNvbYISKi5j bG91ZC5nb29nbGUuY29tghEqLmNvZGUuZ29vZ2xlLmNvbYIOKi5jb2Rlc3BvdC5j b22CFyouZGV2ZWxvcGVycy5nb29nbGUuY29tgggqLmdjci5pb4ISKi5nb29nbGVz b3VyY2UuY29tghIqLnUuZ29vZ2xlY29kZS5jb22CBmdjci5pb4IOZ29vZ2xlY29k ZS5jb22CEGdvb2dsZXNvdXJjZS5jb20waAYIKwYBBQUHAQEEXDBaMC0GCCsGAQUF BzAChiFodHRwOi8vcGtpLmdvb2cvZ3NyMi9HVFNHSUFHMy5jcnQwKQYIKwYBBQUH MAGGHWh0dHA6Ly9vY3NwLnBraS5nb29nL0dUU0dJQUczMB0GA1UdDgQWBBSQ56GS r06DHMiYQuWc8QfJTq1YqjAMBgNVHRMBAf8EAjAAMB8GA1UdIwQYMBaAFHfCuFCa Z3Z2sS3ChtCDoH6mfrpLMCEGA1UdIAQaMBgwDAYKKwYBBAHWeQIFAzAIBgZngQwB AgIwMQYDVR0fBCowKDAmoCSgIoYgaHR0cDovL2NybC5wa2kuZ29vZy9HVFNHSUFH My5jcmwwDQYJKoZIhvcNAQELBQADggEBAKWKvyP/J6sRFte8m5iJEXLmxxPg9rDj mVLIRfO+7WRdqo2rvY3WRTia+ADND0fi0vqlP8UT5Nqjgfth5QbG4WS2l6jpljAn XlNUMc//AorgEXjNSnmiaf5pbjgvEPr4gwc/fDk4zZYh9z2XjWujzN/Dnd2zC1th sizA621qA3xDbuU+yYZguSfLeRA8HQGCa2G3Is/3li+astsmVaa9S5OeMtmel7Rc Vl7cTZ39QwE73kdqUM0qQR9ZX3lPSS/Qm6as/VPpsvfXQ3nBy/f0s5x2I/Wl5xgy vIsxnDh4QK/BitzYAUKUqoIWy2/q2oQvYgpP6vS6CtuutsYXu/sn/94= -----END CERTIFICATE----- 1 s:/C=US/O=Google Trust Services/CN=Google Internet Authority G3 i:/OU=GlobalSign Root CA - R2/O=GlobalSign/CN=GlobalSign -----BEGIN CERTIFICATE----- MIIEXDCCA0SgAwIBAgINAeOpMBz8cgY4P5pTHTANBgkqhkiG9w0BAQsFADBMMSAw HgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMjETMBEGA1UEChMKR2xvYmFs U2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjAeFw0xNzA2MTUwMDAwNDJaFw0yMTEy MTUwMDAwNDJaMFQxCzAJBgNVBAYTAlVTMR4wHAYDVQQKExVHb29nbGUgVHJ1c3Qg U2VydmljZXMxJTAjBgNVBAMTHEdvb2dsZSBJbnRlcm5ldCBBdXRob3JpdHkgRzMw ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDKUkvqHv/OJGuo2nIYaNVW XQ5IWi01CXZaz6TIHLGp/lOJ+600/4hbn7vn6AAB3DVzdQOts7G5pH0rJnnOFUAK 71G4nzKMfHCGUksW/mona+Y2emJQ2N+aicwJKetPKRSIgAuPOB6Aahh8Hb2XO3h9 RUk2T0HNouB2VzxoMXlkyW7XUR5mw6JkLHnA52XDVoRTWkNty5oCINLvGmnRsJ1z ouAqYGVQMc/7sy+/EYhALrVJEA8KbtyX+r8snwU5C1hUrwaW6MWOARa8qBpNQcWT kaIeoYvy/sGIJEmjR0vFEwHdp1cSaWIr6/4g72n7OqXwfinu7ZYW97EfoOSQJeAz AgMBAAGjggEzMIIBLzAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0lBBYwFAYIKwYBBQUH AwEGCCsGAQUFBwMCMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFHfCuFCa Z3Z2sS3ChtCDoH6mfrpLMB8GA1UdIwQYMBaAFJviB1dnHB7AagbeWbSaLd/cGYYu MDUGCCsGAQUFBwEBBCkwJzAlBggrBgEFBQcwAYYZaHR0cDovL29jc3AucGtpLmdv b2cvZ3NyMjAyBgNVHR8EKzApMCegJaAjhiFodHRwOi8vY3JsLnBraS5nb29nL2dz cjIvZ3NyMi5jcmwwPwYDVR0gBDgwNjA0BgZngQwBAgIwKjAoBggrBgEFBQcCARYc aHR0cHM6Ly9wa2kuZ29vZy9yZXBvc2l0b3J5LzANBgkqhkiG9w0BAQsFAAOCAQEA HLeJluRT7bvs26gyAZ8so81trUISd7O45skDUmAge1cnxhG1P2cNmSxbWsoiCt2e ux9LSD+PAj2LIYRFHW31/6xoic1k4tbWXkDCjir37xTTNqRAMPUyFRWSdvt+nlPq wnb8Oa2I/maSJukcxDjNSfpDh/Bd1lZNgdd/8cLdsE3+wypufJ9uXO1iQpnh9zbu FIwsIONGl1p3A8CgxkqI/UAih3JaGOqcpcdaCIzkBaR9uYQ1X4k2Vg5APRLouzVy 7a8IVk6wuy6pm+T7HT4LY8ibS5FEZlfAFLSW8NwsVz9SBK2Vqn1N0PIMn5xA6NZV c7o835DLAFshEWfC7TIe3g== -----END CERTIFICATE----- --- Server certificate subject=/C=US/ST=California/L=Mountain View/O=Google LLC/CN=*.googlecode.com issuer=/C=US/O=Google Trust Services/CN=Google Internet Authority G3 --- No client certificate CA names sent Peer signing digest: SHA256 Server Temp Key: X25519, 253 bits --- SSL handshake has read 3133 bytes and written 261 bytes Verification: OK --- New, TLSv1.2, Cipher is ECDHE-RSA-CHACHA20-POLY1305 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE No ALPN negotiated SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-CHACHA20-POLY1305 Session-ID: EA48518784E705972B9AF8216205BE223A5A982793DD81D2C7F80041F3D20E7E Session-ID-ctx: Master-Key: C7BFDA39A6B83AAF69AF5BE49FB55B539E9969BAA4F549203CCCD7161EA23B302C28F18E80CD10B78C32F4736BB0986A PSK identity: None PSK identity hint: None SRP username: None TLS session ticket lifetime hint: 100800 (seconds) TLS session ticket: 0000 - 00 a6 2f b4 6b c8 63 a8-76 39 19 71 9c 28 bf 60 ../.k.c.v9.q.(.` 0010 - 08 39 81 f1 19 8e 8d b1-89 c8 db 5c d5 6a 72 82 .9.........\.jr. 0020 - f1 de 86 20 85 f3 8f 0a-43 c0 53 20 d8 58 87 49 ... ....C.S .X.I 0030 - c2 75 a5 65 1f d5 dd f3-ff dc 8d 11 55 bc e1 9a .u.e........U... 0040 - 19 51 ff 0d a8 49 f6 76-32 b0 50 c1 a2 bb 49 c6 .Q...I.v2.P...I. 0050 - 24 1a 21 fc b5 99 12 32-ee ab f4 aa a7 d6 57 92 $.!....2......W. 0060 - 27 81 7b 9d 09 1e 4c c2-79 aa b1 c4 b4 01 02 f7 '.{...L.y....... 0070 - 52 1c fa ef 40 11 63 21-28 95 60 9d 9d 59 63 49 R...@.c!(.`..YcI 0080 - 64 c1 86 06 4c 44 d2 10-61 d1 c3 e9 7b 97 9e 1a d...LD..a...{... 0090 - ae 99 4a a7 7e 59 4e c4-71 aa ec 5f 53 90 2d 0e ..J.~YN.q.._S.-. 00a0 - 69 21 c2 6c de ac e9 91-d8 ac b4 81 f0 cf 76 bd i!.l..........v. 00b0 - c1 32 c8 a8 90 0f 64 8d-c8 59 94 6f 96 10 ee 98 .2....d..Y.o.... 00c0 - 8e b9 aa 57 0b ee 0f 7c-86 af 75 00 f2 d8 e4 62 ...W...|..u....b 00d0 - 18 71 56 ed 94 24 0f 93-7e a0 .qV..$..~. Start Time: 1533220808 Timeout : 7200 (sec) Verify return code: 0 (ok) Extended master secret: yes --- DONE ``` And for this last one I have a lot of certificates (and I'm using sdkman to manage my Java sdks) ``` keytool -list -rfc -storepass changeit -keystore /home/did/.sdkman/candidates/java/current/lib/security/cacerts ```
adorearun commented 6 years ago

@chanseokoh @briandealwis I appreciate all your help and inputs here , please find the output below version -

java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
Open SSL output - ``` CONNECTED(00000005) depth=1 C = US, O = Google Trust Services, CN = Google Internet Authority G3 verify error:num=20:unable to get local issuer certificate verify return:0 --- Certificate chain 0 s:/C=US/ST=California/L=Mountain View/O=Google LLC/CN=*.googlecode.com i:/C=US/O=Google Trust Services/CN=Google Internet Authority G3 -----BEGIN CERTIFICATE----- MIIFNTCCBB2gAwIBAgIIbWjxmCegKPowDQYJKoZIhvcNAQELBQAwVDELMAkGA1UE BhMCVVMxHjAcBgNVBAoTFUdvb2dsZSBUcnVzdCBTZXJ2aWNlczElMCMGA1UEAxMc R29vZ2xlIEludGVybmV0IEF1dGhvcml0eSBHMzAeFw0xODA3MjQxNjA5MTdaFw0x ODEwMDIxNjAwMDBaMGoxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlh MRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKDApHb29nbGUgTExDMRkw FwYDVQQDDBAqLmdvb2dsZWNvZGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A MIIBCgKCAQEA7M9iivILa+gxspaSNogk+mQVP1cTUUErIOrxvgaxpfYTxHFWJhpx /XUHU43lxxyhK4JTo0T2tVVfOzD9QzglQDqN5vITJ/pHofzuyBuNCZqAG9D+1ElC PlrfgiO50O9FNU/22UAhzCn/n9FpBvnL+r5VNI7c3EglYK++wSV02aqQ6FoQJ40w F6TLBIAOQ7XHA8uBi27iL+MG8PlLx208BldUuVg+TlNUnhBXNnkNkoGFMDRQP6nZ Z0OpvJ1Y3HVz/O/aoIbY0WqbMpbKgoU9PdDle384hZkpejCd1rd3Jq6lBOD95X3t 6nUZ8BCSjVg794U/+j79y1JKxUGkeP2xmwIDAQABo4IB8zCCAe8wEwYDVR0lBAww CgYIKwYBBQUHAwEwgckGA1UdEQSBwTCBvoIQKi5nb29nbGVjb2RlLmNvbYISKi5j bG91ZC5nb29nbGUuY29tghEqLmNvZGUuZ29vZ2xlLmNvbYIOKi5jb2Rlc3BvdC5j b22CFyouZGV2ZWxvcGVycy5nb29nbGUuY29tgggqLmdjci5pb4ISKi5nb29nbGVz b3VyY2UuY29tghIqLnUuZ29vZ2xlY29kZS5jb22CBmdjci5pb4IOZ29vZ2xlY29k ZS5jb22CEGdvb2dsZXNvdXJjZS5jb20waAYIKwYBBQUHAQEEXDBaMC0GCCsGAQUF BzAChiFodHRwOi8vcGtpLmdvb2cvZ3NyMi9HVFNHSUFHMy5jcnQwKQYIKwYBBQUH MAGGHWh0dHA6Ly9vY3NwLnBraS5nb29nL0dUU0dJQUczMB0GA1UdDgQWBBSQ56GS r06DHMiYQuWc8QfJTq1YqjAMBgNVHRMBAf8EAjAAMB8GA1UdIwQYMBaAFHfCuFCa Z3Z2sS3ChtCDoH6mfrpLMCEGA1UdIAQaMBgwDAYKKwYBBAHWeQIFAzAIBgZngQwB AgIwMQYDVR0fBCowKDAmoCSgIoYgaHR0cDovL2NybC5wa2kuZ29vZy9HVFNHSUFH My5jcmwwDQYJKoZIhvcNAQELBQADggEBAKWKvyP/J6sRFte8m5iJEXLmxxPg9rDj mVLIRfO+7WRdqo2rvY3WRTia+ADND0fi0vqlP8UT5Nqjgfth5QbG4WS2l6jpljAn XlNUMc//AorgEXjNSnmiaf5pbjgvEPr4gwc/fDk4zZYh9z2XjWujzN/Dnd2zC1th sizA621qA3xDbuU+yYZguSfLeRA8HQGCa2G3Is/3li+astsmVaa9S5OeMtmel7Rc Vl7cTZ39QwE73kdqUM0qQR9ZX3lPSS/Qm6as/VPpsvfXQ3nBy/f0s5x2I/Wl5xgy vIsxnDh4QK/BitzYAUKUqoIWy2/q2oQvYgpP6vS6CtuutsYXu/sn/94= -----END CERTIFICATE----- 1 s:/C=US/O=Google Trust Services/CN=Google Internet Authority G3 i:/OU=GlobalSign Root CA - R2/O=GlobalSign/CN=GlobalSign -----BEGIN CERTIFICATE----- MIIEXDCCA0SgAwIBAgINAeOpMBz8cgY4P5pTHTANBgkqhkiG9w0BAQsFADBMMSAw HgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMjETMBEGA1UEChMKR2xvYmFs U2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjAeFw0xNzA2MTUwMDAwNDJaFw0yMTEy MTUwMDAwNDJaMFQxCzAJBgNVBAYTAlVTMR4wHAYDVQQKExVHb29nbGUgVHJ1c3Qg U2VydmljZXMxJTAjBgNVBAMTHEdvb2dsZSBJbnRlcm5ldCBBdXRob3JpdHkgRzMw ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDKUkvqHv/OJGuo2nIYaNVW XQ5IWi01CXZaz6TIHLGp/lOJ+600/4hbn7vn6AAB3DVzdQOts7G5pH0rJnnOFUAK 71G4nzKMfHCGUksW/mona+Y2emJQ2N+aicwJKetPKRSIgAuPOB6Aahh8Hb2XO3h9 RUk2T0HNouB2VzxoMXlkyW7XUR5mw6JkLHnA52XDVoRTWkNty5oCINLvGmnRsJ1z ouAqYGVQMc/7sy+/EYhALrVJEA8KbtyX+r8snwU5C1hUrwaW6MWOARa8qBpNQcWT kaIeoYvy/sGIJEmjR0vFEwHdp1cSaWIr6/4g72n7OqXwfinu7ZYW97EfoOSQJeAz AgMBAAGjggEzMIIBLzAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0lBBYwFAYIKwYBBQUH AwEGCCsGAQUFBwMCMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFHfCuFCa Z3Z2sS3ChtCDoH6mfrpLMB8GA1UdIwQYMBaAFJviB1dnHB7AagbeWbSaLd/cGYYu MDUGCCsGAQUFBwEBBCkwJzAlBggrBgEFBQcwAYYZaHR0cDovL29jc3AucGtpLmdv b2cvZ3NyMjAyBgNVHR8EKzApMCegJaAjhiFodHRwOi8vY3JsLnBraS5nb29nL2dz cjIvZ3NyMi5jcmwwPwYDVR0gBDgwNjA0BgZngQwBAgIwKjAoBggrBgEFBQcCARYc aHR0cHM6Ly9wa2kuZ29vZy9yZXBvc2l0b3J5LzANBgkqhkiG9w0BAQsFAAOCAQEA HLeJluRT7bvs26gyAZ8so81trUISd7O45skDUmAge1cnxhG1P2cNmSxbWsoiCt2e ux9LSD+PAj2LIYRFHW31/6xoic1k4tbWXkDCjir37xTTNqRAMPUyFRWSdvt+nlPq wnb8Oa2I/maSJukcxDjNSfpDh/Bd1lZNgdd/8cLdsE3+wypufJ9uXO1iQpnh9zbu FIwsIONGl1p3A8CgxkqI/UAih3JaGOqcpcdaCIzkBaR9uYQ1X4k2Vg5APRLouzVy 7a8IVk6wuy6pm+T7HT4LY8ibS5FEZlfAFLSW8NwsVz9SBK2Vqn1N0PIMn5xA6NZV c7o835DLAFshEWfC7TIe3g== -----END CERTIFICATE----- --- Server certificate subject=/C=US/ST=California/L=Mountain View/O=Google LLC/CN=*.googlecode.com issuer=/C=US/O=Google Trust Services/CN=Google Internet Authority G3 --- No client certificate CA names sent --- SSL handshake has read 3165 bytes and written 444 bytes --- New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE No ALPN negotiated SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES128-GCM-SHA256 Session-ID: E2C4B4DCFFE5E6A5507607DBF58ECB6BB94AEF95CA41C34BDDD2BF12E54C867F Session-ID-ctx: Master-Key: C5C1F350628392661D00EE7AAE2620E073589A6685FD9285B9981C4DB28965076B5234B2C22B1D21B9D12B9BC53CAC96 TLS session ticket lifetime hint: 100800 (seconds) TLS session ticket: 0000 - 00 a6 2f b4 6b c8 63 a8-76 39 19 71 9c 28 bf 60 ../.k.c.v9.q.(.` 0010 - ab c2 e7 9f 85 d3 9b 19-82 89 df c3 b9 1e 91 b8 ................ 0020 - 0b 1c b9 09 57 17 c6 3e-0d de 20 d4 eb d6 ef 0f ....W..>.. ..... 0030 - 3a 08 9e fe 59 8d 79 de-eb 61 50 7c c2 9e 3b 46 :...Y.y..aP|..;F 0040 - 97 e6 5a 36 82 3b 8d ea-20 39 c7 93 94 ed 67 7b ..Z6.;.. 9....g{ 0050 - 0b 77 f1 e1 34 10 b4 d2-a5 44 70 59 23 ea ca 5a .w..4....DpY#..Z 0060 - 33 0e 44 40 c2 c4 5e 2c-e6 55 50 34 da fa f5 5c 3.D@..^,.UP4...\ 0070 - df 54 7e b9 4b 9e 9a bf-45 de 7b cf c4 d3 7a e7 .T~.K...E.{...z. 0080 - f2 51 10 bf f0 81 4b 7a-1d da 37 4b c0 29 ea db .Q....Kz..7K.).. 0090 - f3 1c e8 78 81 2e 78 fb-66 48 c7 13 ab e1 a4 88 ...x..x.fH...... 00a0 - d2 6b c1 27 d0 6f 2b 1f-80 fb 20 b4 2f 58 97 c4 .k.'.o+... ./X.. 00b0 - e9 d3 2f b2 77 f0 4a be-db aa 07 21 3c e0 c2 b8 ../.w.J....!<... 00c0 - 15 d5 cd 53 a0 1d 87 f1-d3 cb e7 84 97 2b 55 5f ...S.........+U_ 00d0 - 78 21 53 b7 e1 x!S.. Start Time: 1533221846 Timeout : 300 (sec) Verify return code: 0 (ok) --- poll error ```

I don't have any certificates with me so here is the output for keytool - `keytool error: java.lang.Exception: Keystore file does not exist: /jre/lib/security/cacerts`

chanseokoh commented 6 years ago

@DidierSchonne we've done some research and we have some evidence here and there to make us believe that your OpenJDK 10 cannot verify Google servers. For example, I downloaded OpenJDK 10 tar.gz, unpacked it, executed jshell, and tried making connections to a few HTTPS servers:

jdk-10.0.2/bin$ ./jshell
...
jshell> new URL("https://oracle.com").openStream()
$1 ==> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@2a32de6c

jshell> new URL("https://amazon.com").openStream()
$2 ==> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@45018215

jshell> new URL("https://google.com").openStream()
|  javax.net.ssl.SSLHandshakeException thrown: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
|        at Alerts.getSSLException (Alerts.java:198)
|        at SSLSocketImpl.fatal (SSLSocketImpl.java:1974)
|        at Handshaker.fatalSE (Handshaker.java:345)
|        at Handshaker.fatalSE (Handshaker.java:339)
|        at ClientHandshaker.checkServerCerts (ClientHandshaker.java:1968)
|        at ClientHandshaker.serverCertificate (ClientHandshaker.java:1777)
|        at ClientHandshaker.processMessage (ClientHandshaker.java:264)
|        at Handshaker.processLoop (Handshaker.java:1098)
|        at Handshaker.processRecord (Handshaker.java:1026)
|        at SSLSocketImpl.processInputRecord (SSLSocketImpl.java:1137)
|        at SSLSocketImpl.readRecord (SSLSocketImpl.java:1074)
|        at SSLSocketImpl.readRecord (SSLSocketImpl.java:973)
|        at SSLSocketImpl.performInitialHandshake (SSLSocketImpl.java:1402)
|        at SSLSocketImpl.startHandshake (SSLSocketImpl.java:1429)
|        at SSLSocketImpl.startHandshake (SSLSocketImpl.java:1413)
|        at HttpsClient.afterConnect (HttpsClient.java:567)
|        at AbstractDelegateHttpsURLConnection.connect (AbstractDelegateHttpsURLConnection.java:185)
|        at HttpURLConnection.getInputStream0 (HttpURLConnection.java:1581)
|        at HttpURLConnection.getInputStream (HttpURLConnection.java:1509)
|        at HttpsURLConnectionImpl.getInputStream (HttpsURLConnectionImpl.java:245)
|        at URL.openStream (URL.java:1117)
|        at (#3:1)

There seem to exist several related JDK bugs (e.g., https://bugs.openjdk.java.net/browse/JDK-8207255).

@DidierSchonne so I expect if you downgrade to Java 8 for example, you should be able to verify Google servers.

@adorearun I did notice you are not using OpenJDK 10, but I wonder if the build tool you are using is picking up some other JRE. mvn -v would tell you which JRE it uses.

adorearun commented 6 years ago

@chanseokoh @briandealwis yep we are not using OpenJDK please find the output

Maven home: /usr/local/Cellar/maven/3.5.4/libexec
Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.5", arch: "x86_64", family: "mac"
chanseokoh commented 6 years ago

@adorearun can you do

keytool -keystore /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/security/cacerts -v -list | grep GlobalSign

to see if your JDK has GlobalSign CA certs? It will ask a password, and if you have never modified your JDK, it should be "changeit". For my JDK for example, I get

$ keytool -keystore ./cacerts -v -list | grep GlobalSign
Enter keystore password:  changeit
Owner: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R3
Issuer: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R3
Owner: CN=GlobalSign, O=GlobalSign, OU=GlobalSign ECC Root CA - R5
Issuer: CN=GlobalSign, O=GlobalSign, OU=GlobalSign ECC Root CA - R5
Owner: CN=GlobalSign, O=GlobalSign, OU=GlobalSign ECC Root CA - R4
Issuer: CN=GlobalSign, O=GlobalSign, OU=GlobalSign ECC Root CA - R4
Owner: CN=GlobalSign Root CA, OU=Root CA, O=GlobalSign nv-sa, C=BE
Issuer: CN=GlobalSign Root CA, OU=Root CA, O=GlobalSign nv-sa, C=BE
Owner: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R2
Issuer: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R2
briandealwis commented 6 years ago

@DidierSchonne Probably the easiest thing to do is to use a tool like KeyStore Explorer and import either the GlobalSign Root CA - R2 certificate and the GTS certificates (Google Trust Services) from Google Trust Service's "sample PEM file" (see What roots should we trust for connecting to Google? in the Google Trust Service's FAQ). This is the same process required for using a registry with a self-signed certificate.

chanseokoh commented 6 years ago

@DidierSchonne Probably the easiest thing to do is to use a tool like KeyStore Explorer and import

I find using the keytool CLI more convenient here.

I tried importing the Google Trust Service's "sample PEM file". Adding it didn't help. (UPDATE: @briandealwis later told me that the following command (the -import switch) imports only the first certificate in the pem file.)

jdk-10.0.2/bin$ ./keytool -import -trustcacerts -alias gtsroots -cacerts -file ~/Downloads/roots.pem 
Enter keystore password:  changeit
Certificate already exists in keystore under alias <comodoaaaca [jdk]>
Do you still want to add it? [no]:  yes
Certificate was added to keystore

jdk-10.0.2/bin$ ./jshell <<EOL
new URL("https://google.com").openStream()
EOL
...
|  javax.net.ssl.SSLHandshakeException thrown: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

What worked for me was the GlobalSign Root R2 crt file from here.

jdk-10.0.2/bin$ ./keytool -import -trustcacerts -alias gsr2 -cacerts -file ~/Downloads/GSR2.crt
Enter keystore password:  changeit
Owner: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R2
Issuer: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R2
...
Trust this certificate? [no]:  yes
Certificate was added to keystore

$ jdk-10.0.2/bin$ ./jshell <<EOL                                                                     
new URL("https://google.com").openStream()
EOL
...
jshell> new URL("https://google.com").openStream()
$1 ==> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@7995092a

So, if you have permission to modify your JDK, importing missing certificates could be one of possibly many other workarounds. (If you don't have the permission to modify your JDK, another option could be to install one on your home. It's also possible to leave the JDK trusted keystore intact and load a different keystore per individual Java application.)

DidierSchonne commented 6 years ago

@chanseokoh @briandealwis, thank you very much for your support, you found the issue. And you're right, with an 8 Java version it's ok. Next month Java 11 should be released, I hope that it will be fixed. BTW, Gitlab CI will build our app and use Jib to create the Docker image so we just have to be aware to use the right version.

Besides that I tried to add a <from>openjdk:10-jre</from> or <from>openjdk:10</from> tag into <configuration> like in the doc and Jib crashes :

Unable to parse configuration of mojo com.google.cloud.tools:jib-maven-plugin:0.9.8:build for parameter from: Cannot find default setter in class com.google.cloud.tools.jib.maven.JibPluginConfiguration$FromConfiguration

Did I miss something, or did somehting wrong? Or should I open a new issue?

Thanks a lot again for your great responsiveness.

adorearun commented 6 years ago

@chanseokoh @briandealwis please find the output for global signed certificate in my JDK

Enter keystore password:  changeit
Owner: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R2
Issuer: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R2
Owner: CN=GlobalSign, O=GlobalSign, OU=GlobalSign ECC Root CA - R4
Issuer: CN=GlobalSign, O=GlobalSign, OU=GlobalSign ECC Root CA - R4
Owner: CN=GlobalSign Root CA, OU=Root CA, O=GlobalSign nv-sa, C=BE
Issuer: CN=GlobalSign Root CA, OU=Root CA, O=GlobalSign nv-sa, C=BE
Owner: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R3
Issuer: CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R3
Owner: CN=GlobalSign, O=GlobalSign, OU=GlobalSign ECC Root CA - R5
Issuer: CN=GlobalSign, O=GlobalSign, OU=GlobalSign ECC Root CA - R5
chanseokoh commented 6 years ago

@DidierSchonne I opened a new issue for the "Cannot find default setter in class com.google.cloud.tools.jib.maven.JibPluginConfiguration$FromConfiguration" error: https://github.com/GoogleContainerTools/jib/issues/791

Using JDK 8 could be an easy workaround, but just keep in mind that there are other options or workarounds such as importing GlobalSign CA certs into your JDK's default trusted keystore or making your Java programs to load a different trusted keystore, if you do some research, but this might not worth your time. Lastly, it seems that OpenJDK-11 Early Access is also missing the root CA certs, so I also hope it will have them when officially released.

chanseokoh commented 6 years ago

@adorearun then your issue seems different from @DidierSchonne's. Can you confirm that 0.9.8 with allowInsecureRegistries works?

adorearun commented 6 years ago

@chanseokoh @briandealwis Once I set the allowInsecureRegistries param to true I am getting different exception below

Build image failed: Failed to authenticate with the registry because: peer not authenticated

Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
    at sun.security.ssl.SSLSessionImpl.getPeerCertificates (SSLSessionImpl.java:440)
    at org.apache.http.conn.ssl.AbstractVerifier.verify (AbstractVerifier.java:128)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket (SSLSocketFactory.java:339)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection (DefaultClientConnectionOperator.java:123)
    at org.apache.http.impl.conn.AbstractPoolEntry.open (AbstractPoolEntry.java:147)
    at org.apache.http.impl.conn.AbstractPooledConnAdapter.open (AbstractPooledConnAdapter.java:108)
    at org.apache.http.impl.client.DefaultRequestDirector.execute (DefaultRequestDirector.java:415)
    at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:641)
    at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:576)
    at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:554)
    at com.google.api.client.http.apache.ApacheHttpRequest.execute (ApacheHttpRequest.java:65)
    at com.google.api.client.http.HttpRequest.execute (HttpRequest.java:981)
    at com.google.cloud.tools.jib.http.Connection.send (Connection.java:161)
    at com.google.cloud.tools.jib.http.Connection.get (Connection.java:116)
    at com.google.cloud.tools.jib.registry.RegistryAuthenticator.authenticate (RegistryAuthenticator.java:253)
    at com.google.cloud.tools.jib.registry.RegistryAuthenticator.authenticatePush (RegistryAuthenticator.java:226)
    at com.google.cloud.tools.jib.builder.steps.AuthenticatePushStep.call (AuthenticatePushStep.java:92)
    at com.google.cloud.tools.jib.builder.steps.AuthenticatePushStep.call (AuthenticatePushStep.java:42)
    at com.google.common.util.concurrent.CombinedFuture$CallableInterruptibleTask.runInterruptibly (CombinedFuture.java:181)
    at com.google.common.util.concurrent.InterruptibleTask.run (InterruptibleTask.java:57)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute (MoreExecutors.java:258)
    at com.google.common.util.concurrent.CombinedFuture$CombinedFutureInterruptibleTask.execute (CombinedFuture.java:112)
    at com.google.common.util.concurrent.CombinedFuture$CombinedFutureRunningState.handleAllCompleted (CombinedFuture.java:75)
    at com.google.common.util.concurrent.AggregateFuture$RunningState.processCompleted (AggregateFuture.java:261)
    at com.google.common.util.concurrent.AggregateFuture$RunningState.decrementCountAndMaybeComplete (AggregateFuture.java:248)
    at com.google.common.util.concurrent.AggregateFuture$RunningState.access$300 (AggregateFuture.java:94)
    at com.google.common.util.concurrent.AggregateFuture$RunningState$1.run (AggregateFuture.java:151)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute (MoreExecutors.java:397)
    at com.google.common.util.concurrent.AbstractFuture.executeListener (AbstractFuture.java:1016)
    at com.google.common.util.concurrent.AbstractFuture.addListener (AbstractFuture.java:672)
    at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener (AbstractFuture.java:107)
    at com.google.common.util.concurrent.AggregateFuture$RunningState.init (AggregateFuture.java:144)
    at com.google.common.util.concurrent.AggregateFuture$RunningState.access$100 (AggregateFuture.java:94)
    at com.google.common.util.concurrent.AggregateFuture.init (AggregateFuture.java:91)
    at com.google.common.util.concurrent.CombinedFuture.<init> (CombinedFuture.java:52)
    at com.google.common.util.concurrent.Futures$FutureCombiner.call (Futures.java:993)
    at com.google.cloud.tools.jib.builder.steps.AuthenticatePushStep.<init> (AuthenticatePushStep.java:60)
    at com.google.cloud.tools.jib.builder.steps.StepsRunner.runAuthenticatePushStep (StepsRunner.java:93)
    at com.google.cloud.tools.jib.builder.BuildSteps.lambda$forBuildToDockerRegistry$0 (BuildSteps.java:84)
    at com.google.cloud.tools.jib.builder.BuildSteps.run (BuildSteps.java:208)
    at com.google.cloud.tools.jib.frontend.BuildStepsRunner.build (BuildStepsRunner.java:211)
    at com.google.cloud.tools.jib.maven.BuildImageMojo.execute (BuildImageMojo.java:173)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
chanseokoh commented 6 years ago

@adorearun that makes sense. For some unknown reason, you cannot still verify HTTPS servers.

(You may wonder why allowInsecureRegistries did not bypass server verification failure; that's because we have an issue that there is another code path where allowInsecureRegistries doesn't apply: https://github.com/GoogleContainerTools/jib/issues/720)

I'm currently clueless. Does this also happen when you use GCR for both the from image and the to image? If possible, can you test with other registries? I'm wondering if you cannot verify only Google registries.

adorearun commented 6 years ago

@chanseokoh @briandealwis I believe both from and to will take from GCR .My configuration below

        <configuration>
            <from>
                <image>openjdk:8</image>
            </from>
            <to>
                <image>us.gcr.io/projectid/imagename</image>
                <credHelper>gcloud</credHelper>
            </to>
            <allowInsecureRegistries>true</allowInsecureRegistries>
            <container>
                <jvmFlags>
                    <jvmFlag>-Dspring.profiles.active=gcpcloud</jvmFlag>
                </jvmFlags>
                <mainClass>com.XXX.mm.rd.XXX.XXX.myApplication</mainClass>
                <args>
                    <arg>APPLICATION_ARGS</arg>
                </args>
                <ports>

                </ports>
            </container>
        </configuration>
chanseokoh commented 6 years ago

@adorearun no, openjdk:8 is from Docker Hub. I'd like to know if Docker Hub is OK and only GCR has this problem. Can you try pushing your image to Docker Hub? (If you have never had a Docker Hub account, it's easy to create. Setting up a private repo for pushing an image is also easy.)

Also, I see you are pushing to us.gcr.io. What if you just have gcr.io/projectid/imagename without us?

adorearun commented 6 years ago

@chanseokoh I have seen a strange behavior , I changed us.gcr.io to gcr.io in project 1 then tried jib build and it works. I have another project 2 , I changed us.gcr.io to gcr.io in project 2 then tried jib build and it failed.

Now I tried project 1 which was working earlier , is failing now. . very strange right.

chanseokoh commented 6 years ago

@adorearun based on all of the logs and info you gave us, here is what I think. But before that, let's examine some of your logs:

Aug 02, 2018 9:58:22 AM com.google.api.client.http.HttpRequest execute
CONFIG: -------------- REQUEST  --------------
HEAD https://us.gcr.io/v2/projectID/imageid/blobs/sha256:0a4ee1511969276095d958e5f15313637cc310e731623223979b7ea662a8f167
...
Authorization: <Not Logged>
...
handleException
SEVERE: Got more than one input Future failure. Logging failures after the first
com.google.cloud.tools.jib.registry.InsecureRegistryException: Failed to verify the server at https://us.gcr.io/v2/projectid/imageid/blobs/sha256:1607093a898cc241de8712e4361dcd907898fff35b945adca42db3963f3827b3 because only secure connections are allowed.
    at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.handleUnverifiableServerException(RegistryEndpointCaller.java:160)
    at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.callWithAllowInsecureRegistryHandling(RegistryEndpointCaller.java:153)

The log was when allowInsecureRegistries was not enabled. This operation log shows that Jib was trying to check if GCR already caches a particular image layer (a blob identified by 607093a898cc241de8712e4361dcd907898fff35b945adca42db3963f3827b3). The thing is, this is well after Jib made a few successful interactions with us.gcr.io. For example, it's sending the Authorization credentials along the HEAD request, which must have been previously obtained from us.gcr.io. This means, prior to this operation, you were able to verify certificates of us.gcr.io. It worked.

You also said

It was strange for me because it used to work after I upgrade from 0.9.4 version to 0.9.7 in the morning and after an hour it started failing. Does it ring any bell?

and

I have seen a strange behavior , I changed us.gcr.io to gcr.io in project 1 then tried jib build and it works. I have another project 2 , I changed us.gcr.io to gcr.io in project 2 then tried jib build and it failed.

Now I tried project 1 which was working earlier , is failing now. . very strange right.

So I'm thinking your local environment is showing some unpredictable behavior regarding being able to verify SSL certificates of some servers including us.gcr.io. Sometimes it works, but sometimes it doesn't.