如何编译请参考:How To Build nGrinder from scratch using Maven

问题描述:
在编译过程中提示如下信息:

[WARNING] The POM for grinder:grinder-patch:jar:3.9.1-patch is missing, no dependency information available
[ERROR] Failed to execute goal on project ngrinder-starter: Could not resolve dependencies for project org.ngrinder:ngrinder-starter:jar:3.4.1-SNAPSHOT: Failure to find grinder:grinder-patch:jar:3.9.1-patch in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven-repo has elapsed or updates are forced -> [Help 1]

问题分析:
看这个提示就是依赖找不到,发现官网已经使用 3.11 了,就对应升级了版本,问题得到解决
here is my solution by modified pom.xml in root
net.sf.grinder
grinder

3.11

<!--
grinder
grinder-patch
3.9.1-patch

Commons -->

然而又有了新问题:

 [WARNING] The POM for sigar:sigar-native:jar:1.0 is missing, no dependency information available
[ERROR] Failed to execute goal on project ngrinder-core: Could not resolve dependencies for project org.ngrinder:ngrinder-core:jar:3.4.1-SNAPSHOT: Failure to find sigar:sigar-native:jar:1.0 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven-repo has elapsed or updates are forced -> [Help 1]

解决方案:
看来接下来的同样的问题会不断的发生,因此和 ngrinder 作者聊了这个问题,我通过升级版本来解决被否定了,作者 JunHo Yoon 提供了解决方案和不能升级方案的原因!

顺便和 JunHo Yoon 说了下 ngrinder-monitor 的问题:

总结:

  1. 这里给大家提供一下解决问题的思路,不要碰到问题就网络搜索,建议认真的分析问题,找到问题的根本原因
  2. 开源的好处就在这里,能够和官方的大牛面对面交流,一句话问题就迎刃而解
  3. 这里还是感谢@JunHo Yoon 第一时间给我做了回复
  4. 没有解决不了的问题


↙↙↙阅读原文可查看相关链接,并与作者交流