Play framework compilation issues with dependencies

Roland Ormrod

I'm having issues with running a simple scala play app with a few dependencies. The below is happening when trying to run my app.

[error] /Users/roland/play-scala/app/domain/UserModule.scala:2: 
          object softwaremill is not a member of package com
[error] import com.softwaremill.macwire.MacwireMacros.wire

UserModule:

package domain
import com.softwaremill.macwire.MacwireMacros.wire

trait UserModule {


  lazy val userRepository = wire[UserRepository]
  lazy val userService = wire[UserService]
}

and my build.sbt is

name := """play-scala"""

version := "1.0-SNAPSHOT"

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

scalaVersion := "2.10.3"

resolvers += "Maven Central Server" at "http://repo1.maven.org/maven2"

resolvers += "Neo4j Scala Repo" at "http://m2.neo4j.org/content/repositories/releases"

resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  ws,
  "org.webjars" % "coffee-script-node" % "1.7.1",
  "net.liftweb" %% "lift-json" % "3.0-SNAPSHOT",
  "eu.fakod" %% "neo4j-scala" % "0.3.1-SNAPSHOT",
  "com.softwaremill.macwire" %% "macros" % "0.7.3",
  "com.softwaremill.macwire" %% "runtime" % "0.7.3"
)

It seems to be totally fine when looking at it in intellij idea and looking in my ivy cache I have the dependencies there but the application when it runs through the play console seems to be very unhappy. Sorry for the lack of info but im quite new to scala and play so been struggling all day with this issue.

Julien D

Indeed the maven repo is named macros_2.10 but there is scalaVersion := "2.10.3" in build.sbt

Try to remove this line.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Unresolved Dependencies sbt with play framework

From Dev

Play framework page navigation issues

From Dev

Play Framework @routes.Assets.at Compilation Error

From Dev

Play framework compilation time worth the development effort?

From Dev

Compilation error following Play! Framework NewApplication guide

From Dev

Injecting dependencies in tests in Play framework with scaldi

From Dev

Play Framework 2.4.6 does not install dependencies

From Dev

IntelliJ IDEA + Play Framework - how to speed up compilation

From Dev

Play Framework For Scala: Compilation error[type Application is not a member of package controllers]

From Dev

Play Framework beginner. Scala.html error in compilation

From Dev

SBT in Play Framework can't find org.hibernate dependencies

From Dev

Play Framework takes extremely long time to resolve dependencies

From Dev

Play Framework frontend JS using Scala.js external dependencies

From Dev

Unresolved dependencies when trying to add jasperreports to play framework 2.2.0

From Dev

How to set the Play framework local dependencies of a WSDL generated JAR?

From Dev

Play Framework takes extremely long time to resolve dependencies

From Dev

Play framework/ SBT : compile/build project with two sets of dependencies respectively

From Dev

How to set the Play framework local dependencies of a WSDL generated JAR?

From Dev

Play Framework 2.4-M3: Issues with unit testing in Java

From Dev

Issues with compilation of multiline lambdas

From Dev

Typescript compilation issues in Appharbor

From Dev

Codekit Jade Compilation Issues

From Dev

Dependencies issues in Ubuntu 18.04

From Dev

Play Framework 2.2.1 - Compilation error: "method render in class index cannot be applied to given types;"

From Dev

Play framework route file compilation warning: local val in method at is never used

From Dev

Issues downloading Graphlab dependencies get_dependencies()

From Dev

IntelliJ 14 maven compilation issues

From Dev

Hello World CUDA compilation issues

From Dev

Android beacon library compilation issues

Related Related

  1. 1

    Unresolved Dependencies sbt with play framework

  2. 2

    Play framework page navigation issues

  3. 3

    Play Framework @routes.Assets.at Compilation Error

  4. 4

    Play framework compilation time worth the development effort?

  5. 5

    Compilation error following Play! Framework NewApplication guide

  6. 6

    Injecting dependencies in tests in Play framework with scaldi

  7. 7

    Play Framework 2.4.6 does not install dependencies

  8. 8

    IntelliJ IDEA + Play Framework - how to speed up compilation

  9. 9

    Play Framework For Scala: Compilation error[type Application is not a member of package controllers]

  10. 10

    Play Framework beginner. Scala.html error in compilation

  11. 11

    SBT in Play Framework can't find org.hibernate dependencies

  12. 12

    Play Framework takes extremely long time to resolve dependencies

  13. 13

    Play Framework frontend JS using Scala.js external dependencies

  14. 14

    Unresolved dependencies when trying to add jasperreports to play framework 2.2.0

  15. 15

    How to set the Play framework local dependencies of a WSDL generated JAR?

  16. 16

    Play Framework takes extremely long time to resolve dependencies

  17. 17

    Play framework/ SBT : compile/build project with two sets of dependencies respectively

  18. 18

    How to set the Play framework local dependencies of a WSDL generated JAR?

  19. 19

    Play Framework 2.4-M3: Issues with unit testing in Java

  20. 20

    Issues with compilation of multiline lambdas

  21. 21

    Typescript compilation issues in Appharbor

  22. 22

    Codekit Jade Compilation Issues

  23. 23

    Dependencies issues in Ubuntu 18.04

  24. 24

    Play Framework 2.2.1 - Compilation error: "method render in class index cannot be applied to given types;"

  25. 25

    Play framework route file compilation warning: local val in method at is never used

  26. 26

    Issues downloading Graphlab dependencies get_dependencies()

  27. 27

    IntelliJ 14 maven compilation issues

  28. 28

    Hello World CUDA compilation issues

  29. 29

    Android beacon library compilation issues

HotTag

Archive