Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SBT xalan#serializer error in IntelliJ

I'm using Intellij to build a Play 2 web app in Scala. However, I keep getting this error inside Intellij.

SBT project import
     [warn]     [FAILED     ] xalan#serializer;2.7.1!serializer.jar(src):  (0ms)
     [warn] ==== typesafe-ivy-releases: tried
     [warn]   http://repo.typesafe.com/typesafe/ivy-releases/xalan/serializer/2.7.1/srcs/serializer-sources.jar
     [warn] ==== sbt-plugin-releases: tried
     [warn]   http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/xalan/serializer/2.7.1/srcs/serializer-sources.jar
     [warn] ==== local: tried
     [warn]   C:\Users\ *** \.ivy2\local\xalan\serializer\2.7.1\srcs\serializer-sources.jar
     [warn] ==== public: tried
     [warn]   http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1-sources.jar
     [warn] ==== Typesafe repository: tried
     [warn]   http://repo.typesafe.com/typesafe/releases/xalan/serializer/2.7.1/serializer-2.7.1-sources.jar
     [warn]     ::::::::::::::::::::::::::::::::::::::::::::::
     [warn]     ::              FAILED DOWNLOADS            ::
     [warn]     :: ^ see resolution messages for details  ^ ::
     [warn]     ::::::::::::::::::::::::::::::::::::::::::::::
     [warn]     :: xalan#serializer;2.7.1!serializer.jar(src)
     [warn]     ::::::::::::::::::::::::::::::::::::::::::::::
     [warn]     [FAILED     ] xalan#serializer;2.7.1!serializer.jar(doc):  (0ms)
     [warn] ==== local: tried
     [warn]   C:\Users\ *** \.ivy2\local\xalan\serializer\2.7.1\docs\serializer-javadoc.jar
     [warn] ==== public: tried
     [warn]   http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1-javadoc.jar
     [warn] ==== Typesafe Releases Repository: tried
     [warn]   http://repo.typesafe.com/typesafe/releases/xalan/serializer/2.7.1/serializer-2.7.1-javadoc.jar
     [warn] ==== Typesafe Releases: tried
     [warn]   http://repo.typesafe.com/typesafe/releases/xalan/serializer/2.7.1/serializer-2.7.1-javadoc.jar
     [warn]     ::::::::::::::::::::::::::::::::::::::::::::::
     [warn]     ::              FAILED DOWNLOADS            ::
     [warn]     :: ^ see resolution messages for details  ^ ::
     [warn]     ::::::::::::::::::::::::::::::::::::::::::::::
     [warn]     :: xalan#serializer;2.7.1!serializer.jar(doc)
     [warn]     ::::::::::::::::::::::::::::::::::::::::::::::

When running the project from a command line everything works correctly, it's just really annoying having this error pop up everytime I open Intellij.

Cheers

like image 724
Oli Avatar asked Oct 29 '14 14:10

Oli


4 Answers

After getting the same error and trying lots of stuff, I finally specified a newer version of the missing jar. I added the following to my build.sbt:

libraryDependencies += "xalan" % "serializer" % "2.7.2"

It worked!

The root problem is that the Javadoc and sources aren't available for xalan serializer v2.7.1 in the public repos that sbt checks, but they are available for the newer version. The small bump in version shouldn't affect anything.

An alternate solution is to not specify that sbt download Javadocs and sources.

like image 70
einnocent Avatar answered Nov 15 '22 01:11

einnocent


Turn off [Project Settings] - [SBT] - [Download source and docs] checkbox

like image 22
Сергей Казанцев Avatar answered Nov 15 '22 00:11

Сергей Казанцев


Well IntelliJ IDEA is great, but the sbt plugin has a lot of bugs... You should submit an error report here.

like image 1
Marius Soutier Avatar answered Nov 15 '22 01:11

Marius Soutier


When you create the project check the box for 'Use auto-import'

like image 1
Adam Hacker Avatar answered Nov 15 '22 00:11

Adam Hacker