将Maven依赖项添加到Eclipse插件项目 [英] Add a Maven dependency to a Eclipse Plugin project

查看:305
本文介绍了将Maven依赖项添加到Eclipse插件项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个简单的问题:我需要将Maven依赖项添加到Eclipse插件项目中. 该项目没有POM文件,因此我将其转换为Maven文件. 现在我有plugin.xml文件和pom.xml文件. POM包含我需要满足的依赖关系,但是它被忽略了.我的意思是,我无法在引用该导入的源代码中解析该导入.

just a simple question: I need to add a Maven dependency to a Eclipse Plugin project. The project has not a POM file, so I converted it to a Maven one. Now I have plugin.xml file and pom.xml file. POM contains the dependency I need to satisfy, but it's ignored; I mean, I can't resolve an import in source code referring to that import.

你能帮我吗? ty

我阅读了有关Tycho插件的信息,但是在线配置不起作用.

I read about Tycho plugin, but online configurations don't work.

推荐答案

您可能想检查 Orbit项目基本上是一个库的存储库,使它们可用于Eclipse插件开发. Orbit库中特别好的一点是它们还提供了源.因此,可以查看实现并获取正确的JavaDoc等.

The Orbit project is basically a repository of libraries to make them available for Eclipse Plug-in Development. What is especially nice in the Orbit libraries is that they also provide the sources. Thus, it is possible to view the implementation and get proper JavaDoc and so on.

示例

可以使用更新站点找到com.google.gson库

One can find the com.google.gson library using the update site

https://download.eclipse.org/tools/orbit/downloads/drops/R20190602212107/repository

因此,R20190602212107部分是指您在项目的下载页面.

这篇关于将Maven依赖项添加到Eclipse插件项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