Stardust/Source Code
Contents
Browsing the Source Code
For initial quick browsing of the source code please go to http://git.eclipse.org/c/?q=stardust.
Overview
This documentation covers the local build of stardust. You can use the command line or build directly in the Eclipse IDE.
Command Line Build
Installing Git
To checkout the source code you need to install git first. You have different options:
- git scm installs a minimal environment to run Git. It comes with a Bash,a Perl interpreter, the Git executable plus dependencies.
- msysgit installs a build environment for Git on Windows. It includes git scm. After installtion you can open a git shell to run git commands (git bash or git-cmd.bat).
Clone git Repositories
- Create a new folder, e.g. C:\\stardust, and open a git shell there. (bash on Linux/Win or git-cmd.bat on Win)
- Copy the following commands to a file named cloneStardust.cmd or cloneStardust.sh file.
- Save it to the stardust folder and execute it.
git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.build.tools.git build.tools git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.components.git components git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.deploy.jee.git deploy.jee git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.documentation.git documentation git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.engine.git engine git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.examples.git examples git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.git org.eclipse.stardust git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.ide.git ide git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.ide.simulation.git ide.simulation git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.ide.wst.git ide.wst git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.product.git product git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.reporting.rt.git reporting.rt git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.repository.git repository git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.ui.common.git ui.common git clone http://git.eclipse.org/gitroot/stardust/org.eclipse.stardust.ui.web.git ui.web
If you run git clone behind a HTTP proxy specify proxy details first.
git config --global http.proxy http://<user>:<password>@proxy:port
Now you have the default checkout which is the master branch.
Following branches are available:
Please find in Branch strategy explained which branch to use.
For more details on the differences between stardust versions, please look at the project website.
If you like to clone a specific branch add "-b <branch-name>" to the git command. To work on a stable source please use release tags as checkout. We have a help script (linux) to do git commands on all stardust repositories:
cd <root-of-your-stardust-checkout> build.tools\bin\git-all.sh checkout v1.0.0.20130612-0325-R
We tag every milestone and release build. See git for details.
Build Stardust
Prerequisites
- JDK - we suggest Java 1.7
- Apache ANT - we suggest Ant 1.8
- Apache Maven - we suggest Maven 3.2.5
Running the Build
To maybe cover the different build configurations in branches, we have a readme.md available in the source tree. Please follow the steps described in readme.md residing in product folder.
Version Qualifier
The concrete value of the .qualifier version part may be set to a define value by appending "-DforceContextQualifer=<qualifier value>". Please note, that if you do not provide an explicit Stardust version and qualifier, build artifacts will use the default build version (which is currently 9.9.9-SNAPSHOT). You should check startust/org.eclipse.stardust/org.eclipse.stardust-parent/pom.xml for the ipp.version, which should equal the version you are using in your overall build.
Where to go from here?
Now you can use the build result, a local eclipse update site, to install Stardust. Follow the instructions in the section Local Eclipse Update Site (offline)
If you like to consume our archetypes, e.g. tomcat7 web archive, via maven please find documentation here: Maven - Basic Setup
Next check out the resource in the Stardust Knowledge Base, especially the Getting Started section. You may also want to check out the Forum to post questions or just exchange thoughts with the community.
To access the online help please consult help.eclipse.org
Troubleshooting
If you experience any problems downloading the source code or building Stardust then please contact us via the Forum.
Errors fetching Dependencies
If you encounter errors during the build that indicate missing dependencies which could not be fetched from the repositories then try cleaning the ivy cache folder .ivy in your user.home (e.g. C:\Users\your.name\.ivy, if it exists) and the maven repository (check settings.xml in M2_HOME/etc and/or user.home/.m2 to determine the location).
If your are using Maven 3.0.4 behind a proxy please see here on how to fix the issue.