在IDEA中使用maven打包的时候出现异常:
Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:enforce (xxx)on project manage:
Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
字面意思来看,像是有些规则没通过,查了下资料,打包的时候限制不能使用SNAPSHOT版本的包,不过还是有引用到。
没办法不引包。。。所以只能对enforce这玩意下手了。
在IDEA界面右上角,有个启动按钮那边,旁边有个类似下拉框的东西,点击下,Edit Configurations,在出来的界面,点击加号,选择Maven,在界面右边,找到Command line:的输入框,填写以下信息:
install -Denforcer.skip=true
之后直接启动新加的这个maven配置就可以打包了。