Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Add JFace #1

Open
TheLQ opened this issue May 28, 2015 · 21 comments
Open

Add JFace #1

TheLQ opened this issue May 28, 2015 · 21 comments

Comments

@TheLQ
Copy link
Member

TheLQ commented May 28, 2015

I've never used JFace, whats JARs are required to get it working? Where can I find them? Is OSGI required?

It should be easy to modify the scrape script for this

@msangel
Copy link

msangel commented Aug 1, 2015

Good example of Jface maven repo is:
http://www.jabylon.org/maven/ (I have no relation in any way to this server, just found it during googling)

And this is my dependency tree in project (note: x64 platform):

[INFO] +- org.eclipse.swt.win32.win32:x86_64:jar:3.102.0:compile
[INFO] \- org.eclipse.jface:text:jar:3.8.101:compile
[INFO]    +- org.eclipse.core:runtime:jar:3.10.0-v20140318-2214:compile (version selected from constraint [3.5.0,4.0.0))
[INFO]    |  +- org.eclipse:osgi:jar:3.10.0-v20140606-1445:compile (version selected from constraint [3.7.0,4.0.0))
[INFO]    |  +- org.eclipse.equinox:common:jar:3.6.200-v20130402-1505:compile (version selected from constraint [3.6.100,4.0.0))
[INFO]    |  +- org.eclipse.core:jobs:jar:3.6.0-v20140424-0053:compile (version selected from constraint [3.2.0,4.0.0))
[INFO]    |  +- org.eclipse.equinox:registry:jar:3.5.400-v20140428-1507:compile (version selected from constraint [3.4.0,4.0.0))
[INFO]    |  +- org.eclipse.equinox:preferences:jar:3.5.200-v20140224-1527:compile (version selected from constraint [3.4.0,4.0.0))
[INFO]    |  +- org.eclipse.core:contenttype:jar:3.4.200-v20140207-1251:compile (version selected from constraint [3.3.0,4.0.0))
[INFO]    |  \- org.eclipse.equinox:app:jar:1.3.200-v20130910-1609:compile (version selected from constraint [1.0.0,))
[INFO]    +- org.eclipse:text:jar:3.5.300:compile (version selected from constraint [3.5.0,4.0.0))
[INFO]    |  \- org.eclipse.core:commands:jar:3.6.100:compile (version selected from constraint [3.5.0,4.0.0))
[INFO]    +- org.eclipse:swt:jar:3.102.0:compile (version selected from constraint [3.6.0,4.0.0))
[INFO]    \- org.eclipse:jface:jar:3.9.0:compile (version selected from constraint [3.5.0,4.0.0))

I know, my tree start root from org.eclipse.jface:text:jar and contain some additional jface dependencies.

Hope this help.

@bpieber
Copy link

bpieber commented Aug 3, 2015

What JAR files are needed is explained here: https://wiki.eclipse.org/JFace#Using_JFace_outside_the_Eclipse_platform

I guess it is not as easy as SWT because one seems to have to extract the necessary files from an Eclipse download. One probably has to scrape first http://download.eclipse.org/eclipse/downloads/ to get at the drops and then scrape http://download.eclipse.org/eclipse/downloads/drops4/R-4.5-201506032000/ to download a Platform Runtime Binary.

Thanks for your efforts with SWT.

@bpieber
Copy link

bpieber commented Aug 3, 2015

I used the following bash script on OS X to download the necessary JAR files. Hope this helps.

