1. 無法加載主類
error:
原因: target目錄不存在或?yàn)榭铡?br>解決方案: 重新打maven包;選中項(xiàng)目右擊 — Build Module ‘xxxx’ — 生成target文件即可;重新運(yùn)行項(xiàng)目,不會(huì)報(bào)錯(cuò)了;
2. Some problems were encountered while building the effective model for com.ectit:rmt-service:jar:
【error】:
Some problems were encountered while building the effective model for com.ectit:rmt-service:jar:1.0-SNAPSHOT
‘build.plugins.plugin.version’ for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 140, column 21
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.
3.打包報(bào)錯(cuò)
錯(cuò)誤信息: Java: 找不到符號(hào)
解決方案:
- 檢查jdk配置是否正確
- 考慮項(xiàng)目編碼設(shè)置不對,在如下圖的位置選擇utf-8的編碼格式
3. 將父級(jí)的包install一下再打包
4. Failed to execute goal org.apache.maven.plugins
【error】
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project rmt:
Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -
DaltDeploymentRepository=id::layout::url parameter -> [Help 1]文章來源:http://www.zghlxwxcb.cn/news/detail-638951.html
解決方案: 先將父級(jí)項(xiàng)目 install 一下。文章來源地址http://www.zghlxwxcb.cn/news/detail-638951.html
到了這里,關(guān)于【error】maven打包報(bào)錯(cuò),F(xiàn)ailed to execute goal org.apache.maven.plugins,idea報(bào)錯(cuò)找不到符號(hào)的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!