Git Product home page Git Product logo

Comments (8)

alexlungu10 avatar alexlungu10 commented on July 30, 2024

some logs:
Caused by: java.lang.IllegalArgumentException: Invalid relative name: META-INF\ap4k\kubernetes.json
at com.sun.tools.javac.file.JavacFileManager.getFileForOutput(JavacFileManager.java:737)
at com.sun.tools.javac.processing.JavacFiler.createResource(JavacFiler.java:429)
at io.ap4k.processor.AbstractAnnotationProcessor.write(AbstractAnnotationProcessor.java:152)
at io.ap4k.processor.AbstractAnnotationProcessor.lambda$write$0(AbstractAnnotationProcessor.java:96)
at io.ap4k.processor.AbstractAnnotationProcessor.write(AbstractAnnotationProcessor.java:96)
at io.ap4k.Session.onClose(Session.java:82)
at io.ap4k.kubernetes.processor.KubernetesAnnotationProcessor.process(KubernetesAnnotationProcessor.java:51)

from dekorate.

alexlungu10 avatar alexlungu10 commented on July 30, 2024

In a Maven example, if I run clean install -Dap4k.build=true -f pom.xml, I have the same issue.
But if I run the build from the IDE: Ctrl + B, the deployment scripts are generated(Only on Maven Project). I want to generate the deployment files also for Gradle. Thanks

from dekorate.

iocanel avatar iocanel commented on July 30, 2024

@alexlungu10: I assume that you have the same issue if you try to build the ap4k examples, right?

from dekorate.

alexlungu10 avatar alexlungu10 commented on July 30, 2024

Hello Iocanel, and thank you for your response, yes, that's true. One example is working with Maven (if I press the build button from IDE only-IntelliJ by Jetbrains). But I need a working example for Gradle with ap4k- annotations. I want to deploy that generated file on Kubernetes. Thanks !

from dekorate.

iocanel avatar iocanel commented on July 30, 2024

@alexlungu10: I managed to reproduce the issue. It seems to be windows specific.
I will have to deal with it in both ap4k and sundrio and release both. I'll try to do that over the weekend.

from dekorate.

iocanel avatar iocanel commented on July 30, 2024

Released 0.1.3 which contains the fix.
I will close the issue, but please do reopen if anything has slipped my attention.

from dekorate.

alexlungu10 avatar alexlungu10 commented on July 30, 2024

@iocanel , Thank you for your fix . I tested it in my project and is working fine. If you want I can commit my demo Spring-Boot Gradle project in the example area for Kubernetes annotations. Maybe others will find useful in the future :)

from dekorate.

iocanel avatar iocanel commented on July 30, 2024

from dekorate.

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.