首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能找到Jhipster构建失败和Cloudfoundry错误

未能找到Jhipster构建失败和Cloudfoundry错误
EN

Stack Overflow用户
提问于 2018-08-04 11:40:40
回答 1查看 246关注 0票数 0

. access =‘access 6’>生成失败,从而导致在执行

纱线安装

它在早期用开发概要文件生成了.war。在通过子生成器将.war上传到cloudfoundry时,应用程序状态正在运行。但是,应用程序无法访问。

访问根时出错:

代码语言:javascript
复制
Sorry, an error has occurred.
Status: Not Found (Not Found)
Message: Not Found

Maven构建错误:

代码语言:javascript
复制
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\codelab\a2z\dhulai>mvnw -Pprod -DskipTests
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dhulai 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:1.5.13.RELEASE:run (default-cli) > test-compile @ dhulai >>>
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (default-resources) @ dhulai ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 23 resources
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ dhulai ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 23 resources
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ dhulai ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (docker-resources) @ dhulai ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-tests) @ dhulai ---
[INFO] argLine set to -javaagent:C:\\Users\\patelri\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.9\\org.jacoco.agent-0.7.9-runtime.jar=destfile=C:\\codelab\\
a2z\\dhulai\\target\\test-results\\coverage\\jacoco\\jacoco.exec -Djava.security.egd=file:/dev/./urandom -Xmx256m
[INFO]
[INFO] --- git-commit-id-plugin:2.2.4:revision (default) @ dhulai ---
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.13.RELEASE:build-info (default) @ dhulai ---
[INFO]
[INFO] --- frontend-maven-plugin:1.6:yarn (yarn install) @ dhulai ---
[INFO] Running 'yarn install' in C:\codelab\a2z\dhulai
[ERROR] Access is denied.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.581 s
[INFO] Finished at: 2018-08-04T16:50:28+05:30
[INFO] Final Memory: 35M/422M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (yarn install) on project dhulai: Failed to run task: 'yarn install' failed. org.ap
ache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]

Jhipster的配置文件:

.yo-rc.json

代码语言:javascript
复制
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.np.dhulai",
      "nativeLanguage": "en"
    },
    "jhipsterVersion": "4.14.4",
    "baseName": "dhulai",
    "packageName": "com.np.dhulai",
    "packageFolder": "com/np/dhulai",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "cacheProvider": "ehcache",
    "enableHibernateCache": true,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "postgresql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "enableSwaggerCodegen": false,
    "jwtSecretKey": "DELETED",
    "clientFramework": "angularX",
    "useSass": false,
    "clientPackageManager": "yarn",
    "applicationType": "monolith",
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "enableTranslation": true,
    "nativeLanguage": "en",
    "languages": [
      "en",
      "nl"
    ]
  }
}

其他详细信息操作系统: Windows 10企业64位

更新1更新的pom文件,使其具有详细的标志和堆栈跟踪帖子

代码语言:javascript
复制
   [INFO] --- frontend-maven-plugin:1.6:install-node-and-yarn (install node and yarn) @ dhulai ---
[INFO] Installing node version v10.4.0
[INFO] Copying node binary from C:\Users\patelri\.m2\repository\com\github\eirslett\node\10.4.0\node-10.4.0-win-x64.exe to C:\codelab\a2z\dhulai\node\node.exe
[INFO] Installed node locally.
[INFO] Installing Yarn version v1.9.4
[INFO] Downloading https://github.com/yarnpkg/yarn/releases/download/v1.9.4/yarn-v1.9.4.tar.gz to C:\Users\patelri\.m2\repository\com\github\eirslett\yarn\1.9.4\yarn
-1.9.4.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
Aug 04, 2018 6:21:53 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: has_recent_activity=1; path=/; expires=Sat, 04 Aug 2018 13:51:55 -0000". Invalid 'expires' attribute: Sat, 04 Aug 2018 1
3:51:55 -0000
Aug 04, 2018 6:21:53 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Wed, 04 Aug 2038 12:51:55 -0000; secure; HttpOnly". Invalid 'expires'
attribute: Wed, 04 Aug 2038 12:51:55 -0000
[INFO] Unpacking C:\Users\patelri\.m2\repository\com\github\eirslett\yarn\1.9.4\yarn-1.9.4.tar.gz into C:\codelab\a2z\dhulai\node\yarn
[INFO] Installed Yarn locally.
[INFO] 
[INFO] --- frontend-maven-plugin:1.6:yarn (webpack build dev) @ dhulai ---
[INFO] yarn not inheriting proxy config from Maven
[INFO] Running 'yarn run webpack:build' in C:\codelab\a2z\dhulai
[ERROR] Access is denied.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 49.223 s
[INFO] Finished at: 2018-08-04T18:22:33+05:30
[INFO] Final Memory: 39M/330M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (webpack build dev) on project dhulai: Failed to run task: 'yarn run webpack:build'
 failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

但是,如果我独立执行yarn run webpack:build,则访问权限没有问题。

EN

回答 1

Stack Overflow用户

发布于 2019-02-06 22:51:41

我也面临过同样的问题。尝试将node.versionyarn.version都更改为pom.xml中的较低版本(可能是生成项目时安装在计算机上的版本)。我不是你的错,但这对我有用。希望它能帮上忙

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51685214

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档