Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "VJET/Building from Source"
(→Maven Setup) |
|||
Line 44: | Line 44: | ||
<source lang="dos"> | <source lang="dos"> | ||
− | {git_clone_root}/eclipse/ | + | # on build server with profile build-server you will see repo here |
+ | {git_clone_root}/eclipse/features/org.eclipse.vjet.all.repo/target/signed/site_assembly.zip | ||
+ | |||
+ | # on local build you will see unsigned jars here | ||
+ | {git_clone_root}/eclipse/features/org.eclipse.vjet.all.repo/target/org.eclipse.vjet.all.repo-${project.version}.zip | ||
</source> | </source> | ||
= Build VJET from Eclipse = | = Build VJET from Eclipse = | ||
− | 1. Install an Eclipse version (3. | + | 1. Install an Eclipse version (3.8.x and above) with PDE support: [[http://www.eclipse.org/downloads/ http://www.eclipse.org/downloads/]] |
2. Install m2eclipse from update site: [[http://m2eclipse.sonatype.org/sites/m2e http://m2eclipse.sonatype.org/sites/m2e]] | 2. Install m2eclipse from update site: [[http://m2eclipse.sonatype.org/sites/m2e http://m2eclipse.sonatype.org/sites/m2e]] | ||
3. Install Subclipse, find update site from [[http://subclipse.tigris.org/ http://subclipse.tigris.org/]], for example, [[http://subclipse.tigris.org/update_1.6.x http://subclipse.tigris.org/update_1.6.x]] | 3. Install Subclipse, find update site from [[http://subclipse.tigris.org/ http://subclipse.tigris.org/]], for example, [[http://subclipse.tigris.org/update_1.6.x http://subclipse.tigris.org/update_1.6.x]] | ||
Line 74: | Line 78: | ||
b) Or, you can import a subset of VJET projects from Git Cloned VJET subdirectories: | b) Or, you can import a subset of VJET projects from Git Cloned VJET subdirectories: | ||
Import <nowiki>-</nowiki>> General <nowiki>-</nowiki>> Existing Projects into Workspace, browse to your Git cloned VJET subdirectory, such as extmod, core, eclipse, or their subdirectories. | Import <nowiki>-</nowiki>> General <nowiki>-</nowiki>> Existing Projects into Workspace, browse to your Git cloned VJET subdirectory, such as extmod, core, eclipse, or their subdirectories. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:VJET]] | [[Category:VJET]] |
Revision as of 18:16, 17 January 2013
Please Note: Some software installation requires specific versions. For example, Maven 3 and JDK 1.6 are required. If you want to build from Eclipse, an Eclipse version with PDE support is required.
Contents
Git Client Setup
[http://help.github.com/set-up-git-redirect/]
VJET source code
Clone one of the VJET repos. The main vjet repo is
http://git.eclipse.org/c/vjet/org.eclipse.vjet.all.git/
git clone --recursive git://git.eclipse.org/gitroot/vjet/org.eclipse.vjet.all.git
Maven Setup
1. Install maven 3: [http://maven.apache.org/download.html]
2. Setup Environment Variables:
on mac:
export MAVEN_OPTS=-Xmx1024m
on windows:
PATH=[maven 3 location];%PATH% MAVEN_OPTS=-Xms512m -Xmx1024m JAVA_HOME=[JDK 1.6 location]
3. Install the Maven settings.xml file in your local Maven repository:
Build VJET from Command Line
Navigate to the root directory of your git VJET clone, then execute the maven command:
mvn clean install
After a successful build, you can find the generated VJET update site at:
# on build server with profile build-server you will see repo here {git_clone_root}/eclipse/features/org.eclipse.vjet.all.repo/target/signed/site_assembly.zip # on local build you will see unsigned jars here {git_clone_root}/eclipse/features/org.eclipse.vjet.all.repo/target/org.eclipse.vjet.all.repo-${project.version}.zip
Build VJET from Eclipse
1. Install an Eclipse version (3.8.x and above) with PDE support: [http://www.eclipse.org/downloads/] 2. Install m2eclipse from update site: [http://m2eclipse.sonatype.org/sites/m2e] 3. Install Subclipse, find update site from [http://subclipse.tigris.org/], for example, [http://subclipse.tigris.org/update_1.6.x] 4. Start a new Eclipse workspace, setup target environment to include VJET build dependent plugins:
- Go to Eclipse Preferences -> Plug-in Development -> Target Platform,
- In Target Platform, click on Add
- In Target Definition dialog, select Initialize the target definition with Current Target: Copy settings from the current target platform, click Next
- In Target Content dialog, on Locations tab, select Add button
- In Add Content dialog, select Software Site, click Next
- In Add Software Site dialog,
- Paste in this update site: [http://www.ebayopensource.org/svn/vjet/trunk/dependency/],
- Check VJET Build Dependent Plugins
- In the Included Software area, uncheck Include required software
- Click Finish on Add Software Site
- In Add Software Site dialog,
- In Add Content dialog, select Software Site, click Next
- Click Finish on Target Content
- In Target Content dialog, on Locations tab, select Add button
- In Target Definition dialog, select Initialize the target definition with Current Target: Copy settings from the current target platform, click Next
- Back on Target Platform, select/check the newly added target, verify its Locations area to make sure it lists eclipse home and newly added VJET Build Dependency update site, click Apply, then OK.
5. Import Projects
a) You can import all VJET projects from VjetTeamSet.psf: Import -> Team -> Team Project Set, browse to your GIT Clone VJET root, select VjetProjectSet.psf and Finish.
b) Or, you can import a subset of VJET projects from Git Cloned VJET subdirectories: Import -> General -> Existing Projects into Workspace, browse to your Git cloned VJET subdirectory, such as extmod, core, eclipse, or their subdirectories.