maven 打包出錯。

cloud 項目中的公共實體類,需要單獨打包,供其他項目使用,但是打包時一直報錯

報錯如下

ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.2:jar (default-jar) on project cloud_api_commons: Error assembling JAR: For artifact {org.springframework.boot:spring-boot-starter-data-jpa:null:jar}: The version cannot be empty. 

報錯原因分析:是缺少jpa包,但是我該項目中,確實不需要引用這個包,後來查證在父類包中引用了這個包,但是不完善,在父類工廠中去掉以後就可以了。

父類公共截圖如下:

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章