在当地建立Shindig

时间:2011-09-12 06:48:26

标签: maven opensocial apache-shindig

我想将Shindig用作OpenSocial容器。为了做到这一点,我想为Shindig当前的功能添加更多功能,因此我必须在本地构建其源代码。

我已经从Shindig的SVN下载源代码:http://svn.apache.org/repos/asf/shindig/trunk/ 我正在尝试使用Maven(3.0.3)构建它,但没有成功。我收到以下编译错误:

> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (def
> ault-testCompile) on project shindig-gadgets: Compilation failure:
> Compilation failure: [ERROR]
> \Users\I064832\Desktop\shindig\java\gadgets\src\test\java\org\apache\shindig\gadgets\http\Fa
> keHttpServer.java:[27,16] cannot access org.mortbay.util.Attributes
> [ERROR] class file for org.mortbay.util.Attributes not found [ERROR]
> public abstract class FakeHttpServer extends Server { [ERROR]
> \Users\I064832\Desktop\shindig\java\gadgets\src\test\java\org\apache\shindig\gadgets\http\Fa
> keHttpServer.java:[32,13] cannot access
> org.mortbay.component.AbstractLifeCycle [ERROR] class file for
> org.mortbay.component.AbstractLifeCycle not found [ERROR] server = new
> Server(port); [ERROR]
> \Users\I064832\Desktop\shindig\java\gadgets\src\test\java\org\apache\shindig\gadgets\http\Fa
> keHttpServer.java:[33,14] cannot access
> org.mortbay.component.LifeCycle [ERROR] class file for
> org.mortbay.component.LifeCycle not found [ERROR] context = new
> Context(server, "/", Context.SESSIONS); [ERROR]
> \Users\I064832\Desktop\shindig\java\gadgets\src\test\java\org\apache\shindig\gadgets\http\Fa
> keHttpServer.java:[35,10] doStart() has protected access in
> org.mortbay.jetty.Server [ERROR]
> \Users\I064832\Desktop\shindig\java\gadgets\src\test\java\org\apache\shindig\gadgets\http\Fa
> keHttpServer.java:[42,10] doStop() has protected access in
> org.mortbay.jetty.Server [ERROR]
> \Users\I064832\Desktop\shindig\java\gadgets\src\test\java\org\apache\shindig\gadgets\http\Ba
> sicHttpFetcherTest.java:[53,15] operator != cannot be applied to
> org.apache.shindig.gadgets.http.Ech oServer,<nulltype> . . .

我看到Shindig 2.0在一年前发布,也许Shindig的代码与它的依赖关系不匹配? 如何消除这些错误? 谢谢, Tomer的

1 个答案:

答案 0 :(得分:1)

这看起来像某个版本的Jetty和Shindig中的代码不匹配。

您可能拥有本地maven工件或自定义maven配置。如果是这种情况,您可以将其删除并重试。在类似unix的系统上,这涉及删除~/.m2/repository的内容。