-2

我能问为什么我不能在 Eclipse 上部署 netty 3.6.1.final 的原因吗?我下载的版本是netty-3.6.1.Final-dist.tar.bz2

正如我在依赖项选项卡中的 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

4

2 回答 2

0

尝试将依赖项设置为:

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

正如尼古拉所建议的那样。

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

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

于 2014-06-10T18:01:20.333 回答
0

该文件应该从 maven 网站下载,而不是 netty.io,不要放入-dist您的版本。

这对我有用

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

然后你使用 Maven 插件在 Eclipse 中作为 pom.xml 运行。

于 2013-01-11T06:26:46.657 回答