今天在demo项目中模拟消费者和生产者模型,需要把生产者打成一个jar包,报

You must specify a valid lifecycle phase or a goal in the format

解决方法:

先是在properties中添加,没能解决报错

<!--    跳过测试打爆-->
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <log4j.leve>debug</log4j.leve>
    <log4j.ale>debug</log4j.ale>
    <skipTests>true</skipTests><!--添加为true,则跳过测试直接打包 -->

 

最后的最后,用lifecycle下的install完美解决!!!之前用的是在Pom.xml上直接点两下ctrl,后来查到,用Lifecycle方式点,才能自动下载相关依赖文件,泪崩,猝

mvn打包报错You must specify a valid lifecycle phase or a goal in the format

 

相关文章:

  • 2021-06-04
  • 2021-05-03
  • 2021-08-14
  • 2021-05-16
  • 2021-11-19
  • 2021-04-26
  • 2021-07-06
猜你喜欢
  • 2021-08-24
  • 2021-10-24
  • 2021-09-05
  • 2021-07-04
  • 2021-05-16
  • 2021-09-21
  • 2021-11-14
相关资源
相似解决方案