jhipster / generator-jhipster-module

DEPRECATED: use https://github.com/jhipster/generator-jhipster instead
Apache License 2.0
43 stars 29 forks source link

Problems with module with post entity subgenerator #104

Closed aanno closed 4 years ago

aanno commented 4 years ago

I've used the generator and generated a jhipster module with a post entity subgenerator. You could see it here (Branch 'feature/raw-after-generation').

In (another) jhipster project, I try to use it. My jhipster module is registered, i.e.

$ cat .yo-rc.json
...
    "otherModules": [
      {
        "name": "generator-jhipster-module-aanno",
        "version": "0.0.0"
      },
...

and

$ cat package.json
...
  "devDependencies": {
    "generator-jhipster-module-aanno": "0.0.0",
...

In this project using the 'app' generator works:

# I know this is _not_ how the generator should be started, but it is just to show that it is there...
jhipster-test]$ yo jhipster-module-aanno
? Please put something (hello world!) 

However, the 'entity' subgenerator seems not wot work, i.e.

jhipster-test]$ jhipster --with-entities --prefer-local 
INFO! Using JHipster version installed globally
INFO! Running default command
INFO! Executing jhipster:app
...
Running post run module hooks

Generator jhipster-module-aanno:entity isn't registered.

This is strange as

jhipster-test]$ yo --generators --local-only
Available Generators:

  jhipster
    aws
    aws-containers
    azure-app-service
    azure-spring-cloud
    ci-cd
    client
    cloudfoundry
    common
    docker-compose
    entity
    entity-client
    entity-i18n
    entity-server
    export-jdl
    gae
    heroku
    info
    kubernetes
    kubernetes-helm
    kubernetes-knative
    languages
    openapi-client
    openshift
    server
    spring-controller
    spring-service
    upgrade
    upgrade-config
  jhipster-module-aanno
    entity

mentions the subgenerator jhipster-module-aanno:entity.

Well, I'm stuck here. Any idea would be appreciated.

mshima commented 4 years ago

Should be fixed by https://github.com/jhipster/generator-jhipster/issues/11747