Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "M2E-WTP-Dev Environment"

(Adding gerrit blurb)
(Build m2e-wtp within Eclipse)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
== Clone m2e-wtp and m2e-wtp-tests ==
 
== Clone m2e-wtp and m2e-wtp-tests ==
* Clone the m2e-wtp core repository. Committers should use ssh://YOUR_COMMITTERID@git.eclipse.org/gitroot/m2e-wtp/org.eclipse.m2e.wtp.git. For read-only access use either git://git.eclipse.org/gitroot/m2e-wtp/org.eclipse.m2e.wtp.git or http://git.eclipse.org/gitroot/m2e-wtp/org.eclipse.m2e.wtp.git.
+
* Clone the m2e-wtp core and jpa repositories. Committers should use :
 +
- Core : ssh://YOUR_COMMITTERID@git.eclipse.org:29418/m2e-wtp/org.eclipse.m2e.wtp  
 +
- JPA : ssh://YOUR_COMMITTERID@git.eclipse.org:29418/m2e-wtp/org.eclipse.m2e.wtp.jpa
 +
 
 +
 
 
* Clone the m2e-wtp-tests repository. Developers should use git@github.com:jbosstools/m2e-wtp-tests.git. For read-only access use either git://github.com/jbosstools/m2e-wtp-tests.git or http://github.com/jbosstools/m2e-wtp-tests.git.
 
* Clone the m2e-wtp-tests repository. Developers should use git@github.com:jbosstools/m2e-wtp-tests.git. For read-only access use either git://github.com/jbosstools/m2e-wtp-tests.git or http://github.com/jbosstools/m2e-wtp-tests.git.
  
 
== Build m2e-wtp within Eclipse ==
 
== Build m2e-wtp within Eclipse ==
  
* Download and unpack the Eclipse Juno JavaEE distribution http://download.eclipse.org/eclipse/downloads/ (Indigo is expected to work).
+
* Download and unpack the Eclipse Juno JavaEE distribution http://download.eclipse.org/eclipse/downloads/  
* Install m2e 1.6 from http://download.eclipse.org/technology/m2e/releases/, including  the semi-hidden m2e SDK feature (uncheck "Group items by category" to see it).
+
* Install m2e 1.6 from http://repository.takari.io:8081/nexus/content/sites/m2e.extras/m2e/1.6.0/N/LATEST/, including  the semi-hidden m2e SDK feature (uncheck "Group items by category" to see it).
 
* Install commons-io 2.0.1 from the Orbit repository http://download.eclipse.org/tools/orbit/downloads/drops/R20120526062928/repository/ [Required to build the test projects]
 
* Install commons-io 2.0.1 from the Orbit repository http://download.eclipse.org/tools/orbit/downloads/drops/R20120526062928/repository/ [Required to build the test projects]
 
* Install the mavenarchiver plugin from m2e's discovery catalog : Window > Preferences > Maven > Discovery > Open Catalog...  
 
* Install the mavenarchiver plugin from m2e's discovery catalog : Window > Preferences > Maven > Discovery > Open Catalog...  
 
* import m2e-wtp as "Existing Maven project". Follow onscreen instructions, allow m2e to install additional software and restart eclipse when requested.
 
* import m2e-wtp as "Existing Maven project". Follow onscreen instructions, allow m2e to install additional software and restart eclipse when requested.
* import m2e-wtp-tests as "Existing Maven project".  
+
* import m2e-wtp-tests as "Existing Maven project".
  
 
== Build m2e-wtp via command line ==
 
== Build m2e-wtp via command line ==
  
* Download and install maven 3.0.4 from http://maven.apache.org/download.html
+
* Download and install maven 3.2.1 from http://maven.apache.org/download.html
 
* Open a command shell, navigate under m2e-wtp's directory and type :
 
* Open a command shell, navigate under m2e-wtp's directory and type :
 
     mvn clean install
 
     mvn clean install

Latest revision as of 03:35, 30 July 2014

M2E-WTP
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug Day
Contribute
Browse Source

Clone m2e-wtp and m2e-wtp-tests

  • Clone the m2e-wtp core and jpa repositories. Committers should use :
- Core : ssh://YOUR_COMMITTERID@git.eclipse.org:29418/m2e-wtp/org.eclipse.m2e.wtp 
- JPA : ssh://YOUR_COMMITTERID@git.eclipse.org:29418/m2e-wtp/org.eclipse.m2e.wtp.jpa 
  

Build m2e-wtp within Eclipse

Build m2e-wtp via command line

   mvn clean install

This will build m2e-wtp against the juno platform.

  • Alternatively, execute the following to build against other platforms (helios, indigo, juno and kepler are supported)
   mvn clean install -Declipse.target=<platformId>

The very first build should be *very* long (tens of minutes), as maven will need to download all the build pre-requisites from internet. Subsequent builds can be sped up by going offline :

   mvn clean install -o

Change directory to go under m2e-wtp-tests and execute :

   mvn clean install

Submitting patches

m2e-wtp core sources at eclipse.org

m2e-wtp only accepts changes contributed via Gerrit. Here is the wiki that explains how to use it http://wiki.eclipse.org/Gerrit.

According to eclipse legal poster, all contributors must have signed Eclipse CLA and their bugzilla email and git commit author must match (otherwise Eclipse git server refuses contribution).

All contributions must be referenced from corresponding bugzilla records. The commit message should be prefixed with the bugzilla id following the format :

   bugzillaId : commit message
   

m2e-wtp tests at github

In most cases m2e-wtp core patches will require corresponding regression tests. Changes to m2e-wtp tests repository must be submitted as github pull requests and must be linked to bugzilla record, along with corresponding Gerrit change set.

Back to the top