源码编译Eclipse-PTP插件遇到Failed to resolve target definition问题的解决方法
工作需求,需要用源码编译eclipse的ptp插件,官网很良心,不仅开源代码还把maven的pom.xml已经帮我们写好了,但是在编译的时候还是遇到了一点小问题,故记录下来以供参考。
1、编译环境:
CentOS x86_64
Eclipse 4.7(oxygen)
Maven 3.5.2
Ant 1.9.9
2、报错详情如图,即maven报错找不到s2016120518342这个repository
3、解决方法:
在源代码文件夹处使用
grep -rn "xxx20161205183421xxx" ./
查找到当前报错的库网址定义在哪一个文件当中,然后将这个网址放到浏览器,通过前几级目录,找到目前最新的库地址,在文件中替换即可。
替换后截图: