Nexus Maven m2Eclipse 问题
我在 tomcat 实例上安装了最新的 Nexus 1.9。这是我采取的步骤。
- 将 War 文件复制到 Tomcat Webapps 目录。
- 启动 Tomcat
- 并登录 Nexus 管理控制台。
- 完成并将所有代理存储库“下载远程索引设置”从 False 设置为 True 并保存设置。
- 重新索引所有存储库。
- 还确保是快照而不是存储库策略的发布。
- 转到公共存储库并将所有存储库添加到可用存储库部分并保存设置
- 重新索引公共存储库。
下载Maven 3.0并安装。 我将 settings.xml 更新为类似于以下示例中的内容 http://www.sonatype.com/books /nexus-book/reference/maven-sect-single-group.html 我的网址指向“http://localhost:8080/nexus-webapp-1.9.0/content/groups/public”
然后我将 m2Eclipse 安装到我的新 Eclipse 3.6 安装中。
到目前为止,一切都很顺利,但是当我尝试创建一个全新的 Maven 项目时,我收到错误,当我尝试添加依赖项并搜索时,我什么也没得到。
我得到的错误是 描述 资源路径 位置类型 无法计算构建计划:无法在 http://localhost:8080/nexus-webapp-1.9.0/content/groups/public/ 被缓存在本地存储库中,解析在 nexus 的更新间隔过去或强制更新之前,不会重新尝试 com.roo.sample 未知的 Maven 问题
我还下载了 Springsource STS 并尝试使用它而不是 Eclipse 3.6,但没有成功。
我也有很多关于罐子丢失的错误。
大约两年前,我使用了 Nexus 和 Maven,我记得它的安装和使用非常容易。我记得去添加依赖项并能够毫无问题地搜索大多数公共 jar。这让我抓狂。
I installed the latest Nexus 1.9 on to my tomcat instance. Here are the steps I took.
- Copied War file to Tomcat Webapps directory.
- Started Tomcat
- Logged into Nexus Admin Console.
- went through and set all the proxy repositories "Download Remote Indexes Settings" from False to True and saved settings.
- Reindexed all repositories.
- Also made sure to be snapshot and not releases for Repository Policy.
- went to the Public Repositories and added all the repositories to Available Repositories section and saved settings
- Reindexed Public Repositories.
Downloaded Maven 3.0 and installed it.
I updated my settings.xml to be like the one in the following example
http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html with my url pointing to "http://localhost:8080/nexus-webapp-1.9.0/content/groups/public"
I then went over and installed m2Eclipse into my new Eclipse 3.6 install.
Everything up to this point was going smoothly but when I try to create a brand new Maven Project I get errors and when I try to add dependencies and search I get nothing.
The Error I'm getting is
Description Resource Path Location Type
Could not calculate build plan: Failure to find org.codehaus.mojo:aspectj-maven-plugin:jar:1.0 in http://localhost:8080/nexus-webapp-1.9.0/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced com.roo.sample Unknown Maven Problem
I also downloaded Springsource STS and trying using that instead of Eclipse 3.6 with no luck.
I also had a ton of errors about jars missing.
I worked with Nexus and Maven about 2 years ago and I remember it being pretty easy to install and get going. I remember going over to add dependencies and being able to search for most of the public jars with no problem. This is driving me nuts.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试通过“-U”标志强制 Maven 检查存储库。这将忽略本地存储库中的任何 *.lastUpdated 文件。
You could try to force maven to check the repository by the "-U" flag. This will disregard any *.lastUpdated files in your local repository.
对相关项目进行“索引”和“过期缓存”。
删除相关的*.lastUpdated
文件。
Index" and "Expire Cache" on the items in question.
remove the relevant *.lastUpdated
files.