Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DidierSchonne opened this issue Jul 31, 2018 · 58 comments

Comments

@DidierSchonne
Copy link

DidierSchonne commented Jul 31, 2018

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:

  • Set up private Gitlab credentials in Maven's settings.xml in plain text to avoid additional issues
  • Run sudo mvn compile -X com.google.cloud.tools:jib-maven-plugin:0.9.7:build

Environment:

  • Ubuntu 18.04
  • Maven 3.5.2
  • Java 10.0.0-openjdk

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: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <addDefaultExcludes default-value="true"/>
  <buildFilters default-value="${project.build.filters}"/>
  <delimiters>
    <delimiter>@</delimiter>
  </delimiters>
  <encoding default-value="${project.build.sourceEncoding}"/>
  <escapeString default-value="\"/>
  <escapeWindowsPaths default-value="true"/>
  <fileNameFiltering default-value="false"/>
  <includeEmptyDirs default-value="false"/>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <overwrite default-value="false"/>
  <project default-value="${project}"/>
  <resources default-value="${project.resources}"/>
  <session default-value="${session}"/>
  <skip default-value="false">${maven.resources.skip}</skip>
  <supportMultiLineFiltering default-value="false"/>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true">false</useDefaultDelimiters>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <basedir default-value="${basedir}"/>
  <buildDirectory default-value="${project.build.directory}"/>
  <compilePath default-value="${project.compileClasspathElements}"/>
  <compileSourceRoots default-value="${project.compileSourceRoots}"/>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <compilerReuseStrategy default-value="${reuseCreated}">${maven.compiler.compilerReuseStrategy}</compilerReuseStrategy>
  <compilerVersion>${maven.compiler.compilerVersion}</compilerVersion>
  <debug default-value="true">${maven.compiler.debug}</debug>
  <debuglevel>${maven.compiler.debuglevel}</debuglevel>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <executable>${maven.compiler.executable}</executable>
  <failOnError default-value="true">${maven.compiler.failOnError}</failOnError>
  <failOnWarning default-value="false">${maven.compiler.failOnWarning}</failOnWarning>
  <forceJavacCompilerUse default-value="false">${maven.compiler.forceJavacCompilerUse}</forceJavacCompilerUse>
  <fork default-value="false">${maven.compiler.fork}</fork>
  <generatedSourcesDirectory default-value="${project.build.directory}/generated-sources/annotations"/>
  <maxmem>${maven.compiler.maxmem}</maxmem>
  <meminitial>${maven.compiler.meminitial}</meminitial>
  <mojoExecution default-value="${mojoExecution}"/>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <parameters default-value="false">true</parameters>
  <project default-value="${project}"/>
  <projectArtifact default-value="${project.artifact}"/>
  <release>${maven.compiler.release}</release>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <skipMain>${maven.main.skip}</skipMain>
  <skipMultiThreadWarning default-value="false">${maven.compiler.skipMultiThreadWarning}</skipMultiThreadWarning>
  <source default-value="1.5">${maven.compiler.source}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${maven.compiler.target}</target>
  <useIncrementalCompilation default-value="true">${maven.compiler.useIncrementalCompilation}</useIncrementalCompilation>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <allowInsecureRegistries default-value="false"/>
  <extraDirectory default-value="${project.basedir}/src/main/jib"/>
  <project default-value="${project}"/>
  <session default-value="${session}"/>
  <to>
    <image>gitlab.mydomain.com:4567/sandbox/slow-response</image>${image}</to>
  <useOnlyProjectCache default-value="false"/>
</configuration>
[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.

@coollog coollog added this to the v0.9.9 milestone Jul 31, 2018
@chanseokoh
Copy link
Member

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
Copy link
Author

DidierSchonne commented Jul 31, 2018

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
Copy link
Contributor

coollog commented Jul 31, 2018

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

@chanseokoh
Copy link
Member

chanseokoh commented Jul 31, 2018

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
Copy link
Member

briandealwis commented Jul 31, 2018

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
Copy link
Author

DidierSchonne commented Jul 31, 2018

@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
Copy link
Member

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

@briandealwis
Copy link
Member

briandealwis commented Jul 31, 2018

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
Copy link
Author

@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
Copy link
Author

DidierSchonne commented Jul 31, 2018

@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}]}