#!/bin/bash
DROP_NAME=R-4.5-201506032000
FILE_NAME=eclipse-platform-4.5-macosx-cocoa-x86_64.tar.gz
curl "http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/eclipse/downloads/drops4/$DROP_NAME/$FILE_NAME" -o $FILE_NAME
tar -xf $FILE_NAME */org.eclipse.core.commands_*.jar
tar -xf $FILE_NAME */org.eclipse.equinox.common_*.jar
tar -xf $FILE_NAME */org.eclipse.jface_*.jar
tar -xf $FILE_NAME */org.eclipse.osgi_*.jar
mv Eclipse.app/Contents/Eclipse/plugins/* .
rm -rf Eclipse.app

@gavvvr
Copy link

gavvvr commented Dec 7, 2015

JFace is not updated in above repo

@545ch4
Copy link

545ch4 commented Jan 18, 2016

I added the jars mentioned my @bpieber and created the poms. Just add

<dependency>
  <groupId>org.eclipse.jface</groupId>
  <artifactId>org.eclipse.jface</artifactId>
  <version>3.11.0</version>
</dependency>

to your dependencies at pom.xml and add my fork to the list of repositories...

<repository>
  <id>545ch4</id>
  <url>https://raw.githubusercontent.com/545ch4/maven-eclipse.github.io/master/maven</url>
</repository>

See my PR.

@545ch4
Copy link

545ch4 commented Feb 2, 2016

Anyone tried?

@bbarker
Copy link

bbarker commented May 7, 2016

@545ch4 Seems to work for me - thanks!

@bmarwell
Copy link

Any update on having jface in this repository?

@craigsumner
Copy link

I'd vote for this.

@bmarwell
Copy link

👍

@ghost
Copy link

ghost commented Nov 4, 2016

You can use my fork:

<repository>
     <id>michiel-vanderlee_maven-eclipse-repo</id>
    <url>https://raw.githubusercontent.com/MichielVanderlee/maven-eclipse.github.io/master/maven</url>
</repository>

I've added all other eclipse jars for 4.5.2 and up. This includes JFace

@oeil
Copy link

oeil commented May 24, 2017

Hi guys, no news about having a jface repo (or include jface jars in this repo) for standalone app using SWT and JFACE?

@albertus82
Copy link

Hi @oeil, please take a look at Central Repository: org/eclipse/platform and Eclipse Neon.2 is on Maven Central for more info.

@oeil
Copy link

oeil commented May 25, 2017

@albertus82 awesome! thanks

@Abbreviation-g
Copy link

Hi @oeil, please take a look at Central Repository: org/eclipse/platform and Eclipse Neon.2 is on Maven Central for more info.

thank you! that's the true answer。

@Abbreviation-g
Copy link

Hi @oeil, please take a look at Central Repository: org/eclipse/platform and Eclipse Neon.2 is on Maven Central for more info.

but how to use it?

@albertus82
Copy link

but how to use it?

Try browsing https://mvnrepository.com/artifact/org.eclipse.platform

@Abbreviation-g
Copy link

Abbreviation-g commented Jun 12, 2019

but how to use it?

Try browsing https://mvnrepository.com/artifact/org.eclipse.platform

this is my pom.xml
<dependency> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.jface</artifactId> <version>3.15.0</version> </dependency> </dependencies> <repositories> <repository> <id>swt-jface</id> <name>repo1</name> <url>https://repo1.maven.org/maven2</url> </repository> </repositories>

but it coms several errors, like this:
"No versions available for org.eclipse.platform:org.eclipse.swt.gtk.linux.aarch64:jar:[3.105.2,3.105.2] within specified range"

@Abbreviation-g
Copy link

Abbreviation-g commented Jun 12, 2019

Finally, i found out i have to add 'exclusions' to 'dependency'. The pom.xml just like this:
<dependency> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId> <version>3.110.0</version> <exclusions> <exclusion> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.swt.gtk.linux.aarch64</artifactId> </exclusion> <exclusion> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.swt.gtk.linux.arm</artifactId> </exclusion> </exclusions> </dependency>
<dependency> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.jface</artifactId> <version>3.15.0</version> <exclusions> <exclusion> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.swt.gtk.linux.aarch64</artifactId> </exclusion> <exclusion> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.swt.gtk.linux.arm</artifactId> </exclusion> <exclusion> <groupId>org.eclipse.platform</groupId> <artifactId>org.eclipse.swt</artifactId> </exclusion> </exclusions> </dependency>

And the repository setting is:
<repository> <id>repo1</id> <name>repo1</name> <url>https://repo1.maven.org/maven2</url> </repository>

@stephan-herrmann
Copy link

BTW, feel free to check this presentation on how maven can be tweaked to handle swt dependencies in a platform independent way - without any exclusions (slides - in particular #29 & #30). I know that approach is unusual, but so was its goal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests