错误:AEM Cloud Manager中的BUILD_MAVEN_PACKAGE_ERROR
每当您在Adobe Experience Manager Cloud Manager中遇到Build_Maven_Package_Error
时,都归因于代码失败。 通过使用npm (节点包管理器)更新失败模块中的节点版本可以解决此问题。
描述 description
环境
Adobe Experience Manager Cloud Manager
问题/症状
如何解决AEM Cloud Manager中的错误 — Build_Maven_Package_Error
?
19:19:53,214 [ main] [ INFO] ------------------------------------------------------------------------
19:19:53,215 [ main] [ INFO] Reactor Summary for customer_name XXXX.XXX.XXXXXXX.XXXXXXXXXX:{}:
19:19:53,215 [ main] [ INFO]
19:19:53,216 [ main] [ INFO] customer_name ...................................... SUCCESS [ 3.600 s]
19:19:53,217 [ main] [ INFO] customer_name - Core ............................... SUCCESS [ 17.855 s]
19:19:53,218 [ main] [ INFO] customer_name - UI Frontend ........................ FAILURE [ 01:16 min]
19:19:53,218 [ main] [ INFO] customer_name – UI React ........................... SKIPPED
19:19:53,218 [ main] [ INFO] customer_name - UI apps ............................ SKIPPED
19:19:53,219 [ main] [ INFO] customer_name - UI content ......................... SKIPPED
19:19:53,219 [ main] [ INFO] customer_name Project Package ...................... SKIPPED
19:19:53,219 [ main] [ INFO] customer_name - Dispatcher ......................... SKIPPED
19:19:53,220 [ main] [ INFO] ------------------------------------------------------------------------
19:19:53,220 [ main] [ INFO] BUILD FAILURE
19:19:53,220 [ main] [ INFO] ------------------------------------------------------------------------
19:19:53,222 [ main] [ INFO] Total time: 01:41 min
19:19:53,224 [ main] [ INFO] Finished at: 2023-02-07T19:19:53Z
19:19:53,224 [ main] [ INFO] ------------------------------------------------------------------------
19:19:53,226 [ main] [ ERROR] Failed to execute goal com.github.xxxxx:frontend-maven-plugin:1.7.6:npm (npm run prod) on project com.xyz.ui.frontend: Failed to run task: 'npm run prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) ->[ Help 1]
19:19:53,227 [ main] [ ERROR]
P2票证中出现 错误:
``` Pipeline Name: Production Pipeline
Pipeline Status: FAILED
Failure Caused By: CUSTOMER
Failed Step: build
Error Message: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
```## 解决方法 resolution此故障是由代码问题导致的,需要通过使用npm更新失败模块中的节点版本来解决。 要进行此更改,请执行以下步骤:1) 查找Reactor pom.xml
中使用的节点版本。 以下示例= 16.14.0 pom.xml
:
<configuration>
<nodeVersion>v16.14.0</nodeVersion>.
<npmVersion>8.3.1</npmVersion>
<configuration>
-
将此节点版本作为 devDependencies 添加到未能生成的模块的
package.json
文件中。在上例中,它是UI前端。之前 -
package.json
:"devDependencies": { "@babel/core": "7.0.0", "@babel/plugin-proposal-class-properties": "7.3.3", "@babel/plugin-proposal-object-rest-spread": "7.3.2", "@material/tab-bar": "12.0.0", },
之后 -
package.json
:"devDependencies": { "@types/node": "16.14.0", THIS LINE WAS ADDED "@babel/core": "7.0.0", "@babel/plugin-proposal-class-properties": "7.3.3", "@babel/plugin-proposal-object-rest-spread": "7.3.2", "@material/tab-bar": "12.0.0", }, ```</u>
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f