这是indexloc提供的服务,不要输入任何密码
Skip to content

App generation issues for monolith with jHipster 7.9.0 on Linux #19294

@terrytompkins

Description

@terrytompkins
Overview of the issue

Generating a monolith with the jhipster command using default options and selecting React for the framework for the client fails to complete code generation without manual intervention. The operating system tested is Mint Linux. The failure is caused by two issues:

  1. default permissions for the generated npnw and mvnw scripts do not allow execution. Error is:
    "Error executing './npmw install', execute it yourself. (Command failed with EACCES: ./npmw install spawn ./npmw EACCES)".
    The workaround for this is to fix permissions with:
    chmod u+x npnw
    chmod u+x mvnw
  2. The other error which occurs after going through the prompts from the jhipster command is an error about a missing command called "rimraf". The issue can be avoided before code generation with the jhipster command by running "npm install -g rimraf". The error:

    rimraf target/classes/static/app/{src,target/}
    bash: rimraf: command not found

    • An error occured while running jhipster:client#end
      ERROR! Command failed with exit code 127: npm run clean-www
      Error: Command failed with exit code 127: npm run clean-www
Motivation for or Use Case

The jhipster command previously ran without issue and generated an application without intervening to fix permissions on generated scripts and installing another npm package needed by the generator.

Reproduce the error

As described above, run the jhipster command in a new directory from the command line shell (tested with Mint Linux, but would likely occur on any unix-like system). After running the jhipster command, select default values for the prompts presented by jhipster. Errors then occur regarding missing "rimraf", and script permissions will prevent npmw and mvnw from executing.

Related issues

I have never seen this before jhipster v7.9.0

Suggest a Fix

As described above, the issue can be manually fixed by installing the rimraf npm package and manually fixing the permissions on npmw and mvnw as described above.

JHipster Version(s)

7.9.0

JHipster configuration

{
"generator-jhipster": {
"applicationType": "monolith",
"authenticationType": "jwt",
"baseName": "helloang",
"blueprints": [],
"buildTool": "maven",
"cacheProvider": "ehcache",
"clientFramework": "angularX",
"clientPackageManager": "npm",
"clientTheme": "none",
"clientThemeVariant": "",
"creationTimestamp": 1659321487311,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"devServerPort": 4200,
"dtoSuffix": "DTO",
"enableGradleEnterprise": false,
"enableHibernateCache": true,
"enableSwaggerCodegen": false,
"enableTranslation": true,
"entitySuffix": "",
"jhiPrefix": "jhi",
"jhipsterVersion": "7.9.0",
"jwtSecretKey": "OGExYmE2YzI1YTVhYTNkYzZkMTA4YmNlZDNiZjgxODVlZTJlMTc1NDNjYTYzYjg5MTE5MWY1NGY1M2NlOWQ2N2FmOTM1MmIzNTM0ODY1YWQ5NmUxY2FhNzEzZWQ3MzJl=",
"languages": ["en", "by", "bn", "bg"],
"messageBroker": false,
"microfrontend": false,
"microfrontends": [],
"nativeLanguage": "en",
"otherModules": [],
"packageName": "com.mycompany.helloang",
"pages": [],
"prodDatabaseType": "postgresql",
"reactive": false,
"searchEngine": false,
"serverPort": "8080",
"serverSideOptions": [],
"serviceDiscoveryType": "no",
"skipCheckLengthOfIdentifier": false,
"skipFakeData": false,
"skipUserManagement": false,
"testFrameworks": [],
"websocket": false,
"withAdminUi": true
}
}

Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System

Mint Linux 20.3

  • Checking this box is mandatory (this is just to show you read everything)

Metadata

Metadata

Assignees

Labels

$$ bug-bounty $$https://www.jhipster.tech/bug-bounties/$300https://www.jhipster.tech/bug-bounties/area: bug 🐛

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions