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

Build fails on project with no dependencies or resources #126

Closed
TadCordle opened this issue Feb 27, 2018 · 0 comments
Closed

Build fails on project with no dependencies or resources #126

TadCordle opened this issue Feb 27, 2018 · 0 comments

Comments

@TadCordle
Copy link
Contributor

Made a very simple "Hello World" application with 1 class, no resources, and no dependencies.

Build output:

[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.1.2:build (default-cli) on project helloworld: Build image failed: Cannot add the same layer more than once -> [Help 1]

pom.xml:

<?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>test</groupId>
  <artifactId>helloworld</artifactId>
  <version>1.0-SNAPSHOT</version>

  <build>
    <plugins>
      <plugin>
        <groupId>com.google.cloud.tools</groupId>
        <artifactId>jib-maven-plugin</artifactId>
        <version>0.1.2</version>
        <configuration>
          <mainClass>HelloWorld</mainClass>
          <registry>gcr.io</registry>
          <repository>tcordle-test/hello</repository>
          <credHelpers>
            <credHelper>gcr</credHelper>
          </credHelpers>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
@TadCordle TadCordle changed the title Build fails on project with no dependencies Build fails on project with no dependencies or resources Feb 27, 2018
@coollog coollog mentioned this issue Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant