Maven: JAR will be empty - no content was marked for inclusion

前端 未结 2 1421
死守一世寂寞
死守一世寂寞 2020-12-05 18:22

I have a minor problem with maven. When I run the command mvn package I get the following warning:

[WARNING] JAR will be empty - no content was marked for in

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 19:14

    I hope you have good reason not to follow the standard directory layout, otherwise consider to rearrange the folders: it will make your life a lot easier (as well as for your co-workers). My guess is that nothing has been compiled. In that case: removing the configuration of the maven-compiler-plugin should be enough.

提交回复
热议问题