美文网首页
在阅读vogella 的 EclipseTycho 教程遇到的一

在阅读vogella 的 EclipseTycho 教程遇到的一

作者: QingMings | 来源:发表于2019-03-26 13:30 被阅读0次

    在你阅读到第11章的时候,有可能会一直遇到 一个 org.eclipse.ui.ide.application 找不到的错误,You requested to install 'bundle org.eclipse.ui.ide.application 0.0.0' but it could not be found
    其实是教程里的一个坑,
    在 第10章里

    image.png
    用的是Eclipse RCP

    到第11章里


    image.png

    换成了 Eclipse SDK

    教程里没有任何文字说明,只是在截图中有体现,稍微不注意就掉坑里了
    嗯,这是爬出来的第一个坑。

    接着运行 集成测试的时候,遇到的
    applicationXMI parameter not set and no branding plugin defined.
    找不到布局描述文件 就是Application.e4xmi 文件
    这个教程中也没有明确提到,测试工程需要依赖 rcp 插件工程。

    image.png

    这就是教程中的神坑。不注意基本爬不出来。浪费我好多时间。
    不是看到这个,我估计我爬不出来。
    https://www.eclipse.org/lists/tycho-user/msg07479.html

    目前遇到的坑就这些,后续遇到再补充吧。
    希望你遇到坑时候,可以发现这个文章吧。


    2019-03-27 又入新坑

    在阅读到第13章的时候,13.5 [Building source features] (https://www.vogella.com/tutorials/EclipseTycho/article.html#building-source-features) 的时候,教程中贴出了 pom 的配置,但并未说要在何处添加。我一开始添加到了 releng 下的 pom 中,然后开始构建。一直遇到一个错误

    ERROR] Cannot resolve project dependencies:
    [ERROR]   Software being installed: com.vogella.tycho.update.source raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT
    [ERROR]   Missing requirement: com.vogella.tycho.feature.source.feature.group 1.0.0.201903270728 requires 'org.eclipse.equinox.p2.iu; com.vogella.tycho.feature.feature.group [1.0.0.201903270728,1.0.0.201903270728]' but it could not be found
    [ERROR]   Cannot satisfy dependency: com.vogella.tycho.update.source raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT depends on: org.eclipse.equinox.p2.iu; com.vogella.tycho.feature.source.feature.group [1.0.0,1.0.1)
    [ERROR] 
    [ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
    [ERROR] Cannot resolve dependencies of MavenProject: com.vogella.tycho:com.vogella.tycho.update.source:1.0.0-SNAPSHOT @ D:\ide\Eclipse\eclipse_rcp\workspace\com.vogella.tycho.root\releng\com.vogella.tycho.update.source\pom.xml: See log for details -> [Help 1]
    [ERROR] 
    

    后我尝试把稳重的配置写到 configuration 的pom中,才构建成功了。


    image.png

    (其实我中途对这个错谷歌了好久,一直没什么收获,后来一直尝试。中途也这样配置过,但是不知道哪里没呢弄对,于正确答案错过了,在尝试的过程中遇到了另一个教程

    按照他给的github地址给的github地址

    增加了好几个配置,不知道是不是也起了一定的作用,这里也贴出来吧


    image.png

    不知道怎么搞得,瞎猫碰死耗子,构建出来了 source .
    还以为找到了解决方法。最后有一步步做减法。回到了起初的样子。才发现是 pom配置的位置的不对吧。 从掉进坑里,到爬出坑里,爬了8个小时。

    最后给个截图,纪念爬坑的过程


    image.png

    相关文章

      网友评论

          本文标题:在阅读vogella 的 EclipseTycho 教程遇到的一

          本文链接:https://www.haomeiwen.com/subject/wujgvqtx.html