問題1:
[ERROR] Failed to execute goal org.thingsboard:gradle-maven-plugin:1.0.12:invoke (default) on project http: Execution default of goal org.thingsboard:gradle-maven-plugin:1.0.12:invoke failed: Plugin org.thingsboard:gradle-maven-plugin:1.0.12 or one of its dependencies could not be resolved: org.gradle:gradle-tooling-api:jar:7.3.3 was not found in https://hztest.archermind.com/nexus/repository/maven-public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of archermindRepo has elapsed or updates are forced -> [Help 1]
處理方法:到網站 https://mvnrepository.com/repos 手工下載包,然后拷貝到本地maven倉庫。
問題2:
[ERROR] Failed to execute goal org.thingsboard:gradle-maven-plugin:1.0.12:invoke (default) on project http: org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-7.3.3-bin.zip'. -> [Help 1]
處理方法:手工下載gradle-7.3.3-bin.zip,然后再編譯時拷貝到 C:\Users\{系統用戶}\.gradle\wrapper\dists\gradle-7.3.3-bin\{隨機值} ?目錄。格式如 C:\Users\Administrator\.gradle\wrapper\dists\gradle-7.3.3-bin\6a41zxkdtcxs8rphpq6y0069z 。
問題3:
[ERROR] Failed to execute goal io.github.git-commit-id:git-commit-id-maven-plugin:5.0.0:revision (get-the-git-infos) on project application: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]
處理方法:在pom.xml中,注釋插件
? ? ? ? ? ? <!-- <plugin>
? ? ? ? ? ? ? ? <groupId>io.github.git-commit-id</groupId>
? ? ? ? ? ? ? ? <artifactId>git-commit-id-maven-plugin</artifactId>
? ? ? ? ? ? </plugin> -->
?? ??? ??? ?
?? ??? ??? ?
問題4:--- frontend-maven-plugin:1.12.0:yarn (yarn pkg) @ web-ui ---
[INFO] Running 'yarn run pkg' in D:\sources\thingsboard-3.9.1\msa\web-ui
[INFO] yarn run v1.22.22
[INFO] $ tsc && pkg -t node18-linux-x64,node18-win-x64 --out-path ./target ./target/src && node install.js
[INFO] > pkg@5.8.1
[INFO] > Fetching base Node.js binaries to PKG_CACHE_PATH
處理方法:在https://github.com/vercel/pkg-fetch/releases頁面下載對應的文件,然后改名放置到C:\Users\Administrator\.pkg-cache\v3.4目錄中。
問題5:
?
?
[INFO] X [ERROR] EMFILE: too many open files, open 'D:\sources\thingsboard-3.9.1\ui-ngx\node_modules\@mui\icons-material\esm\VideocamOffRounded.js' [plugin angular-compiler]
[INFO]?
[INFO] ? ? node_modules/@angular/build/src/tools/esbuild/javascript-transformer.js:65:21:
[INFO] ? ? ? 65 │ ? ? ? ? const data = await (0, promises_1.readFile)(filename);
[INFO] ? ? ? ? ?? ? ? ? ? ? ? ? ? ? ? ?^
[INFO]?
[INFO] ? ? at async open (node:internal/fs/promises:639:25)
[INFO] ? ? at async readFile (node:internal/fs/promises:1242:14)
[INFO] ? ? at async JavaScriptTransformer.transformFile (D:\sources\thingsboard-3.9.1\ui-ngx\node_modules\@angular\build\src\tools\esbuild\javascript-transformer.js:65:22)
[INFO] ? ? at async D:\sources\thingsboard-3.9.1\ui-ngx\node_modules\@angular\build\src\tools\esbuild\angular\compiler-plugin.js:345:38
[INFO] ? ? at async D:\sources\thingsboard-3.9.1\ui-ngx\node_modules\@angular\build\src\tools\esbuild\load-result-cache.js:21:22
[INFO] ? ? at async requestCallbacks.on-load (D:\sources\thingsboard-3.9.1\ui-ngx\node_modules\esbuild\lib\main.js:1275:22)
[INFO] ? ? at async handleRequest (D:\sources\thingsboard-3.9.1\ui-ngx\node_modules\esbuild\lib\main.js:647:11)
[INFO]?
[INFO] ? The plugin "angular-compiler" was triggered by this import
[INFO]?
[INFO] ? ? node_modules/@mui/icons-material/esm/index.js:10053:46:
[INFO] ? ? ? 10053 │ ... { default as VideocamOffRounded } from './VideocamOffRounded';
[INFO] ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?~~~~~~~~~~~~~~~~~~~~~~
[INFO]?
[INFO]?
[INFO] X [ERROR] EMFILE: too many open files, open 'D:\sources\thingsboard-3.9.1\ui-ngx\node_modules\@mui\icons-material\esm\ViewAgendaOutlined.js' [plugin angular-compiler]
[INFO]?
處理方法:關掉IDEA,多試幾次即可。
?