37
How to become an Eclipse committer in 20 minutes and to fork the Eclipse IDE

How to become an Eclipse committer in 20 minutes and fork the IDE

Embed Size (px)

DESCRIPTION

Describes how to build the Eclipse IDE

Citation preview

Page 1: How to become an Eclipse committer in 20 minutes and fork the IDE

How to become an Eclipse committer in 20 minutes and to fork the Eclipse IDE

Page 2: How to become an Eclipse committer in 20 minutes and fork the IDE

Lars VogelEclipse committer

Eclipse and Android developer

Company founder

Java Champion

vogella.com reaches 1.5 million readers per month

Page 3: How to become an Eclipse committer in 20 minutes and fork the IDE

First

lets b

ecome

a comm

itter

Then f

ork th

e Ecli

pse ID

E

Page 4: How to become an Eclipse committer in 20 minutes and fork the IDE

Tradionally the Eclipse

programming model made it

easy to add something on top of Eclipse.

Page 5: How to become an Eclipse committer in 20 minutes and fork the IDE

But what about changing the Eclipse IDE or

framework?

Page 6: How to become an Eclipse committer in 20 minutes and fork the IDE

New developers

It is Open Source, how hard can it be?

Page 7: How to become an Eclipse committer in 20 minutes and fork the IDE

This is really hard.

Page 8: How to become an Eclipse committer in 20 minutes and fork the IDE

I use IntelliJ

because Eclipse sucks

Page 9: How to become an Eclipse committer in 20 minutes and fork the IDE

I hope someone fixes this

bug because it

is really bad.... for

me

Page 10: How to become an Eclipse committer in 20 minutes and fork the IDE

A new age

GitTycho CBIGerrit

Page 11: How to become an Eclipse committer in 20 minutes and fork the IDE

Eclipse source

http://git.eclipse.org

Page 12: How to become an Eclipse committer in 20 minutes and fork the IDE

Search box

Page 13: How to become an Eclipse committer in 20 minutes and fork the IDE

Git clone

git clone git://git.eclipse.org/gitroot/e4/org.eclipse.e4.tools.git

Page 14: How to become an Eclipse committer in 20 minutes and fork the IDE

You fix and you commit

(locally)

Page 15: How to become an Eclipse committer in 20 minutes and fork the IDE

Now you are

a committer

Page 16: How to become an Eclipse committer in 20 minutes and fork the IDE

But, your patch or Gerrit request never

gets reviewed...

All right, I go and help Debian in this case..

Page 17: How to become an Eclipse committer in 20 minutes and fork the IDE

I use IntelliJ

because Eclipse sucks

Page 18: How to become an Eclipse committer in 20 minutes and fork the IDE

Or you can...

Page 19: How to become an Eclipse committer in 20 minutes and fork the IDE

Fork you!

Yeah!

Page 20: How to become an Eclipse committer in 20 minutes and fork the IDE

Eclipse Tycho

Page 21: How to become an Eclipse committer in 20 minutes and fork the IDE

Repository

Plug-ins

Page 22: How to become an Eclipse committer in 20 minutes and fork the IDE

Modules to build

Page 23: How to become an Eclipse committer in 20 minutes and fork the IDE

Component pom.xml

Page 24: How to become an Eclipse committer in 20 minutes and fork the IDE

mvn -clean install

Target

Page 25: How to become an Eclipse committer in 20 minutes and fork the IDE

Lets start small

I build the e4 tools

Page 26: How to become an Eclipse committer in 20 minutes and fork the IDE

Reality

# Clone the releng repogit clone git://git.eclipse.org/gitroot/e4/org.eclipse.e4.releng.git# Install the CBI build configurationmvn -f org.eclipse.e4.releng/cbi/eclipse-parent/pom.xml clean install

git clone git://git.eclipse.org/gitroot/e4/org.eclipse.e4.tools.git

mvn -clean install

Page 27: How to become an Eclipse committer in 20 minutes and fork the IDE

Simplification in its making

Bug 386114 - Avoid duplication of id and version in pom.xml and MANIFEST

Bug 403237 - o.e.e4.tools cannot be build with "mvn clean install"

Bug 361722 - [patch] Unable to install root level features into product install

Page 28: How to become an Eclipse committer in 20 minutes and fork the IDE

Build your own Eclipse IDE

All the cool kids are forking

Eclipse these days

Page 29: How to become an Eclipse committer in 20 minutes and fork the IDE

Build Eclipse IDE# clonegit clone -b master --recurse-submodules \git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git

git fetch origingit merge origin/mastergit pull --recurse-submodulesgit submodule update

# fix manifest.mf to pom.xml versionscd eclipse.platform.releng.aggregator/mvn -Dtycho.mode=maven -Dmaven.repo.local=${WORKSPACE}/.repository org.eclipse.tycho:tycho-versions-plugin:update-pom

# buildmvn clean install -Pno-bree-libs -Dmaven.test.skip=true

Page 30: How to become an Eclipse committer in 20 minutes and fork the IDE

Your own Eclipse IDE build

Page 31: How to become an Eclipse committer in 20 minutes and fork the IDE

Apply modification

Clone the corresponding repoCreate new repo at Github

Push your changes to Github and merge them everytime before the

build

Page 32: How to become an Eclipse committer in 20 minutes and fork the IDE

vogella Eclipse IDE build

Distribution:http://download.vogella.com/kepler/I-Build/sdk

p2 repo http://download.vogella.com/kepler/I-Build/

Page 33: How to become an Eclipse committer in 20 minutes and fork the IDE

Demo provided by l33t labs (L33tLabs.com)

Page 34: How to become an Eclipse committer in 20 minutes and fork the IDE

Follow our CBI Build on Twitter

https://twitter.com/eclipsecbi

Page 35: How to become an Eclipse committer in 20 minutes and fork the IDE

Where to go from here

http://wiki.eclipse.org/CBI Eclipse IDE CBI Build

http://www.vogella.com/articles/Git/article.html Git tutorial

http://www.vogella.com/articles/EGit/article.html EGit tutorial

http://www.vogella.com/articles/EclipseTycho/article.html EclipseTycho tutorial

Page 36: How to become an Eclipse committer in 20 minutes and fork the IDE

For fhe love of Pete!I fix this bug!

Page 37: How to become an Eclipse committer in 20 minutes and fork the IDE

Thank you

For further questions:

[email protected]://www.vogella.comTwitter http://www.twitter.com/vogellaGoogle+ http://gplus.to/vogella