首页 > 其他分享 >Cannot access defaults field of Properties

Cannot access defaults field of Properties

时间:2023-04-12 15:44:42浏览次数:34  
标签:maven war access field Cannot Properties

webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)如果遇到IDEA 在运行maven打war的时候,提示报错:

Cannot access defaults field of Properties

解决办法是要在pro.xml文件下添加以下插件,才可以打包war包

打包jar包不添加也是没有问题的

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>3.2.0</version>
            </plugin>
    </plugins>
</build>

 



标签:maven,war,access,field,Cannot,Properties
From: https://www.cnblogs.com/yzx-sir/p/17310044.html

相关文章

  • 微信小程序开发——getLocation:fail the api need to be declared in the requiredPr
    getLocation:failtheapineedtobedeclaredintherequiredPrivateInfosfieldinapp.json/ext.json异常解析:app.json中没配置requiredPrivateInfos参数,按下边示例代码配置即可。示例代码:{..."permission":{"scope.userLocation":{"desc&qu......
  • 解决NewBing报错【Sorry, looks like your network settings are preventing access t
    开全局,使用浏览器插件ProxySwitchyOmega进行代理1、x2ray软件配置2、ProxySwitchyOmega配置将以下规则加入配置:*.msftconnecttest.com+proxy*.1drv+proxy*.microsoft+proxy*.aadrm.com+proxy*.acompli.com+proxy*.acompli.net+proxy*.aka.ms+proxy*.aka......
  • Andorid NoSuchFieldError: No static field D of type I in class Lx/x/x/R$layout解
    一、介绍我们在开发过程中,会出现各种问题,包括布局资源的问题,但是这种布局几乎是和资源有关,出现这种情况有以下三种1.资源冲突资源冲突,最右可能造成的原因是两个不同的module拥有相同的layout名字,这就会导致在打包的时候,如果别的module优先被处理,占据了有利先机,而你的资源可能被别人......
  • 使用浏览器api操作本地文件 File System Access API
    学习新的浏览器api:showOpenFilePicker,showDirectoryPicker,getDirectoryHandle,getFileHandle,removeEntry之前文件上传使用的是:<inputtype="file">今天看到直接使用浏览器api即可实现文件读取,文件删除,写入等,局限性:需要https环境,如果是本地localhost不受此限制。不能在ifr......
  • Docker容器执行su命令报错su: cannot open session: Permission denied 解决方法
    1、先检查su命令权限是否正确,执行如下命令ll/etc/pam.d/su如果现实如图,则说明权限方面没问题,若您的执行结果与我的不一样,需调整权限。[root@blog-tag-gg~]#ll/etc/pam.d/su-rw-r--r--1rootroot5402月32021/etc/pam.d/su2、执行如下命令将如下。将su文......
  • 解决Flutter_Boost,在Android Studio 出现“Cannot resolve symbol” 的问题
    今天在调试的时候,Android Studio报了一个莫名其妙的错误Cannot resolve symbol'R'让人不知所措,怎么会出现 Cannot resolve symbol 这种错误呢?下面给大家分享Android Studio 出现“Cannot resolve symbol”解决方案,需要的朋友可以参考下一:AndroidStudio无法识别同......
  • cnpm安装appium出现cannot find module xxx
    背景,我的电脑MacBookproM1芯片,brew安装了npm,再通过npm安装了cnpm,但是通过cnpm安装appium时候总会出现cannotfindmodulexxx,然后又对xxx再cnpm安装,再安装appium又出现新的xxx,网上找了很多方法,都没有对症下药的办法,最后像一个法子,直接干脆通过npm指定阿里镜......
  • navicat 链接 mysql 2059-Authentication plugin 'caching_sha2_password' cannot be
      出现这个原因是mysql8之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password,解决问题方法有两种,一种是升级navicat驱动,一种是把mysql用户登录密码加密规则还原成mysql_native_password1、登录Mysql:mysql-uroot-p2、修改......
  • Cannot read properties of undefined (reading 'offsetWidth') 报错的解决
    今天在运行后台系统时突然发现报以上错误,百思不得其解,因为最近并没有修改过该页面。 源代码如下: 最开始以为是不是用法改了,查询并尝试了许久,并没有什么用,同时发现出现一个css找不到的报错:  猜测是否引用elementplus样式版本文件不对。因为昨天有吧node_module删了,更......
  • sonar扫描kotlin 代码报错 Cannot analyse 'XXXXServiceImpl.kt' with 'KtChecksVisit
    问题现象://sonar扫描控制台报错,有可能会导致代码覆盖率等指标不准确16:56:47.623ERROR:Cannotanalyse'XXXXServiceImpl.kt'with'KtChecksVisitor':nulljava.lang.NullPointerException:nullatorg.sonarsource.kotlin.checks.ConditionalStructure.<init&......