java – 为什么Maven Assembly Plugin不包含带有依赖项的jar中的项目文件?
我使用 maven assembly plug in打包我的项目及其所有依赖项,所以我可以运行一个简单的java -jar myproject.jar并能够运行该项目.但是,当我运行它时,它告诉我 Error: Could not find or load main class com.project.ServerStart 然后我解压缩.jar文件,发现程序集不包含我的项目文件,这太荒谬了! 打