{"id":19656737,"url":"https://github.com/daggerok/github-jib-issue-2267","last_synced_at":"2025-02-27T02:21:16.764Z","repository":{"id":151041676,"uuid":"238786325","full_name":"daggerok/github-jib-issue-2267","owner":"daggerok","description":"2.0.0 jib-maven-plugin breaking changes when using packaged containerizingMode. #2267 https://github.com/GoogleContainerTools/jib/issues/2267","archived":false,"fork":false,"pushed_at":"2020-02-06T22:18:00.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T00:45:22.419Z","etag":null,"topics":["github-issue","jib","jib-maven-plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daggerok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-06T21:16:15.000Z","updated_at":"2020-02-06T22:18:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7524361-d433-448f-b7ef-052b89297abf","html_url":"https://github.com/daggerok/github-jib-issue-2267","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fgithub-jib-issue-2267","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fgithub-jib-issue-2267/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fgithub-jib-issue-2267/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fgithub-jib-issue-2267/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/github-jib-issue-2267/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240964932,"owners_count":19885832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-issue","jib","jib-maven-plugin"],"created_at":"2024-11-11T15:28:45.964Z","updated_at":"2025-02-27T02:21:16.743Z","avatar_url":"https://github.com/daggerok.png","language":"Java","readme":"# GitHub jib issue #2267\n\nSee: https://github.com/GoogleContainerTools/jib/issues/2267\n\n\u003c!--\n\nSteps to reproduce:\n\n* clone repo:\n  ```bash\n  git clone https://github.com/daggerok/github-jib-issue-2267 \n  ```\n* build project for fat jar configuration using jib maven plugin version: 2.0.0 and then run docker container:\n  ```bash\n  ./mvnw -Djib-maven-plugin.version=2.0.0\n  docker run --rm -it daggerok/github-jib-issue-2267-app-2.0.0\n  # verify it doesn't work: find similar output:\n  no main manifest attribute, in /tmp/classpath/app-0.0.1-SNAPSHOT.original.jar\n  ```\n* run same build but with version 1.8.0 this time and verify, everything is working as expected:\n  ```bash\n  ./mvnw -Djib-maven-plugin.version=1.8.0\n  docker run --rm -it daggerok/github-jib-issue-2267-app-1.8.0\n  # expected output..\n  ```\n\n--\u003e\n\n[Resolution](https://github.com/GoogleContainerTools/jib/issues/2267#issuecomment-583124177): with 2.0.0 using fat jars is not possible anymore.\nCheck alternative [here](https://github.com/GoogleContainerTools/jib/issues/2267#issuecomment-583107466) or [here](https://github.com/GoogleContainerTools/jib/issues/2267#issuecomment-583124177).\n\n```bash\n./mvnw -P before-2\ndocker run --rm -it daggerok/github-jib-issue-2267-app-1.8.0\n\n./mvnw -P after-2\ndocker run --rm -it daggerok/github-jib-issue-2267-app-2.0.0\n```\n\nSee [pom.xml file](pom.xml) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fgithub-jib-issue-2267","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Fgithub-jib-issue-2267","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fgithub-jib-issue-2267/lists"}