Code Monkey home page Code Monkey logo

maven-eclipse.github.io's 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.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 has an open bug report to to publish SWT to Maven however its been stalled since 2007: https://bugs.eclipse.org/bugs/show_bug.cgi?id=199302

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

maven-eclipse.github.io's People

Contributors

545ch4 avatar hennr avatar picsel2 avatar thelq avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.