解决方案:在所在的项目的pom.xml中添加一下代码
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
关键在于 <configuration></configuration>中的那两行
相关推荐
eclipse 中编译、运行都正常,但是如果用maven的打包命令 mvn clean package 进行打包时会发现有类型错误
maven-maven-plugin-1.3.jar
maven-verifier-1.3.jar
maven-skin-1.3.jar
maven-deployer-1.3.jar
java运行依赖jar包
maven-skin-1.3-sources.jar
maven-deployer-1.3-sources.jar
通过maven项目中的pom文件进行编译jar包。资源包包括maven3 和编译所需工具。
maven 打jar包,source包,并上传到本地maven库
maven-commons.zip,用于普通maven操作的库。
Maven多模块项目编译速度慢,下面我们来学习下优化的方法。 mvn clean package -T 4C -Dmaven.test.skip=true -Dmaven.compile.fork=true -T 4C 代表本机4个CPU内核都参与编译工程, -Dmaven.test.skip=true 代表...
maven编译pentaho-big-data-plugin遇到的所有问题解决,pentaho6.0
jredis源码以及maven编译后的jar文件支持redis3.0
maven-antrun-plugin-1.3.jar maven-antrun-plugin-1.3.jar maven-antrun-plugin-1.3.jar
elasticsearch-6.4.2 IK6.4.2 plugin; maven编译后的,解压即可使用
jar包,亲测可用
官方版本,亲测可用
jar包,亲测可用
jenkins和maven配置自动编译打包和发布java项目