Fout: BUILD_MAVEN_PACKAGE_ERROR in AEM Cloud Manager

Wanneer u een Build_Maven_Package_Error in Adobe Experience Manager Cloud Manager tegenkomt, is dit te wijten aan een codefout. Dit kan worden opgelost door de knoopversie in een ontbroken module bij te werken gebruikend npm (de Manager van het Pakket van de Knoop).

Beschrijving description

Milieu

Adobe Experience Manager Cloud Manager

Uitgave/Symptomen

Hoe kan ik de fout oplossen - Build_Maven_Package_Error in AEM Cloud Manager?

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]

FOUT in P2 kaartje :

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)

Resolutie resolution

Deze fout is toe te schrijven aan een codekwestie die door de knoopversie in een ontbroken module bij te werken moet worden opgelost gebruikend npm. Ga als volgt te werk om deze wijziging aan te brengen:

  1. Zoek de knooppuntversie die in reactor pom.xml wordt gebruikt. Onder voorbeeld = 16.14.0 pom.xml:

    code language-none
    <configuration>
            <nodeVersion>v16.14.0</nodeVersion>.
            <npmVersion>8.3.1</npmVersion>
        <configuration>
    
  2. Voeg deze knoopversie als devDependency in het package.json dossier van de module toe die er niet in slaagde om te bouwen. In het bovenstaande voorbeeld is dit UI Front.

    VOOR - package.json :

    code language-none
    "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",
        },
    

    NA - package.json :

    code language-none
    "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",
        },
    
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f