JAR will be empty - no content was marked for inclusion!

现象

        在对自建pom依赖组件打包时,出现JAR will be empty - no content was marked for inclusion!错误。

JAR will be empty - no content was marked for inclusion!_第1张图片

方案

       在pom中怎么加packaging标签内容为pom,标识只打包pom文件


...
    com.lizz.ta
    ta-parent-starter
    1.0
    ta-parent-starter
    pom
    
        UTF-8
    

...

 完成

你可能感兴趣的:(Spring,jar,java,maven)