• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

maven-eclipse/maven-eclipse.github.io: Eclipse SWT for Maven Users

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

maven-eclipse/maven-eclipse.github.io

开源软件地址(OpenSource Url):

https://github.com/maven-eclipse/maven-eclipse.github.io

开源编程语言(OpenSource Language):

Shell 88.7%

开源软件介绍(OpenSource Introduction):

Eclipse SWT for Maven Users

SWT is not available in Maven Central making it difficult to use in Maven projects. Existing Maven repos are either not maintained and abandoned, don't have all platforms, don't contain sources, don't contain the debug jar, or don't provide a reliable, automatic way to update or reproduce the repository. This standard Maven repo is generated by a script that automatically downloads and repackages the official SWT releases.

Looking for the 4.5 milestone (M) and release candidate (RC) releases? See the dev-releases repository

This repo contains SWT 4.2 to 4.5 on all supported platforms

  • Stable releases
  • 4.6.1 - 7 Sep 2016
  • 4.6 - 6 Jun 2016
  • 4.5.2 - 12 Feb 2016
  • 4.5.1 - 4 Sep 2015
  • 4.5 - 3 Jun 2015
  • 4.4.2 - 4 Feb 2015
  • 4.4.1 - 25 Sep 2014
  • 4.4 - 6 Jun 2014
  • 4.3.2 - 21 Feb 2014
  • 4.3.1 - 11 Sep 2013
  • 4.3 - 5 Jun 2013
  • 4.2.2 - 23 Feb 2012
  • 4.2.1 - 12 Sep 2011
  • 4.2 - 8 Jun 2012
  • Platforms
  • org.eclipse.swt.win32.win32.x86
  • org.eclipse.swt.win32.win32.x86_64
  • org.eclipse.swt.cocoa.macosx (Obsoleted after 4.4.2)
  • org.eclipse.swt.cocoa.macosx.x86_64
  • org.eclipse.swt.gtk.linux.x86
  • org.eclipse.swt.gtk.linux.x86_64
  • org.eclipse.swt.gtk.solaris.sparc
  • org.eclipse.swt.gtk.solaris.x86
  • org.eclipse.swt.gtk.aix.ppc
  • org.eclipse.swt.gtk.aix.ppc64
  • org.eclipse.swt.gtk.hpux.ia64
  • org.eclipse.swt.gtk.linux.ppc
  • org.eclipse.swt.gtk.linux.ppc64
  • org.eclipse.swt.gtk.linux.ppc64le
  • org.eclipse.swt.gtk.linux.s390 (Obsoleted after 4.4.2)
  • org.eclipse.swt.gtk.linux.s390x (Obsoleted after 4.4.2)
  • org.eclipse.swt.win32.wce_ppc.arm.j2se (4.2 and 4.2.1 only, see Windows CE section at the end)
  • org.eclipse.swt.win32.wce_ppc.arm.j2me (4.2 and 4.2.1 only, see Windows CE section at the end)
  • Each ZIP is extracted as follows
  • swt.jar - Main JAR
  • swt-debug.jar - Add <classifier>debug</classifier>
  • src.zip - Sources classifier, most IDE's can handle downloading this

Want JFace support? Please see Issue #1

Why?

Eclipse #199302 was an open bug report to to publish SWT to Maven however its been stalled since 2007. Recently this has been reconsidered in Eclipse #484004, also see Issue #6

Currently the only available automated downloader is swt-release-fetcher which is no longer maintained. It has been replaced with a much simpler and more flexible bash script that you can even use to setup your own independent repo.

As of creating this project, existing public SWT maven repositories are not usable:

How to use

If you were using swt-repo on Google Code this is a drop in replacement.

Add this to your pom.xml: (Gradle, Ivy, and other builders users: The information is the same)

<repositories>
	<repository>
		<id>maven-eclipse-repo</id>
		<url>http://maven-eclipse.github.io/maven</url>
	</repository>
</repositories>

Then add dependencies for each platform you wish to support. The most common are

<dependencies>
	<dependency>
		<groupId>org.eclipse.swt</groupId>
		<artifactId>org.eclipse.swt.win32.win32.x86</artifactId>
		<version>${swt.version}</version>
		<!-- To use the debug jar, add this -->
		<classifier>debug</classifier>
	</dependency>
	<dependency>
		<groupId>org.eclipse.swt</groupId>
		<artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId>
		<version>${swt.version}</version>
	</dependency>
	<dependency>
		<groupId>org.eclipse.swt</groupId>
		<artifactId>org.eclipse.swt.gtk.linux.x86</artifactId>
		<version>${swt.version}</version>
	</dependency>
	<dependency>
		<groupId>org.eclipse.swt</groupId>
		<artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
		<version>${swt.version}</version>
	</dependency>
	<dependency>
		<groupId>org.eclipse.swt</groupId>
		<artifactId>org.eclipse.swt.cocoa.macosx.x86_64</artifactId>
		<version>${swt.version}</version>
	</dependency>
</dependencies>

WCE - Windows CE

Ignore this section unless your targeting Windows CE

Eclipse released these differently from all other platforms

  • Only released for 4.2 and 4.2.1
  • DLL is a standalone artifact: classifier dll, extension dll
  • No debug jar was released



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
gatling/gatling-maven-plugin: Gatling Plugin for Maven发布时间:2022-08-17
下一篇:
making/spring-boot-blank: Spring Boot Maven archetype发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap