My dependencies issues:
My Maven Errors:
There are around 114 unresolved dependencies showing.
But I see all those dependencies jars under .m2/repositories
Could this be eclipse or maven version issue ??
Related
How to resolve my maven project dependencies in intelliJ?
I tried adding eclipse support to my project by running ./sbt eclipse after adding addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.1") to project/plugins.sbt.
I get this error message
[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.sbteclipse#sbteclipse-plugin;2.1.1: not found
I created the project by g8 using the simplest template. I'm trying to add eclipse support
[Edit: sbt version]
Detected sbt version 0.13.0
Starting sbt: invoke with -help for other options
Using /Users/andre/.sbt/0.13.0 as sbt dir, -sbt-dir to override.
Which version of sbt are you using? typesafehub/sbteclipse says the latest is 2.3.0 for sbt 0.13, and 2.2.0 for sbt 0.12.
I'm new to Play Framework. I've just read about how to create and run a play project. I've been given a project and am facing Error: Could not retrieve sbt 0.11.3:
Getting org.scala-sbt sbt 0.11.3 ...
:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;0.11.3
==== local: tried
/home/ritesh/Play/play-2.1.0/repository/local/org.scala-sbt/sbt/0.11.3/ivys/ivy.xml
==== Maven2 Local: tried
file:///home/ritesh/.m2/repository/org/scala-sbt/sbt/0.11.3/sbt-0.11.3.pom
==== typesafe-ivy-releases: tried
http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.11.3/ivys/ivy.xml
==== Maven Central: tried
http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.11.3/sbt-0.11.3.pom
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;0.11.3: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;0.11.3: not found
Error during sbt execution: Error retrieving required libraries
(see /home/ritesh/Play/play-2.1.0/framework/sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.11.3
I only installed Play Framework 2.1.0 distribution and nothing else.
How can I get passed the error and execute the play command successfully?
I think your existing project has dependencies to sbt 0.11.3 and you are running it with Play 2.1.0 which uses sbt 0.12.2.
Check the file build.properties located under the project folder. If it says 0.11.3 your project probably uses another Play version and need to be upgraded to 2.1.0.
The sbt-plugin should have Play 2.1.0 assigned - se plugins.sbt under project folder.
Either ugrade your project: http://www.playframework.com/documentation/2.1.0/Migration
Or - switch to an older Play version - the correct for your project. => http://www.playframework.com/download.
It seems you're using play 2.1.0 which is distributed with sbt 0.12.2.
The solution is not to upgrade your play distribution as you only need to edit your project/build.properties file and change
sbt.version=0.11.3
to
sbt.version=0.12.2
With the change, the project should be fine.
Play 2.1 does not come with sbt 0.11.3. Since you are not on a window box I recommend you use sbt-extras. That utility will automatically download the correct version of sbt.
curl https://raw.github.com/paulp/sbt-extras/master/sbt > ~/bin/sbt
chmod +x ~/bin/sbt
And then from within your project directory:
~/bin/sbt
If files in your bin folder are automatically on the path you can skip the ~/bin/ part.
To work without sbt extras you would need to download the appropriate play version which can be found in the project/plugins.sbt within the directory of your project.
I am trying to import Scalala into Eclipse.
I had tried using the sbt-eclipse plugin by adding the lines
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0-M2")
to my plugins.sbt
and I ran ./sbt update from the root of the Scalala dir which is cloned from github,
I am getting the below error
==================================================
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.sbteclipse:sbteclipse-plugin:2.0.0-M2 (sbtVersion=0.11.0, scalaVersion=2.9.1)
[warn]
[error] {file:/home/tutysra/Scalala/project/plugins/}default-ffe360/*:update: sbt.ResolveException: unresolved dependency: com.typesafe.sbteclipse#sbteclipse-plugin;2.0.0-M2: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i
[warn] Ignoring load failure: no project loaded.
==================================================
Had anyone successfully built Scalala's source with Eclipse and can share the steps they followed?
I can also give IntelliJ a try if that is the preferred method and used by many devs.
If there are some tweaking necessary for running on IntelliJ please provide them as well.
sbteclipse requires sbt 0.11.2. I have created a pull request with the necessary changes to upgrade Scalala to sbt 0.11.2. Meanwhile, you can make the same changes locally.
You'll still need to add sbteclipse to project/plugins.sbt:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0-M2")
EDIT: The changes have been merged, and Scalala now uses sbt 0.11.2. Grab the latest Scalala, add the config line above, and you should be good to go.
While trying out the Scala bindings for Redis, I followed the instructions in the README file (clone the repo, cd into it, type sbt) and I got this:
$ sbt
Getting org.scala-tools.sbt sbt_2.9.1 0.10.1 ...
:: problems summary ::
:::: WARNINGS
module not found: org.scala-tools.sbt#sbt_2.9.1;0.10.1
==== local: tried
/Users/noah/.ivy2/local/org.scala-tools.sbt/sbt_2.9.1/0.10.1/ivys/ivy.xml
-- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar:
/Users/noah/.ivy2/local/org.scala-tools.sbt/sbt_2.9.1/0.10.1/jars/sbt_2.9.1.jar
==== Maven2 Local: tried
file:///Users/noah/.m2/repository/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.pom
-- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar:
file:///Users/noah/.m2/repository/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.jar
==== typesafe-ivy-releases: tried
http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt_2.9.1/0.10.1/ivys/ivy.xml
-- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar:
http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt_2.9.1/0.10.1/jars/sbt_2.9.1.jar
==== Maven Central: tried
http://repo1.maven.org/maven2/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.pom
-- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar:
http://repo1.maven.org/maven2/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.jar
==== Scala-Tools Maven2 Repository: tried
http://scala-tools.org/repo-releases/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.pom
-- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar:
http://scala-tools.org/repo-releases/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.jar
==== Scala-Tools Maven2 Snapshots Repository: tried
http://scala-tools.org/repo-snapshots/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.pom
-- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar:
http://scala-tools.org/repo-snapshots/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-tools.sbt#sbt_2.9.1;0.10.1: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-tools.sbt#sbt_2.9.1;0.10.1: not found
Error during sbt execution: Error retrieving required libraries
(see /Users/noah/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.10.1
This was using sbt 0.7.4. I tried downloading the latest version of sbt (0.11.0) and I got the same problem. Then I manually downloaded sbt-launcher.jar from the 0.10.1 release of sbt, and that worked.
My question is: is sbt supposed to automatically download the required version of itself, or am I going to have to manually download & run different versions of sbt for packages which require different versions?
The error message seems unrelated to Redis.
Yes, SBT is supposed to download the appropriate version of itself. You can find out what versions of SBT are available by pointing your browser to: http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/ You will see that Scala 2.8.1 is tied to SBT versions <= 0.10.1, whereas Scala 2.9.1 is (currently) compatible with SBT 0.11.0 only.
You're getting this error message because somehow you're trying to get SBT 0.10.1 for Scala 2.9.1, which is an invalid combination. Not sure how you did this.. maybe you edited some internal SBT config files in the directory ~/.sbt/? If you want to get a "virgin" SBT, you can delete ~/.sbt/ and download the latest sbt-launch.jar. If you want to use a previous version of SBT, you can edit the project/build.properties file, as described on the Wiki.