红联Linux门户
Linux帮助

scalac error: bad option: '-make:transitive' on mvn package

发布时间:2016-11-24 09:56:25来源:linux网站作者:RichardLMT
1、问题描述:
ubuntu环境下用eclipse+maven开发Scala的时候出现错误:scalac error: bad option: '-make:transitive' on mvn package via command line
 
2、解决方法:
(1)打开pom.xml,删除
<parameter value="-make:transitive"/>
(2)添加dependance
<dependency>
<groupId>org.specs2</groupId>
<artifactId>specs2_2.11</artifactId>
<version>2.4.6</version>
<scope>test</scope>
</dependency>
 
本文永久更新地址:http://www.linuxdiyf.com/linux/26274.html