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

Dockerfile.native cache layer fails #6307

Closed
romain-grecourt opened this issue Feb 27, 2023 · 0 comments · Fixed by #6424 or #6438
Closed

Dockerfile.native cache layer fails #6307

romain-grecourt opened this issue Feb 27, 2023 · 0 comments · Fixed by #6424 or #6438
Assignees
Milestone

Comments

@romain-grecourt
Copy link
Contributor

Follow-up to #6260

#12 17.83 [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ quickstart-se ---
#12 17.83 [WARNING] JAR will be empty - no content was marked for inclusion!
#12 17.83 [INFO] ------------------------------------------------------------------------
#12 17.83 [INFO] BUILD FAILURE
#12 17.83 [INFO] ------------------------------------------------------------------------
#12 17.83 [INFO] Total time:  17.157 s
#12 17.83 [INFO] Finished at: 2023-02-21T12:37:18Z
#12 17.83 [INFO] ------------------------------------------------------------------------
#12 17.84 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar (default-jar) on project quickstart-se: You have to use a classifier to attach supplemental artifacts to the project instead of replacing them. -> [Help 1]
#12 17.84 [ERROR] 
#12 17.84 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#12 17.84 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#12 17.84 [ERROR] 
#12 17.84 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#12 17.84 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
------
executor failed running [/bin/sh -c mvn package -Pnative-image -Dnative.image.skip -Dmaven.test.skip -Declipselink.weave.skip]: exit code: 1

It was likely introduced by #5308 when we switched to the official native image Maven plugin.

A workaround is to remove -Pnative-image -Dnative.image.skip from the first RUN.

@romain-grecourt romain-grecourt added this to the 3.1.3 milestone Feb 27, 2023
@m0mus m0mus added bug Something isn't working P2 labels Mar 2, 2023
romain-grecourt added a commit to romain-grecourt/helidon that referenced this issue Mar 16, 2023
- Remove -Pnative-image from the prime step
- Add --static to the build args

Fixes helidon-io#6307 helidon-io#6283
barchetta pushed a commit that referenced this issue Mar 16, 2023
- Remove -Pnative-image from the prime step
- Add --static to the build args

Fixes #6307 #6283
romain-grecourt added a commit to romain-grecourt/helidon that referenced this issue Mar 20, 2023
…ative.image.buildStatic

This makes the Dockerfiles backward compatible.

Fixes helidon-io#6307
Fixes helidon-io#6283
romain-grecourt added a commit that referenced this issue Mar 21, 2023
* Update application parent poms to support -Dnative.image.skip and -Dnative.image.buildStatic
This makes the Dockerfiles backward compatible.

Fixes #6307
Fixes #6283

* Move native goals out of pluginManagement as they get included with any declaration of the native-image plugin.
@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
2 participants