thingsboard3.9.1编译问题处理

问题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,多试几次即可。
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值