Set a Target Platform for pom.xml Based Repositories

喜夏-厌秋 提交于 2019-12-02 04:15:21

问题


In Tycho there are two ways to define the target platform: a target file and the <repositories> tag of the pom.xml. According to the manual, both can be used; they just have different drawbacks.

The target file is easy and straightforward, especially if you worked with Eclipse PDE before switching to Tycho.

What I don't get is how do you develop against a target definition defined in the pom.xml.

Dependencies are not added to a "Maven Dependencies" folder in the Java project, like they are for plain Maven projects. So Eclipse can't resolve them and your code doesn't even compile. And even if it does for some miracle reason... you cannot start a product or run tests.

All of this, because Eclipse needs a target platform to run. And the standard one (the plug-ins folder of Eclipse) is usually not the correct one for the project.

So how do you tell Eclipse that your target platform is defined in the pom.xml? How do you develop using only the <repositories> tag?

来源:https://stackoverflow.com/questions/54143472/set-a-target-platform-for-pom-xml-based-repositories

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!