简体   繁体   English

Eclipse不会下载Maven的依赖项

[英]Eclipse doesn't download dependencies for Maven

这是我在尝试创建新的Maven项目时收到的消息

I've searched on internet about this problem and i saw there are a lot of people with same problem. 我在互联网上搜索过这个问题,我看到有很多人有同样的问题。 But non of the solutions that I found helped me. 但是我找到的解决方案没有帮助我。 I'm not using proxy, my firewall is disable, I'm beginner in Java and really bored because i really want practice. 我没有使用代理,我的防火墙是禁用的,我是Java的初学者,真的很无聊,因为我真的很想练习。 I will appreciate your help. 我将感谢你的帮助。 Thanks 谢谢

pom file. pom文件。

` `

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.teste</groupId>
  <artifactId>teste</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>war</packaging>
  <name>teste</name>
</project>

` ` 完成mvn eclipse:eclipse on prompt

Please guys i don't wanna open anoter question in Stack Overflow. 请伙计们,我不想在Stack Overflow中打开anoter问题。 I have no ideia what can I do here... 我没有想到我能在这做什么......

首选项 Verify your eclipse maven settings. 验证你的eclipse maven设置。 http://i.stack.imgur.com/CzKLN.png http://i.stack.imgur.com/CzKLN.png

assuming your pom file is ok, I would recommend doing all this from the command line. 假设您的pom文件正常,我建议从命令行执行所有这些操作。 the maven plugin for eclipse is jenky. 日食的maven插件是jenky。 to build at the command line, first close eclipse. 在命令行建立,首先关闭eclipse。 then go to your project folder and type: 然后转到您的项目文件夹并键入:

mvn package

then type 然后键入

mvn eclipse:eclipse

this will create a new eclipse workspace file. 这将创建一个新的eclipse工作区文件。 open eclipse and you should have all the dependencies resolved. 打开eclipse,你应该解决所有的依赖关系。

you might also want to read Maven in 5 Minutes . 您可能还想在5分钟内阅读Maven

我解决了我再次安装Windows的问题,遗憾的是我找不到答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM