2013-01-11 38 views
-2

我可以问,为什么我不能部署基于Eclipse 网状3.6.1.final而且我下载的版本的原因是netty-3.6.1.Final-dist.tar.bz2Netty的部署过程

,因为我有依赖关系标签遵循这一在pom.xml中,我不能解决错误

<dependency> 
    <groupId>io.netty</groupId> 
    <artifactId>netty</artifactId> 
    <version>3.6.1.Final-dist</version> 
    <scope>compile</scope> 
</dependency> 

我按照步骤是https://netty.io/Main/Downloads

+0

错误是什么? –

+0

我所有的文件等resolve..after我所做的更改 io.netty 网状 3.6.1.Final mpswift

回答

0

该文件应该是从Maven的网站上下载,不netty.io,不要把-dist在您的版本。

这对我的作品

<dependency> 
    <groupId>io.netty</groupId> 
    <artifactId>netty</artifactId> 
    <version>3.5.11.Final</version> 
</dependency> 

然后你使用Maven插件在Eclipse运行方式的pom.xml。

+0

嗨尼古拉库兹涅佐夫, 我仍然无法编译我的scr文件夹仍然有错误。 我试着干净的构建和错误仍然存​​在 – mpswift

0

尝试设置的依赖为:

<dependency> 
    <groupId>io.netty</groupId> 
    <artifactId>netty</artifactId> 
    <version>3.5.11.Final</version> 
</dependency> 

至于建议由尼古拉。

然后转到项目根目录并从命令行运行:mvn compile。那应该下载你的依赖。然后刷新eclipse项目,你应该很好。

否则,请提供有关错误的更多具体信息。