Giter VIP home page Giter VIP logo

Comments (12)

survivant avatar survivant commented on May 24, 2024 3

thanks. it works. but I had to change the name of the plugin

instead of k8s

org.eclipse.jkube
kubernetes-maven-plugin
0.2.1-SNAPSHOT

from jkube.

survivant avatar survivant commented on May 24, 2024 1

just tell me when you will want me to test the latest snapshot.

from jkube.

survivant avatar survivant commented on May 24, 2024 1

I did a clone and : mvn clean install -Dmaven.test.skip=true and I obtain this error

`[INFO] Running post-build script: C:\test\jkube-test\jkube\kubernetes-maven-plugin\it\target\it\volume-enricher-storage-class-835\verify.groovy
[INFO] ..FAILED (5.2 s)
[INFO] The post-build script did not succeed. startup failed:
Script1.groovy: 14: unable to resolve class org.eclipse.jkube.maven.it.Verify
@ line 14, column 1.
import org.eclipse.jkube.maven.it.Verify
^

1 error

[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO] Passed: 0, Failed: 24, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] * configmap\pom.xml
[ERROR] * custom-environment\pom.xml
[ERROR] * custom-raw-resources\pom.xml
[ERROR] * deployment-strategy-type-919\pom.xml
[ERROR] * docker-health-checks\pom.xml
[ERROR] * env-metadata\pom.xml
[ERROR] * raw-resources\pom.xml
[ERROR] * registry-286\pom.xml
[ERROR] * remote-resources\pom.xml
[ERROR] * revisionhistory\pom.xml
[ERROR] * secret-config\pom.xml
[ERROR] * sidecar\pom.xml
[ERROR] * simple\pom.xml
[ERROR] * simple-maven-issue-mgmt\pom.xml
[ERROR] * simple-maven-scm\pom.xml
[ERROR] * simple-with-route-flag-false\pom.xml
[ERROR] * simple-with-route-flag-true\pom.xml
[ERROR] * spring-boot\pom.xml
[ERROR] * statefulset\pom.xml
[ERROR] * vertx\pom.xml
[ERROR] * vertx-default\pom.xml
[ERROR] * vertx-health-check\pom.xml
[ERROR] * volume-enricher-custom-storage-class\pom.xml
[ERROR] * volume-enricher-storage-class-835\pom.xml
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for JKube 0.2.1-SNAPSHOT:
[INFO]
[INFO] JKube .............................................. SUCCESS [ 0.778 s]
[INFO] JKube Kit :: Parent ................................ SUCCESS [ 0.296 s]
[INFO] JKube Kit :: Common ................................ SUCCESS [ 2.613 s]
[INFO] JKube Kit :: Common Maven .......................... SUCCESS [ 3.419 s]
[INFO] JKube Kit :: Documentation ......................... SUCCESS [ 18.106 s]
[INFO] JKube Kit :: Config :: Image ....................... SUCCESS [ 2.127 s]
[INFO] JKube Kit :: Build :: API .......................... SUCCESS [ 1.424 s]
[INFO] JKube Kit :: Build :: Service :: Docker ............ SUCCESS [ 7.260 s]
[INFO] JKube Kit :: Config :: Resource .................... SUCCESS [ 3.460 s]
[INFO] JKube Kit :: Resource :: Service ................... SUCCESS [ 1.982 s]
[INFO] JKube Kit :: Generator :: API ...................... SUCCESS [ 1.288 s]
[INFO] JKube Kit :: Generator :: Java Exec ................ SUCCESS [ 0.888 s]
[INFO] JKube Kit :: Generator :: WildFly Swarm ............ SUCCESS [ 0.817 s]
[INFO] JKube Kit :: Generator :: Karaf .................... SUCCESS [ 0.833 s]
[INFO] JKube Kit :: Generator :: WebApp ................... SUCCESS [ 1.026 s]
[INFO] JKube Kit :: Enricher :: API ....................... SUCCESS [ 2.029 s]
[INFO] JKube Kit :: Enricher :: Generic ................... SUCCESS [ 3.748 s]
[INFO] JKube Kit :: Enricher :: Specific .................. SUCCESS [ 1.216 s]
[INFO] JKube Kit :: Profile ............................... SUCCESS [ 0.619 s]
[INFO] JKube Kit :: Watcher :: API ........................ SUCCESS [ 0.739 s]
[INFO] JKube Kit :: Watcher :: Standard ................... SUCCESS [ 0.726 s]
[INFO] JKube Kit :: Spring-Boot ........................... SUCCESS [ 1.045 s]
[INFO] JKube Kit :: Thorntail ............................. SUCCESS [ 0.776 s]
[INFO] JKube Kit :: Vert.x ................................ SUCCESS [ 6.829 s]
[INFO] JKube Kit :: Quarkus ............................... SUCCESS [ 0.952 s]
[INFO] JKube Kit :: Open Liberty .......................... SUCCESS [ 0.661 s]
[INFO] JKube Kit .......................................... SUCCESS [ 0.013 s]
[INFO] Kubernetes Maven Plugin :: Parent .................. SUCCESS [ 0.032 s]
[INFO] Kubernetes Maven Plugin :: Plugin .................. SUCCESS [ 9.309 s]
[INFO] Kubernetes Maven Plugin :: Integration Tests ....... FAILURE [03:21 min]
[INFO] Kubernetes Maven Plugin :: Documentation ........... SKIPPED
[INFO] Openshift Maven Plugin:: Parent .................... SKIPPED
[INFO] Openshift Maven Plugin :: Plugin ................... SKIPPED
[INFO] Openshift Maven Plugin :: Integration Tests ........ SKIPPED
[INFO] Openshift Maven Plugin :: Documentation ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:37 min
[INFO] Finished at: 2020-03-24T07:48:15-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-invoker-plugin:2.0.0:run (integration-tests) on project kubernetes-maven-plugin-it: 24 builds failed. See console output above for details. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :kubernetes-maven-plugin-it

`

