Java小白…阿飞 2022-01-18 15:10 采纳率: 0%
浏览 119

使用maven打war包时出现的,包打成功后无法访问

[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.datagear:datagear-web:war:2.11.0
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ line 236, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.datagear:datagear:2.11.0, C:\Users\Administrator\Desktop\武祥飞\可视化系统\datagear-master\pom.xml, line 78, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ org.datagear:datagear:2.11.0, C:\Users\Administrator\Desktop\武祥飞\可视化系统\datagear-master\pom.xml, line 86, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 134, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ line 180, column 12
[WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 145, column 12
[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]

  • 写回答

1条回答 默认 最新

  • CSDN专家-微编程 2022-01-18 15:53
    关注

    你的pom.xml里面spring-boot-maven-plugin给他指定一个合适的版本,比如

    <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>2.2.6.RELEASE</version>
    </plugin>
    

    然后刷新maven,等待依赖下载完毕,点击clean,然后再进行package

    评论

报告相同问题?

问题事件

  • 创建了问题 1月18日

悬赏问题

  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64
  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示
  • ¥15 扫描项目中发现AndroidOS.Agent、Android/SmsThief.LI!tr
  • ¥15 怀疑手机被监控,请问怎么解决和防止
  • ¥15 Qt下使用tcp获取数据的详细操作