在 Maven 存储库中哪里可以找到 EMF 工件

发布于 2024-09-25 04:58:09 字数 149 浏览 0 评论 0原文

我们在 Eclipse 之外使用 EMF 进行开发,因此使用 Maven 进行构建。我的问题是在哪里可以找到 EMF 工件,如果可以找到哪个版本。

BTW 是否有任何工具可以自动将 Eclipse 工件与源代码交叉发布到 Maven 存储库?

雷纳特

We are developing with EMF outside Eclipse therefore using Maven for build. My question is where can I find EMF artifacts, and if yes which version.

BTW Is there any tool to automatically cross-publish Eclipse artifacts with sources to Maven repository?

Renat

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不疑不惑不回忆 2024-10-02 04:58:09

您必须手动安装/部署它们。我使用此命令行:

mvn eclipse:make-artifacts -DstripQualifier=true -DeclipseDir=.../eclipse

将工件放入本地 M2 存储库中。

之后,我运行 此脚本将源 JAR 移动到正确的位置,以便 Maven 拾取它们。

部署它们的最简单方法是使用 Nexus 或类似的 Maven 缓存/代理并复制右侧的文件地方。

You must install/deploy them manually. I use this command line:

mvn eclipse:make-artifacts -DstripQualifier=true -DeclipseDir=.../eclipse

to get the artifacts into the local M2 repo.

After that, I run this script to move the source JARs to the right place for Maven to pick them up.

The easiest way to deploy them is to use Nexus or a similar Maven cache/proxy and copy the files in the right place.

自由如风 2024-10-02 04:58:09

我已经通过正确处理源修补了 maven-eclipse-plugin (它会自动上传 .source- 插件作为源工件),并且添加了两个附加属性:

  • -DpomDeps - True (默认)生成pom deps 基于 OSGi 清单。否则为 False
  • -DgroupIds - 要包含的以逗号分隔的 groupId 列表。设置后,它会过滤掉任何不以任何逗号分隔字符串开头的插件。它还提供了一种控制groupId的方法(当-DgroupIds=org.eclipse时,您可以使用groupId=org.eclipse和artifactId=emf.core,而不是groupId=org.eclipse.emf和artifactId=core)

我仍然需要提交它的补丁。

I've patched maven-eclipse-plugin with proper handling of sources (it automatically uploads .source- plugins as a sources artifact) and I have added two additional properties:

  • -DpomDeps - True (default) generates pom deps based on the OSGi manifest. False otherwise
  • -DgroupIds - A comma separated list of groupIds to include. When set it filters out any plugin that doesnt start with any of the comma separated strings. It also provides a way to control the groupId (instead of groupId=org.eclipse.emf and artifactId=core you could have groupId=org.eclipse and artifactId=emf.core when -DgroupIds=org.eclipse)

I still need to submit the patch for it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文