from jkube.

rohanKanojia avatar rohanKanojia commented on May 24, 2024 1

Yeah, we changed artifactId in this version

from jkube.

rohanKanojia avatar rohanKanojia commented on May 24, 2024

Strange, I tried reproducing your issue but couldn't (I did it on Linux):

^C~/work/repos/quarkus-k8s-hello : $ mvn package -DskipTests k8s:build
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< ca.demo:quarkus-k8s-hello >----------------------
[INFO] Building quarkus-k8s-hello 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ quarkus-k8s-hello ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ quarkus-k8s-hello ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ quarkus-k8s-hello ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/rohaan/work/repos/quarkus-k8s-hello/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ quarkus-k8s-hello ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ quarkus-k8s-hello ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ quarkus-k8s-hello ---
[INFO] Building jar: /home/rohaan/work/repos/quarkus-k8s-hello/target/quarkus-k8s-hello-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- quarkus-maven-plugin:1.2.1.Final:build (default) @ quarkus-k8s-hello ---
Downloading from central: https://repo.maven.apache.org/maven2/io/dekorate/dekorate-dependencies/0.10.7/dekorate-dependencies-0.10.7.jar
Downloaded from central: https://repo.maven.apache.org/maven2/io/dekorate/dekorate-dependencies/0.10.7/dekorate-dependencies-0.10.7.jar (20 MB at 58 kB/s)
[INFO] [org.jboss.threads] JBoss Threads version 3.0.0.Final
[INFO] Initializing dekorate session.
[INFO] Default s2i build generator....
[INFO] Registering s2i handler!
[INFO] Generating manifests.
[INFO] Processing kubernetes configuration.
[INFO] Processing openshift configuration.
[INFO] Processing s2i configuration.
[INFO] Closing dekorate session.
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building thin jar: /home/rohaan/work/repos/quarkus-k8s-hello/target/quarkus-k8s-hello-1.0.0-SNAPSHOT-runner.jar
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 6244ms
[INFO] 
[INFO] --- kubernetes-maven-plugin:0.2.1-SNAPSHOT:build (default-cli) @ quarkus-k8s-hello ---
[INFO] k8s: Running in Kubernetes mode
[INFO] k8s: Building Docker image in Kubernetes mode
[INFO] k8s: Running generator quarkus
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG (file:/home/rohaan/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.61/bcprov-jdk15on-1.61.jar) to constructor sun.security.provider.Sun()
WARNING: Please consider reporting this to the maintainers of org.bouncycastle.jcajce.provider.drbg.DRBG
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] k8s: Pulling from library/openjdk
50e431f79093: Pull complete 
dd8c6d374ea5: Pull complete 
c85513200d84: Pull complete 
55769680e827: Pull complete 
e27ce2095ec2: Pull complete 
3eb0840c2dae: Pull complete 
491685d1af8c: Pull complete 
[INFO] k8s: Digest: sha256:8eb7ad24dcb6c51b3897c944b8b0f72abfbb583dd973a0f8fb69699df78b686e
[INFO] k8s: Status: Downloaded newer image for openjdk:11
[INFO] k8s: Pulled openjdk:11 in 13 minutes and 7 seconds 
[INFO] k8s: [demo/quarkus-k8s-hello:latest] "quarkus": Created docker-build.tar in 337 milliseconds
[INFO] k8s: [demo/quarkus-k8s-hello:latest] "quarkus": Built image sha256:8ac02
[INFO] k8s: [demo/quarkus-k8s-hello:latest] "quarkus": Tag with latest
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  19:05 min
[INFO] Finished at: 2020-03-19T21:35:27+05:30
[INFO] ------------------------------------------------------------------------
~/work/repos/quarkus-k8s-hello : $ 

