{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt/issues/1760","labels_url":"https://api.github.com/repos/sbt/sbt/issues/1760/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt/issues/1760/comments","events_url":"https://api.github.com/repos/sbt/sbt/issues/1760/events","html_url":"https://github.com/sbt/sbt/issues/1760","id":50940883,"number":1760,"title":"cached resolution: transitive dependency survives even after its caller is evicted","user":{"login":"seratch","id":19658,"avatar_url":"https://avatars.githubusercontent.com/u/19658?v=3","gravatar_id":"","url":"https://api.github.com/users/seratch","html_url":"https://github.com/seratch","followers_url":"https://api.github.com/users/seratch/followers","following_url":"https://api.github.com/users/seratch/following{/other_user}","gists_url":"https://api.github.com/users/seratch/gists{/gist_id}","starred_url":"https://api.github.com/users/seratch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seratch/subscriptions","organizations_url":"https://api.github.com/users/seratch/orgs","repos_url":"https://api.github.com/users/seratch/repos","events_url":"https://api.github.com/users/seratch/events{/privacy}","received_events_url":"https://api.github.com/users/seratch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sbt/sbt/labels/Dependency%20Management","name":"Dependency Management","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-04T08:40:04Z","updated_at":"2015-02-26T04:14:16Z","closed_at":null,"body":"After enabling cached resolution in updateOptions, missing servlet-api dependency causes runtime error when running tests of Apache Velocity module. (sbt version: 0.13.7)\r\n\r\nChange: https://github.com/skinny-framework/skinny-framework/commit/b8bc7c161f400e590cfd96abbfc802df2d91a00e\r\n\r\n```\r\n[info] Exception encountered when attempting to run a suite with class name: skinny.controller.feature.VelocityTemplateEngineFeatureSpec *** ABORTED ***\r\n[info]   java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;\r\n[info]   at org.scalatra.servlet.RichServletContext.contextPath(RichServletContext.scala:210)\r\n[info]   at org.scalatra.ScalatraBase$class.contextPath(ScalatraBase.scala:726)\r\n[info]   at skinny.controller.SkinnyController.contextPath(SkinnyController.scala:6)\r\n[info]   at org.scalatra.ScalatraBase$class.initialize(ScalatraBase.scala:598)\r\n[info]   at skinny.controller.SkinnyController.org$scalatra$scalate$ScalateSupport$$super$initialize(SkinnyController.scala:6)\r\n[info]   at org.scalatra.scalate.ScalateSupport$class.initialize(ScalateSupport.scala:52)\r\n[info]   at skinny.controller.SkinnyController.initialize(SkinnyController.scala:6)\r\n[info]   at org.scalatra.ScalatraFilter$class.init(ScalatraFilter.scala:79)\r\n[info]   at skinny.controller.SkinnyController.init(SkinnyController.scala:6)\r\n[info]   at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:137)\r\n[info]   ...\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sbt/sbt/issues/comments/76119636","html_url":"https://github.com/sbt/sbt/issues/1760#issuecomment-76119636","issue_url":"https://api.github.com/repos/sbt/sbt/issues/1760","id":76119636,"user":{"login":"eed3si9n","id":184683,"avatar_url":"https://avatars.githubusercontent.com/u/184683?v=3","gravatar_id":"","url":"https://api.github.com/users/eed3si9n","html_url":"https://github.com/eed3si9n","followers_url":"https://api.github.com/users/eed3si9n/followers","following_url":"https://api.github.com/users/eed3si9n/following{/other_user}","gists_url":"https://api.github.com/users/eed3si9n/gists{/gist_id}","starred_url":"https://api.github.com/users/eed3si9n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eed3si9n/subscriptions","organizations_url":"https://api.github.com/users/eed3si9n/orgs","repos_url":"https://api.github.com/users/eed3si9n/repos","events_url":"https://api.github.com/users/eed3si9n/events{/privacy}","received_events_url":"https://api.github.com/users/eed3si9n/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T04:14:16Z","updated_at":"2015-02-26T04:14:16Z","body":"I think I found out what's gong on. servlet-api 2.3 is introduced by commons-logging 1.1. That is evicted by newer commons-logging 1.1.3.\r\n\r\n```\r\n  javax.servlet:servlet-api\r\n    - 2.3\r\n      status: release\r\n      publicationDate: Tue Nov 08 16:58:33 EST 2005\r\n      resolver: sbt-chain\r\n      artifactResolver: sbt-chain\r\n      evicted: false\r\n      isDefault: false\r\n      configurations: compile, master(*), runtime, compile(*), runtime(*), master\r\n      callers: commons-logging:commons-logging:1.1\r\n\r\n  commons-logging:commons-logging\r\n    - 1.1.3\r\n      status: release\r\n      publicationDate: Thu May 16 16:05:23 EDT 2013\r\n      resolver: sbt-chain\r\n      artifactResolver: sbt-chain\r\n      evicted: false\r\n      homepage: http://commons.apache.org/proper/commons-logging/\r\n      isDefault: false\r\n      configurations: compile, master(*), runtime, compile(*), runtime(*), master\r\n      callers: org.apache.httpcomponents:httpclient:4.3.4\r\n    - 1.1\r\n      status: release\r\n      publicationDate: Sat May 13 08:31:49 EDT 2006\r\n      resolver: sbt-chain\r\n      artifactResolver: sbt-chain\r\n      evicted: true\r\n      evictedReason: latest-revision\r\n      homepage: http://jakarta.apache.org/commons/${pom.artifactId.substring(8)}/\r\n      isDefault: false\r\n      configurations: compile, master(*), runtime, compile(*), runtime(*), master(compile), master\r\n      licenses: (The Apache Software License, Version 2.0,Some(/LICENSE.txt))\r\n      callers: commons-chain:commons-chain:1.1, commons-beanutils:commons-beanutils:1.7.0, org.apache.struts:struts-core:1.3.8, org.apache.velocity:velocity-tools:2.0, commons-validator:commons-validator:1.3.1, commons-digester:commons-digester:1.8\r\n```"}}