1.检查pom文件配置是否有错误。
2.file -> project Structure - >project settings ->modules marked for inclusion!
点击确定后,先执行Build Mohule
执行打包。
如果报错:The packaging for this project did not assign a file to the build artifact
使用
Plugins下的install
Lifecycle中的install 会自动去maven仓库下载需要的包 推荐使用
Information:java: javacTask: 源发行版 7 需要目标发行版 1.7
setting->Compiler->Java Compiler 设置相应Module的target byte code version的合适版本
打包或者启动项目,程序包不存在有效解决办法:
mvn idea:idea
一次搞不定,那就多执行几遍。