</details>

@briandealwis
Copy link
Member

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
Copy link
Contributor

TadCordle commented Jul 31, 2018

@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
Copy link
Author

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
Copy link
Member

chanseokoh commented Jul 31, 2018

@DidierSchonne I noticed that you're running mvn with sudo. Regarding #746 (comment), 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
Copy link
Member

briandealwis commented Jul 31, 2018

@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
Copy link
Author

DidierSchonne commented Jul 31, 2018

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: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <addDefaultExcludes default-value="true"/>
  <buildFilters default-value="${project.build.filters}"/>
  <delimiters>
    <delimiter>@</delimiter>
  </delimiters>
  <encoding default-value="${project.build.sourceEncoding}"/>
  <escapeString default-value="\"/>
  <escapeWindowsPaths default-value="true"/>
  <fileNameFiltering default-value="false"/>
  <includeEmptyDirs default-value="false"/>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <overwrite default-value="false"/>
  <project default-value="${project}"/>
  <resources default-value="${project.resources}"/>
  <session default-value="${session}"/>
  <skip default-value="false">${maven.resources.skip}</skip>
  <supportMultiLineFiltering default-value="false"/>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true">false</useDefaultDelimiters>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <basedir default-value="${basedir}"/>
  <buildDirectory default-value="${project.build.directory}"/>
  <compilePath default-value="${project.compileClasspathElements}"/>
  <compileSourceRoots default-value="${project.compileSourceRoots}"/>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <compilerReuseStrategy default-value="${reuseCreated}">${maven.compiler.compilerReuseStrategy}</compilerReuseStrategy>
  <compilerVersion>${maven.compiler.compilerVersion}</compilerVersion>
  <debug default-value="true">${maven.compiler.debug}</debug>
  <debuglevel>${maven.compiler.debuglevel}</debuglevel>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <executable>${maven.compiler.executable}</executable>
  <failOnError default-value="true">${maven.compiler.failOnError}</failOnError>
  <failOnWarning default-value="false">${maven.compiler.failOnWarning}</failOnWarning>
  <forceJavacCompilerUse default-value="false">${maven.compiler.forceJavacCompilerUse}</forceJavacCompilerUse>
  <fork default-value="false">${maven.compiler.fork}</fork>
  <generatedSourcesDirectory default-value="${project.build.directory}/generated-sources/annotations"/>
  <maxmem>${maven.compiler.maxmem}</maxmem>
  <meminitial>${maven.compiler.meminitial}</meminitial>
  <mojoExecution default-value="${mojoExecution}"/>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <parameters default-value="false">true</parameters>
  <project default-value="${project}"/>
  <projectArtifact default-value="${project.artifact}"/>
  <release>${maven.compiler.release}</release>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <skipMain>${maven.main.skip}</skipMain>
  <skipMultiThreadWarning default-value="false">${maven.compiler.skipMultiThreadWarning}</skipMultiThreadWarning>
  <source default-value="1.5">${maven.compiler.source}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${maven.compiler.target}</target>
  <useIncrementalCompilation default-value="true">${maven.compiler.useIncrementalCompilation}</useIncrementalCompilation>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.google.cloud.tools:jib-maven-plugin:0.9.7:build (default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <allowInsecureRegistries default-value="false"/>
  <extraDirectory default-value="${project.basedir}/src/main/jib"/>
  <project default-value="${project}"/>
  <session default-value="${session}"/>
  <to>
    <image>gitlab.mydomain.com:4567/sandbox/slow-response</image>${image}</to>
  <useOnlyProjectCache default-value="false"/>
</configuration>
[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
Copy link
Member

chanseokoh commented Jul 31, 2018

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
Copy link

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
Copy link
Member

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

@briandealwis
Copy link
Member

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

@adorearun
Copy link

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

@adorearun
Copy link

@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
Copy link

adorearun commented Aug 1, 2018

@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
Copy link
Member

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
Copy link
Member

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: #767 (comment)

@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
Copy link
Author

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

@adorearun
Copy link

adorearun commented Aug 2, 2018

@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
Copy link
Member

chanseokoh commented Aug 2, 2018

@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
Copy link

@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
Copy link
Member

chanseokoh commented Aug 2, 2018

@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
Copy link
Member

briandealwis commented Aug 2, 2018

@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
Copy link
Member

chanseokoh commented Aug 2, 2018

@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
Copy link
Author

@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
Copy link

@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
Copy link
Member

chanseokoh commented Aug 3, 2018

@DidierSchonne I opened a new issue for the "Cannot find default setter in class com.google.cloud.tools.jib.maven.JibPluginConfiguration$FromConfiguration" error: #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
Copy link
Member

chanseokoh commented Aug 3, 2018

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

@adorearun
Copy link

@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
Copy link
Member

@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: #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
Copy link

adorearun commented Aug 3, 2018

@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
Copy link
Member

@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
Copy link

@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
Copy link
Member

chanseokoh commented Aug 3, 2018

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

@adorearun
Copy link

@chanseokoh Thank you for continuous support. I am not sure about my local env because in 0.9.4 it was working perfectly fine earlier (but now even I downgrade it fails) and I am seeing the error from tuesday and upgraded to 0.9.8 still no luck.Is there any way if I use 0.9.4 and make it work because which was sufficient and working fine for me? Also Is there any cache problem ?

@chanseokoh
Copy link
Member

chanseokoh commented Aug 5, 2018

@adorearun I don't think Jib is at fault, and the Jib versions seem irrelevant. You said now 0.9.4 is not working. I suggest trying Jib in a totally different environment, on many different laptop/workstation on a different network or WiFi. I also suggest to find and consult an SSL and network expert to look into your machine directly. I am not an expert in this matter, so I feel I'm limited in helping resolve your resolve.

Since you said you are not behind a proxy, I even wondered if your machine or your network has been compromised and is under attack by an unknown party, or there might be some security software or firewall installed in your network that you are not aware of, but I'm by no means a security expert.

Lastly, there are always some workarounds. Build your image and push it directly into your local Docker daemon, by mvn jib:dockerBuild. Since you are pulling a base image from Docker Hub, you won't ever interact with gcr.io during this process. Once your image is saved locally, just push the image to GCR with docker push gcr.io/projectid/imagename. I actually wonder if docker push will succeed.

@adorearun
Copy link

@chanseokoh Thank you for the help and I totally understand your point. I will check with my security team over here in mean time,but gcloud docker push works without any problem.

@chanseokoh
Copy link
Member

gcloud docker push works without any problem.

@adorearun thanks for letting us know. I don't rule out the possibility that it might be the case that the problem happens only for Java applications, applications using the Google HTTP Client Library, applications using a particular JRE setup, etc.

I suggest trying this in a totally different environment, on many different laptop/workstation on a different network or WiFi.

Can you try this? It will be really valuable to know, and I'd try my best effort to find such an environment. If you can find any machine (just using any small hello-world test project such as the one embedded in the Jib source repo) that works, that'd give you a huge lead. I'm sure you'll be able to find such an environment, and I'd start digging into the environmental differences.

@adorearun
Copy link

@chanseokoh Interesting !!! , the example project with different environment works. I believe the problem with my environment.

@coollog coollog removed this from the v0.9.9 milestone Aug 8, 2018
@coollog
Copy link
Contributor

coollog commented Aug 8, 2018

Thanks to everyone for the efforts on this issue thread! It looks like the original issues have been resolved, so I removed the milestone. The only issue left is to figure out what environment difference led to the failure @adorearun was running into.

@adorearun
Copy link

@coollog Thanks all but even my SRE team and networking team were clueless what made this to happen in my machine, will keep you posted if I get any further information.

@briandealwis
Copy link
Member

Closing. Will reopen if any new information comes to light from @adorearun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants