简体   繁体   中英

Eclipse can't resolve own maven builds on jenkins which are not in eclipse

Scenario: Working with eclipse and m2eclipse. Using SVN. Having a CI Jenkins Server, which builds all the own developed dependencies and complete applications, which are using these dependencies.

What I want to do: I don't want to "check out" every dependency in eclipse which are related to the applications. Instead I'd like to use the "last stable" builds of the internal dependencies of Jenkins. They should also be accessed like every external project on the Maven Central Repository.

The internal dependencies are already in the local repository and my workspace, but eclipse gets compilation errors because it can't finde the classes of the depencies. If I am checking out the project of my SVN, then the compilation errors are resolved.

The remote repository (Jenkins server) is configured in eclipse. So it's possible to resolve the own developed dependencies.

What I've already tried to do, but was no solution:

  • In the Jenkins projects I added maven goals (clean test install), but that didn't work
  • Rebuild indexes on remote and local repositories
  • Updated the POM on the application projects

What am I doing wrong?

首先,安装诸如Nexus,Artifactory或Archiva之类的存储库管理器,然后将构建结果部署到其中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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