@manusa : Could you please try to reproduce it on your windows machine whenever you get time?

from jkube.

survivant avatar survivant commented on May 24, 2024

same thing

Microsoft Windows [version 10.0.18363.657]
(c) Microsoft Corporation, 2019. Tous droits réservés.

C:\workspace\quarkus-k8s-hello>
C:\workspace\quarkus-k8s-hello>mvn clean package -DskipTests=true k8s:build
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< ca.demo:quarkus-k8s-hello >----------------------
[INFO] Building quarkus-k8s-hello 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ quarkus-k8s-hello ---
[INFO] Deleting C:\workspace\quarkus-k8s-hello\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ quarkus-k8s-hello ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ quarkus-k8s-hello ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to C:\workspace\quarkus-k8s-hello\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ quarkus-k8s-hello ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\workspace\quarkus-k8s-hello\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ quarkus-k8s-hello ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to C:\workspace\quarkus-k8s-hello\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ quarkus-k8s-hello ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ quarkus-k8s-hello ---
[INFO] Building jar: C:\workspace\quarkus-k8s-hello\target\quarkus-k8s-hello-1.0.0-SNAPSHOT.jar
[INFO]
[INFO] --- quarkus-maven-plugin:1.3.0.Final:build (default) @ quarkus-k8s-hello ---
[INFO] [org.jboss.threads] JBoss Threads version 3.0.1.Final
[INFO] Initializing dekorate session.
[INFO] Default s2i build generator....
[INFO] Registering s2i handler!
[INFO] Registering s2i handler!
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building thin jar: C:\workspace\quarkus-k8s-hello\target\quarkus-k8s-hello-1.0.0-SNAPSHOT-runner.jar
[INFO] Generating manifests.
[INFO] Processing kubernetes configuration.
[INFO] Processing openshift configuration.
[INFO] Processing s2i configuration.
[INFO] Closing dekorate session.
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 3464ms
[INFO]
[INFO] --- k8s-maven-plugin:0.2.0:build (default-cli) @ quarkus-k8s-hello ---
[INFO] k8s: Running in Kubernetes mode
[INFO] k8s: Building Docker image in Kubernetes mode
[INFO] k8s: Running generator quarkus
[ERROR] k8s: Failed to execute the build [Error while trying to build the image]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.474 s
[INFO] Finished at: 2020-03-19T12:09:17-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.jkube:k8s-maven-plugin:0.2.0:build (default-cli) on project quarkus-k8s-hello: Failed to execute the build: Error while trying to build the image: Unexpected internal error near index 1
[ERROR] \
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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

C:\workspace\quarkus-k8s-hello>

from jkube.

survivant avatar survivant commented on May 24, 2024

but if I build the image using this : docker build -f src/main/docker/Dockerfile.jvm -t quarkus/quarkus-k8s-jvm . it works

from jkube.

rohanKanojia avatar rohanKanojia commented on May 24, 2024

It seems be facing problems at this line:

I think using File.separator to split file path parts seems to be causing problems on windows

from jkube.

survivant avatar survivant commented on May 24, 2024

ya. Windows is using \ instead of /

from jkube.

rohanKanojia avatar rohanKanojia commented on May 24, 2024

Umm, But I think File.separator has different values across different platforms. Why it doesn't seem to be working 😕

from jkube.

rohanKanojia avatar rohanKanojia commented on May 24, 2024

@survivant : I think you can try it now :-)

from jkube.

manusa avatar manusa commented on May 24, 2024

It's an error in integration tests, probably they weren't designed to be run in Windows, we can investigate it later.
Could you please try to compile using this command instead mvn clean install -DskipTests?

from jkube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.