maven install 错误 提示fatal error compiling,可以考虑设置 maven-compiler-plugin ,在 pom.xml 中加入下面:
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <!--这个主要与jdk 1.8 --> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build>
然后再进行 mvn install 即可
最后
以上就是想人陪紫菜最近收集整理的关于【解决】maven install出现fatal error compiling的全部内容,更多相关【解决】maven内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复