Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run build.sbt have error #4

Closed
kunguang opened this issue Oct 8, 2013 · 7 comments
Closed

run build.sbt have error #4

kunguang opened this issue Oct 8, 2013 · 7 comments

Comments

@kunguang
Copy link

kunguang commented Oct 8, 2013

when i try run "build.sbt", want to tranfer to eclipse project,it's occur problem that
" [NOT FOUND ] org.eclipse.jetty.orbit#javax.servlet;2.5.0.v201103041518!javax.servlet.orbit (155ms)
[warn] ==== Jetty Eclipse: tried
[warn] http://repo1.maven.org/maven2/org/eclipse/jetty/orbit/javax.servlet/2.5.0.v201103041518/javax.servlet-2.5.0.v201103041518.orbit
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.eclipse.jetty.orbit#javax.servlet;2.5.0.v201103041518!javax.servlet.orbit
[warn] ::::::::::::::::::::::::::::::::::::::::::::::"

@pwendell
Copy link

pwendell commented Oct 8, 2013

This is actually a known issue with SBT 11. There is a bug where this version of Jetty uses a non-standard artifact type ("orbit") and SBT gets confused and can't resolve it. The best fix is actually to just upgrade the sbt/sbt-launch.jar to a newer version of SBT - @etrain, you guys should consider upgrading to SBT 13 in MLI to avoid this. @kunguang, you can also manually upgrade it yourself, then rm -rf ~/.ivy2/cache and re-build, it should work.

The bug is discussed here:
http://stackoverflow.com/questions/9889674/sbt-jetty-and-servlet-3-0

There may also be other work-arounds than updating to sbt 13, but I think that's the simplest solution.

@etrain
Copy link
Contributor

etrain commented Oct 8, 2013

Thanks Patrick - we'll upgrade to SBT 13.

@kunguang
Copy link
Author

Hello,

i have a try upgrading to SBT 13 but also occure the same proble,can you sent me this product's eclipse version? thanks very much.

Kunguang Zhu

806821815@qq.com

From: Patrick Wendell
Date: 2013-10-08 23:11
To: amplab/MLI
CC: kunguang
Subject: Re: [MLI] run build.sbt have error (#4)
This is actually a known issue with SBT 11. There is a bug where this version of Jetty uses a non-standard artifact type ("orbit") and SBT gets confused and can't resolve it. The best fix is actually to just upgrade the sbt/sbt-launch.jar to a newer version of SBT - @etrain, you guys should consider upgrading to SBT 13 in MLI to avoid this. @kunguang, you can also manually upgrade it yourself, then rm -rf ~/.ivy2/cache and re-build, it should work.
The bug is discussed here:
http://stackoverflow.com/questions/9889674/sbt-jetty-and-servlet-3-0
There may also be other work-arounds than updating to sbt 13, but I think that's the simplest solution.

Reply to this email directly or view it on GitHub.

@pwendell
Copy link

How did you upgrade? You need to remove and replace the sbt-launch.jar file
inside of MLI. Also, make sure you remove the ivy2 cache and local
directories.

On Thu, Oct 10, 2013 at 6:04 AM, kunguang notifications@github.com wrote:

Hello,

i have a try upgrading to SBT 13 but also occure the same proble,can you
sent me this product's eclipse version? thanks very much.

Kunguang Zhu

806821815@qq.com

From: Patrick Wendell
Date: 2013-10-08 23:11
To: amplab/MLI
CC: kunguang
Subject: Re: [MLI] run build.sbt have error (#4)
This is actually a known issue with SBT 11. There is a bug where this
version of Jetty uses a non-standard artifact type ("orbit") and SBT gets
confused and can't resolve it. The best fix is actually to just upgrade the
sbt/sbt-launch.jar to a newer version of SBT - @etrain, you guys should
consider upgrading to SBT 13 in MLI to avoid this. @kunguang, you can also
manually upgrade it yourself, then rm -rf ~/.ivy2/cache and re-build, it
should work.
The bug is discussed here:
http://stackoverflow.com/questions/9889674/sbt-jetty-and-servlet-3-0
There may also be other work-arounds than updating to sbt 13, but I think
that's the simplest solution.

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-26051537
.

@vivekbeniwal
Copy link

Hi Kunguang,

Following step worked for me:-

  1. update sbt-launch.jar in MLI
  2. Clean ivy2 cache
  3. Add these to build.sbt file:-

classpathTypes ~= (_ + "orbit")

libraryDependencies ++= Seq(
"org.eclipse.jetty" % "jetty-webapp" % "8.1.4.v20120524"
)

ivyXML :=

<dependency org="org.eclipse.jetty.orbit" name="javax.servlet" rev="3.0.0.v201112011016">
  <artifact name="javax.servlet" type="orbit" ext="jar"/>
</dependency>

Let me know if this does not solve your issue.

@etrain
Copy link
Contributor

etrain commented Dec 14, 2013

Thanks - we'll take a look!

@kunguang
Copy link
Author

thanks.I'm so greated that you reply me ,i will have a try and also i think your work that make no-expert know machine learning is very great

806821815@qq.com

From: Vivek Beniwal
Date: 2013-12-14 01:45
To: amplab/MLI
CC: kunguang
Subject: Re: [MLI] run build.sbt have error (#4)
Hi Kunguang,
Following step worked for me:-
update sbt-launch.jar in MLI
Clean ivy2 cache
Add these to build.sbt file:- classpathTypes ~= (_ + "orbit")
libraryDependencies ++= Seq(
"org.eclipse.jetty" % "jetty-webapp" % "8.1.4.v20120524"
)
ivyXML :=

Let me know if this does not solve your issue.

Reply to this email directly or view it on GitHub.

kernel164 added a commit to kernel164/MLI that referenced this issue Jun 23, 2014
@etrain etrain closed this as completed Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants