SBT installs dependencies on package.json

I'm not sure if this is a bug or something that I have activated somehow. Basically I have a Play Framework app that doesn't like running tests when I have a file package.json

in the root folder. Everything works fine when I am just an run

application. I have no luck finding anyone with the same problem as me.

Running test

inside sbt does fine if package.json

not present . If present package.json

, SBT starts installing / loading these dependencies in /node_modules

and they break my already installed npm modules. Then I will need to reinstall to update the npm modules again.

This is the error message I am getting multiple times in the console.

Exception in thread "Trireme Async Pool" java.security.AccessControlException: access denied ("java.io.FilePermission" "/home/anders/vidme/node_modules/grunt-ts/node_modules/.bin/rimraf" "readlink")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
at java.security.AccessController.checkPermission(AccessController.java:559)
at sun.nio.fs.UnixFileSystemProvider.readSymbolicLink(UnixFileSystemProvider.java:487)
at java.nio.file.Files.readSymbolicLink(Files.java:1384)
at io.apigee.trireme.core.modules.AsyncFilesystem$FSImpl.doReadLink(AsyncFilesystem.java:1470)
at io.apigee.trireme.core.modules.AsyncFilesystem$FSImpl.access$2000(AsyncFilesystem.java:118)
at io.apigee.trireme.core.modules.AsyncFilesystem$FSImpl$26.execute(AsyncFilesystem.java:1459)
at io.apigee.trireme.core.modules.AsyncFilesystem$FSImpl$1.run(AsyncFilesystem.java:201)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

      

package.json

{
  "devDependencies": {
    "grunt": "~0.4.5",
    "grunt-ts": "~4.0.1",
    "grunt-contrib-uglify": "~0.9.1",
    "grunt-contrib-watch": "~0.6.1",
    "grunt-contrib-htmlmin": "~0.4.0"
  }
}

      

build.sbt

name := """vidme"""

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayScala)

scalaSource in Compile := baseDirectory.value / "app"

scalaSource in Test := baseDirectory.value / "test"

sourcesInBase := false

scalaVersion := "2.11.1"

libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  ws,
  "org.reactivemongo" %% "play2-reactivemongo" % "0.10.5.0.akka23",
  "org.mongodb" %% "casbah" % "2.8.0",
  "org.scalatest" % "scalatest_2.11" % "2.2.4" % "test",
  "com.google.inject" % "guice" % "3.0"
)

      

Is there anyway I can stop this? I tried adding scalaSource

to my sbt file but didn't change anything.

+3


source to share





All Articles