我是JHipster的新手,并且在未更改代码的情况下,在新生成的JHipster项目上收到错误“ org.apiguardian:apiguardian-api:1.1.0的依赖项收敛错误”。我将在注释中发布.yo-rc.json文件的内容,因为Stack Overflow不喜欢纯代码。关于此错误,没有太多要说的了
答案 0 :(得分:0)
我复制了您的.yo-rc.json
并重新格式化:
{
"generator-jhipster": {
"promptValues": {
"packageName": "helloworld",
"nativeLanguage": "en"
},
"jhipsterVersion": "6.8.0",
"applicationType": "monolith",
"baseName": "jhipster",
"packageName": "helloworld",
"packageFolder": "helloworld",
"serverPort": "8080",
"authenticationType": "jwt",
"cacheProvider": "ehcache",
"enableHibernateCache": true,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "mariadb",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSwaggerCodegen": true,
"jwtSecretKey": "YjM2NjEwYjBlNTE4NWVjZmFmNTIzZDI2ZmIxM2IyYWJhZTQ3YTJiZmFmNzgyMWQ4MTBmMTZlN2Q4YTEyOWNjNWM1YTJjNTQ2MDYzMWUyZWU0YTUwNWU3M2I4MzQ3ZTFkMDE5ZDcwYTYyNjViMDMwYzE4ZGY0OTcwMmZlMDE0ZjU=",
"embeddableLaunchScript": false,
"useSass": true,
"clientPackageManager": "npm",
"clientFramework": "angularX",
"clientTheme": "none",
"clientThemeVariant": "",
"creationTimestamp": 1587930109196,
"testFrameworks": ["protractor"],
"jhiPrefix": "jhi",
"entitySuffix": "",
"dtoSuffix": "DTO",
"otherModules": [
{
"name": "generator-jhipster-vuejs2",
"version": "1.1.12"
}
],
"enableTranslation": true,
"nativeLanguage": "en",
"languages": ["en", "ru"],
"blueprints": []
}
}
然后,我安装了最新版本的JHipster:
npm i -g generator-jhipster
./mvnw
生成完毕后我就运行了,对我来说一切正常。
----------------------------------------------------------
Application 'jhipster' is running! Access URLs:
Local: http://localhost:8080/
External: http://127.0.0.1:8080/
Profile(s): [dev, swagger]
----------------------------------------------------------
我怀疑您的问题是您使用的是generator-jhipster-vue2,它似乎是JHipster的分支。 JHipster开发人员不支持它。
如果要在Vue.js中使用JHipster,请参见jhipster-vuejs。