Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Playframework 2.4-如何包括scalaxb_Scala_Playframework_Playframework 2.4_Scalaxb - Fatal编程技术网

Playframework 2.4-如何包括scalaxb

Playframework 2.4-如何包括scalaxb,scala,playframework,playframework-2.4,scalaxb,Scala,Playframework,Playframework 2.4,Scalaxb,build.sbt代码: 我已从中复制了代码 packageName in(Compile,scalaxb):=“generated”此行引发以下错误 error: reference to packageName is ambiguous; it is imported twice in the same scope by import ScalaxbKeys._ and import _root_.com.typesafe.sbt.SbtNativePackager.autoImport._

build.sbt代码: 我已从中复制了代码

packageName in(Compile,scalaxb):=“generated”此行引发以下错误

error: reference to packageName is ambiguous;
it is imported twice in the same scope by
import ScalaxbKeys._
and import _root_.com.typesafe.sbt.SbtNativePackager.autoImport._
    packageName in (Compile, scalaxb)     := "generated"
    ^
如果我对该行进行注释,wsdl文件将不会编译为scala文件。

更改

导入ScalaxbKeys.\uuz

导入ScalaxbKeys.{packageName=>scalaxbPackageName,{u}

packageName in(编译,scalaxb):=“已生成”

到(编译,scalaxb)中的scalaxbPackageName:=“已生成”

error: reference to packageName is ambiguous;
it is imported twice in the same scope by
import ScalaxbKeys._
and import _root_.com.typesafe.sbt.SbtNativePackager.autoImport._
    packageName in (Compile, scalaxb)     := "generated"
    ^