gpt4 book ai didi

java - Maven 项目 : SWT 3. 5 依赖 : any official public repo?

转载 作者:太空狗 更新时间:2023-10-29 22:41:52 26 4
gpt4 key购买 nike

好吧,简而言之,我可能需要获取新的 SWT 版本,而不是我们现在使用的 3.3。该项目现在只有这个依赖项并且可以正常构建:

<dependency>
<groupId>org.eclipse.swt.win32.win32</groupId>
<artifactId>x86</artifactId>
<version>3.3.0-v3346</version>
</dependency>

AFAICGoogle,公共(public) Maven 仓库中没有更新的版本: http://repo1.maven.org/maven2/org/eclipse/swt/

所以:

  1. 是否有一些公共(public)的 maven repo 最近的构建?
  2. 如果没有,你在哪里获取您在本地安装的 jar 和/或在您的公司 Nexus 中?
  3. 任何 groupId/artifactId你知道的建议/约定?

TIA

PS:对于 Eclipse 产品站点布局,我基本上是个菜鸟,经常迷失在 Google 搜索结果和/或 Eclipse 站点本身中……所以虽然答案对您来说可能很明显,但对您来说可能并非如此我,甚至回顾过去。

最佳答案

我在 github 上为 windows、Linux 和 osx Artifact 创建了一个 maven 仓库:

https://github.com/maven-eclipse/swt-repo

要使用它,只需将以下内容放入您的 pom.xml 中:

<repositories>
<repository>
<id>swt-repo</id>
<url>https://raw.githubusercontent.com/maven-eclipse/swt-repo/master/</url>
</repository>
</repositories>

然后您可以只引用与您的平台相关的 SWT 依赖项。例如:

    <dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.win32.win32.x86</artifactId>
<version>4.4</version>
</dependency>

对于其他平台,只需将 artifactId 替换为合适的值即可:

  • org.eclipse.swt.win32.win32.x86
  • org.eclipse.swt.win32.win32.x86_64
  • org.eclipse.swt.gtk.linux.x86
  • org.eclipse.swt.gtk.linux.x86_64
  • org.eclipse.swt.cocoa.macosx
  • org.eclipse.swt.cocoa.macosx.x86_64

此外,此存储库还提供 SWT 4.3.2、4.3.1、4.3.0、4.2.2、4.2.1、3.8、3.7.2 和 3.5.1 的 Artifact 。

我们使用基于 selenium 的方法在新 SWT 版本发布时自动部署它们。自动化的源代码是开放的,可以在 github 上找到:

https://github.com/hennr/swt-release-fetcher

编码愉快!

关于java - Maven 项目 : SWT 3. 5 依赖 : any official public repo?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5096299/

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