Git Product home page Git Product logo

cumulocity-microservice-archetype's Issues

Build Failure: Text must not be null or empty

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.471 s
[INFO] Finished at: 2023-12-13T18:02:05+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project standalone-pom: Text must not be null or empty โ†’ [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] MojoFailureException - Apache Maven - Apache Software Foundation

spring dev tools not working anymore

With new version 10.15, spring dev tools not working anymore:

Exception:
Caused by: java.lang.IllegalAccessError: class com.cumulocity.microservice.api.CumulocityClientFeature$TenantPlatformConfig$$EnhancerBySpringCGLIB$$23091115_2 cannot access its superclass com.cumulocity.microservice.api.CumulocityClientFeature$TenantPlatformConfig (com.cumulocity.microservice.api.CumulocityClientFeature$TenantPlatformConfig$$EnhancerBySpringCGLIB$$23091115_2 is in unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader @c263e7e; com.cumulocity.microservice.api.CumulocityClientFeature$TenantPlatformConfig is in unnamed module of loader 'app')

production spring profile

Hello!

I am using a run configuration in Eclipse to package a prod version of my microservice created using the microservice archetype. These are the steps I took:

  1. Created Maven profiles with the <spring.profiles.active>prod</spring.profiles.active> property
  2. Create a Maven run configuration passing the spring.profiles.active parameter as prod
  3. Set [email protected]@ in application.properties

But doing only this, the build was complaining about the application name, which seemed to be missing. Then I included the following parameters in application-prod.properties:

application.name
application.key
C8Y.bootstrap.tenant
C8Y.baseURL
C8Y.microservice.isolation

This way it worked and my question is: Is this a proper way of configuring the profiles?

Thanks!

:generate does not complete

Please see the log below.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  32.263 s
[INFO] Finished at: 2022-06-30T11:07:25+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project cumulocity-microservice-archetype: org.apache.maven.archetype.exception.InvalidPackaging: Unable to add module to the current project as it is not of packaging type 'pom' -> [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

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.