twilio-java icon indicating copy to clipboard operation
twilio-java copied to clipboard

Impossible to use twilio sdk in sbt 1.9.8 Scala 3.3.1, Mac OS Sonoma 14.0

Open CodeCombiner opened this issue 1 year ago • 2 comments

Issue Summary

When add maven dependency to sbt I get the error: [Fatal Error] :1:326: The reference to entity "display" must end with the ';' delimiter.

Steps to Reproduce

  1. Add maven dependency to sbt
  2. sbt reload
  3. sbt compile

Full output

[info] Reapplying settings... [info] set current project to ProjectName (in build file:/Users/username/Documents/ProjectDir/) [warn] sbt 0.13 shell syntax is deprecated; use slash syntax instead: Global / dumpStructure [Fatal Error] :1:326: The reference to entity "display" must end with the ';' delimiter. [error] stack trace is suppressed; run 'last update' for the full output [error] stack trace is suppressed; run 'last ssExtractDependencies' for the full output [error] (update) org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 326; The reference to entity "display" must end with the ';' delimiter. [error] (ssExtractDependencies) org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 326; The reference to entity "display" must end with the ';' delimiter. [error] Total time: 0 s, completed Mar 11, 2024, 11:45:13 AM [info] shutting down sbt server

Any recommendations appreciated

CodeCombiner avatar Mar 11 '24 10:03 CodeCombiner

Can you give more instructions on how to reproduce? Like build.sbt, etc. Better if it's a git repository one can clone.

lolgab avatar Apr 08 '25 12:04 lolgab

Hi. I had this exact problem happen to me yesterday as well. (Except on a different codebase). Something in my CI pipeline that hadn't changed suddenly failing for no reason. This is with an old commits in my base that used to work, and an old sbt that hadn't been upgraded. I have debugged the issue and it turned out to be the dependency check plugin, in project/plugins.sbt.

Removing it fixed the issue

addSbtPlugin("net.vonbuchholtz" % "sbt-dependency-check" % "x.x.x")

philliptaylorpro avatar Apr 09 '25 20:04 philliptaylorpro

Hello! We will take a look here.

manisha1997 avatar Jul 01 '25 17:07 manisha1997

I was able to resolve this issue by using a more recent sbt build and putting -Dsbt.override.build.repos=false in my SBT_OPTS.

philliptaylorpro avatar Jul 03 '25 09:07 philliptaylorpro