Jhipster PROD构建衰竭Cloudfoundry错误一起未找到

问题描述 投票:0回答:1

Jhipster督促轮廓构建是越来越失败的执行给予拒绝访问错误

纱安装

它已经在开发早期的个人资料建立产生.war。在上传的.war通过子发生器应用状态cloudfoundry运行。但是,应用程序不能访问。

错误有关访问根:

Sorry, an error has occurred.
Status: Not Found (Not Found)
Message: Not Found

Maven构建错误:

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的配置文件:

。呦RC。 Ĵ儿子

{
  "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位enter image description here

[更新1]更新POM文件有详细的标志和堆栈跟踪后它提示

   [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它与访问权限没有问题

java maven jhipster cloudfoundry yarnpkg
1个回答
0
投票

我所面临的同样的问题。尝试改变node.versionyarn.version既在你的pom.xml较低版本(可能是,这是生成项目时,在计算机上安装的版本)。我不是你约了什么错误,但是这为我工作。希望这将有助于

© www.soinside.com 2019 - 2024. All rights reserved.