hakandilek / play2-crud

Simple CRUD & DAO implementation for play2
Other
142 stars 52 forks source link

Unresolved dependency error #47

Closed depakk closed 10 years ago

depakk commented 10 years ago

I just downloaded the zip and ran it using - activator run

Keep seeing the following error - sbt.ResolveException: unresolved dependency: play2-crud#play2-crud_2.11;0.7.4-SNAPSHOT: not found

This is my build.sbt - name := "play2-crud-activator"

version := "0.7.4-SNAPSHOT"

scalaVersion := "2.11.1"

libraryDependencies ++= Seq( javaCore, javaJdbc, javaEbean, "play2-crud" %% "play2-crud" % "0.7.4-SNAPSHOT", "play2-crud" %% "play2-crud" % "0.7.4-SNAPSHOT" classifier "assets" )

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

resolvers += "release repository" at "http://hakandilek.github.com/maven-repo/releases/"

resolvers += "snapshot repository" at "http://hakandilek.github.com/maven-repo/snapshots/"

Very new to this so please help.

vanbeast commented 10 years ago

I have the same issue.

hakandilek commented 10 years ago

I've published the 0.7.4-snapshot version to the maven repository. Can you please check if it works now?

depakk commented 10 years ago

Seems to be working. Thank you very much! I had another question about your repo which I have emailed you. Please let me know

jskye commented 10 years ago

unresolved dependency: play2-crud#play2-crud_2.10;0.7.4-SNAPSHOT: not found

hakandilek commented 10 years ago

@jskye, 2.10 dependency does not seem right to me.

Please check out this sample Build.scala file.

jskye commented 10 years ago

my project uses build.sbt

name := """BatJam FlightPub"""

version := "1.0-SNAPSHOT"

libraryDependencies ++= Seq(
    // Select Play modules
    jdbc,                   // The JDBC connection pool and the play.api.db API
    //anorm,            // Scala RDBMS Library
    //javaJdbc,     // Java database API
    javaEbean,      // Java Ebean plugin
    //javaJpa,      // Java JPA plugin
    //filters,      // A set of built-in filters
    javaCore,           // The core Java API
    // WebJars pull in client-side web libraries
    "org.webjars" %% "webjars-play" % "2.2.1-2",
    "org.webjars" % "bootstrap" % "3.1.1-1",
    "mysql" % "mysql-connector-java" % "5.1.26",
//  "play2-crud" % "play2-crud_2.10" % "0.7.0"
  "play2-crud" %% "play2-crud" % "0.7.4-SNAPSHOT",
  "play2-crud" %% "play2-crud" % "0.7.4-SNAPSHOT" classifier "assets"
  // Add your own project dependencies in the form:
    // "group" % "artifact" % "version"
)

play.Project.playJavaSettings
//lazy val root = (project in file(".")).enablePlugins(PlayJava)

//maven repositories for CRUD admin panel
//resolvers += Resolver.url("release repository", url("http://hakandilek.github.com/maven-repo/releases/"))(Resolver.ivyStylePatterns)
//
//resolvers += Resolver.url("snapshot repository", url("http://hakandilek.github.com/maven-repo/snapshots/"))(Resolver.ivyStylePatterns)
resolvers += "release repository" at "http://hakandilek.github.com/maven-repo/releases/"

resolvers += "snapshot repository" at "http://hakandilek.github.com/maven-repo/snapshots/"
[BatJam FlightPub] $ update
[info] Updating {file:/Users/juliusskye/Desktop/SENG3160%20FPTest/flightpub/}flightpub...
[info] Resolving play2-crud#play2-crud_2.10;0.7.4-SNAPSHOT ...                        
[warn]  module not found: play2-crud#play2-crud_2.10;0.7.4-SNAPSHOT
[warn] ==== local: tried
[warn]   /Users/juliusskye/.ivy2/local/play2-crud/play2-crud_2.10/0.7.4-SNAPSHOT/ivys/ivy.xml
[warn] ==== activator-local: tried
[warn]   file:/Users/juliusskye/.activator/repository/play2-crud/play2-crud_2.10/0.7.4-SNAPSHOT/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/play2-crud/play2-crud_2.10/0.7.4-SNAPSHOT/play2-crud_2.10-0.7.4-SNAPSHOT.pom
[warn] ==== typesafe-releases: tried
[warn]   http://repo.typesafe.com/typesafe/releases/play2-crud/play2-crud_2.10/0.7.4-SNAPSHOT/play2-crud_2.10-0.7.4-SNAPSHOT.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/play2-crud/play2-crud_2.10/0.7.4-SNAPSHOT/ivys/ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/play2-crud/play2-crud_2.10/0.7.4-SNAPSHOT/play2-crud_2.10-0.7.4-SNAPSHOT.pom
[warn] ==== release repository: tried
[warn]   http://hakandilek.github.com/maven-repo/releases/play2-crud/play2-crud_2.10/0.7.4-SNAPSHOT/play2-crud_2.10-0.7.4-SNAPSHOT.pom
[warn] ==== snapshot repository: tried
[warn]   http://hakandilek.github.com/maven-repo/snapshots/play2-crud/play2-crud_2.10/0.7.4-SNAPSHOT/play2-crud_2.10-0.7.4-SNAPSHOT.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...                         
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: play2-crud#play2-crud_2.10;0.7.4-SNAPSHOT: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: play2-crud#play2-crud_2.10;0.7.4-SNAPSHOT: not found
hakandilek commented 10 years ago

I see probably your scalaVersion is still 2.10. Please update it accordingly.

jskye commented 10 years ago

added scalaVersion := "2.11" to build.sbt still no luck

hakandilek commented 10 years ago

Please check out the provided examples. A simple Build.scala file might do the trick.