gpt4 book ai didi

java - 有没有办法在 eclipse 插件中包含常规的 Maven 依赖项

转载 作者:搜寻专家 更新时间:2023-11-01 02:47:01 24 4
gpt4 key购买 nike

我正在构建一个框架,并希望将其用作独立的 java 应用程序和导出 java 项目中所有包的 eclipse 插件。

我目前的做法是拥有两个项目(java + eclipse 插件),构建 java 项目,复制 jar 文件,将文件添加到插件的路径,然后(手动)导出所有包。

有没有办法使用 maven 自动执行此过程?

最佳答案

eclipse Tycho项目旨在使用 Maven 构建 Eclipse 插件。

Tycho is a set of Maven plugins and extensions for building Eclipse plugins and OSGi bundles with Maven. Eclipse plugins and OSGi bundles have their own metadata for expressing dependencies, source folder locations, etc. that are normally found in a Maven POM

您应该能够拥有一个项目,Tycho 将负责构建一个合适的 OSGi 包,包括 MANIFEST、xml 配置等。

关于java - 有没有办法在 eclipse 插件中包含常规的 Maven 依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19820142/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com