下载源码后,使用源码的方式部署出现错误,
具体步骤:
cd core
mvn clean package -Pstandalone -U -Dmaven.test.skip=true
hp@hp-HP-290-G3-Small-Form-Factor-PC:/lib/jvm/dataease/core$ mvn clean package -Pstandalone -U -Dmaven.test.skip=true
[INFO] Scanning for projects…
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.dataease:core:pom:2.10.17
[WARNING] ‘version’ contains an expression but should be a constant. @ io.dataease:dataease:${dataease.version}, /usr/lib/jvm/dataease/pom.xml, line 8, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] core [pom]
[INFO] core-frontend [jar]
[INFO] core-backend [jar]
[INFO]
[INFO] --------------------------< io.dataease:core >--------------------------
[INFO] Building core 2.10.17 [1/3]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] — clean:3.3.2:clean (default-clean) @ core —
[INFO]
[INFO] — flatten:1.3.0:clean (flatten-clean) @ core —
[INFO] Deleting /usr/lib/jvm/dataease/core/.flattened-pom.xml
[INFO]
[INFO] — flatten:1.3.0:flatten (flatten) @ core —
[INFO] Generating flattened POM of project io.dataease:core:pom:2.10.17…
[INFO]
[INFO] ---------------------< io.dataease:core-frontend >----------------------
[INFO] Building core-frontend 2.10.17 [2/3]
[INFO] from core-frontend/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] — clean:3.3.2:clean (default-clean) @ core-frontend —
[INFO] Deleting /usr/lib/jvm/dataease/core/core-frontend/node_modules
[INFO] Deleting /usr/lib/jvm/dataease/core/core-frontend (includes = [*-lock.json], excludes = [])
[INFO]
[INFO] — flatten:1.3.0:clean (flatten-clean) @ core-frontend —
[INFO]
[INFO] — frontend:1.9.1:install-node-and-npm (install node and npm) @ core-frontend —
[INFO] Node v23.11.0 is already installed.
[INFO] NPM 10.9.2 is already installed.
[INFO]
[INFO] — frontend:1.9.1:npm (npm install) @ core-frontend —
[INFO] Running ‘npm install’ in /usr/lib/jvm/dataease/core/core-frontend
[INFO] npm warn deprecated source-map-url@0.4.1: See GitHub - lydell/source-map-url: [DEPRECATED] Tools for working with sourceMappingURL comments.
[INFO] npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
[INFO] npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
[INFO] npm warn deprecated urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.
[INFO] npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require(‘node:util’).isDeepStrictEqual instead.
[INFO] npm warn deprecated @humanwhocodes/config-array@0.5.0: Use @eslint/config-array instead
[INFO] npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
[INFO] npm warn deprecated resolve-url@0.2.1: GitHub - lydell/resolve-url: [DEPRECATED] Like Node.js’ `path.resolve`/`url.resolve` for the browser.
[INFO] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
[INFO] npm warn deprecated source-map-resolve@0.5.3: See GitHub - lydell/source-map-resolve: [DEPRECATED] Resolve the source map and/or sources for a generated file.
[INFO] npm warn deprecated yaeti@0.0.6: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
[INFO] npm warn deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
[INFO] npm warn deprecated @humanwhocodes/object-schema@1.2.1: Use @eslint/object-schema instead
[INFO] npm warn deprecated fstream@1.0.12: This package is no longer supported.
[INFO] npm warn deprecated viewport-mercator-project@6.2.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
[INFO] npm warn deprecated eslint@7.32.0: This version is no longer supported. Please see Version Support - ESLint - Pluggable JavaScript Linter for other options.
[INFO] npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[INFO]
[INFO] added 1247 packages in 1m
[INFO]
[INFO] 230 packages are looking for funding
[INFO] run npm fund for details
[INFO]
[INFO] — frontend:1.9.1:npm (npm run build) @ core-frontend —
[INFO] Running ‘npm run build:distributed’ in /usr/lib/jvm/dataease/core/core-frontend
[INFO]
[INFO] > dataease@0.0.0 build:distributed
[INFO] > NODE_OPTIONS=–max_old_space_size=5020 vite build --mode distributed && npm run build:flush
[INFO]
[INFO] vite v4.5.14 building for distributed…
[INFO] transforming…
[INFO]
[INFO] WARN [plugin:vite-plugin-eslint]
[INFO] /usr/lib/jvm/dataease/core/core-frontend/src/pages/panel/main.ts
[INFO] 3:7 warning ‘dom’ is assigned a value but never used @typescript-eslint/no-unused-vars
[INFO]
[INFO]
1 problem (0 errors, 1 warning)
[INFO]
[INFO]
[INFO]
[INFO] WARN [plugin:vite-plugin-eslint]
[INFO] /usr/lib/jvm/dataease/core/core-frontend/src/websocket/index.ts
[INFO] 88:13 warning ‘timeInterval’ is assigned a value but never used @typescript-eslint/no-unused-vars
[INFO]
[INFO]
1 problem (0 errors, 1 warning)
[INFO]
[INFO]
[INFO]
[INFO] WARN [plugin:vite-plugin-eslint]
[INFO] /usr/lib/jvm/dataease/core/core-frontend/src/views/dashboard/index.vue
[INFO] 37:8 warning ‘SqlAssistant’ is defined but never used @typescript-eslint/no-unused-vars
[INFO]
[INFO]
1 problem (0 errors, 1 warning)
[INFO]
[INFO]
[INFO]
[INFO] WARN [plugin:vite-plugin-eslint]
[INFO] /usr/lib/jvm/dataease/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue
[INFO] 22:8 warning ‘DvPreview’ is defined but never used @typescript-eslint/no-unused-vars
[INFO] 262:7 warning ‘handlePrint’ is assigned a value but never used @typescript-eslint/no-unused-vars
[INFO]
[INFO]
2 problems (0 errors, 2 warnings)
[INFO]
[INFO]
[INFO] ✓ 99 modules transformed.
[INFO] ✓ built in 8.67s
[INFO]
[INFO] ERROR [vite:esbuild] Transform failed with 1 error:
[INFO] /usr/lib/jvm/dataease/core/core-frontend/src/locales/zh-CN.ts:1:0: ERROR: Unexpected “\x00”
[INFO] file: /usr/lib/jvm/dataease/core/core-frontend/src/locales/zh-CN.ts:1:0
[INFO]
[INFO] Unexpected “\x00”
[INFO] 1 | export default {
[INFO] | ^
[INFO] 2 | common: {
[INFO] 3 | display_formats: ‘展示形式’,
[INFO]
[INFO]
[INFO]
[INFO] ERROR error during build:
[INFO] Error: Transform failed with 1 error:
[INFO] /usr/lib/jvm/dataease/core/core-frontend/src/locales/zh-CN.ts:1:0: ERROR: Unexpected “\x00”
[INFO] at failureErrorWithLog (/usr/lib/jvm/dataease/core/core-frontend/node_modules/esbuild/lib/main.js:1649:15)
[INFO] at /usr/lib/jvm/dataease/core/core-frontend/node_modules/esbuild/lib/main.js:847:29
[INFO] at responseCallbacks. (/usr/lib/jvm/dataease/core/core-frontend/node_modules/esbuild/lib/main.js:703:9)
[INFO] at handleIncomingPacket (/usr/lib/jvm/dataease/core/core-frontend/node_modules/esbuild/lib/main.js:762:9)
[INFO] at Socket.readFromStdout (/usr/lib/jvm/dataease/core/core-frontend/node_modules/esbuild/lib/main.js:679:7)
[INFO] at Socket.emit (node:events:507:28)
[INFO] at addChunk (node:internal/streams/readable:559:12)
[INFO] at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
[INFO] at Readable.push (node:internal/streams/readable:390:5)
[INFO] at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for core 2.10.17:
[INFO]
[INFO] core … SUCCESS [ 1.504 s]
[INFO] core-frontend … FAILURE [01:12 min]
[INFO] core-backend … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:15 min
[INFO] Finished at: 2025-12-11T18:32:37+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.9.1:npm (npm run build) on project core-frontend: Failed to run task: ‘npm run build:distributed’ failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoFailureException - Apache Maven - Apache Software Foundation
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :core-frontend