Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "Installing Buckminster"

(Buckminster on Your Projects)
(Installing Buckminster in the Eclipse IDE)
Line 2: Line 2:
 
==Installation==
 
==Installation==
 
===Installing Buckminster in the Eclipse IDE===
 
===Installing Buckminster in the Eclipse IDE===
These steps describe a typical Buckminster installation for use in Eclipse IDE:
+
Buckminster is available as a plugin to the Eclipse IDE.  There is also a stand alone “headless” version for command line usage,  which if you ever need it,  is described here<URL to be given>.
# Make sure you have Eclipse 3.2 or later installed:
+
 
## You can do that in Help > About Eclipse SDK
+
These steps describe a typical Buckminster installation for use in Eclipse IDE.  Note that the [http://subclipse.tigris.org/ Subclipse] plug-in is also typically used (see below):  Subclipse is an Eclipse Team Provider plug-in which provides support for the [http://subversion.tigris.org/ Subversion] version control system within the Eclipse IDE.
## Currently, the Buckminster plugins do not check for minimum Eclipse version. If you install the plugins on an earlier Eclipse version than 3.2, the installation may succeed, but you will seeing many errors as you start using Buckminster.
+
 
 +
# Make sure you have Eclipse 3.2 or later installed.  Install it from [http://www.eclipse.org/downloads/ here] if you do not yet have it.
 +
## Select <tt>Help > About Eclipse SDK</tt> and check the Version number.
 +
## Currently, the Buckminster plugins do not check for a minimum Eclipse version. If you install the plugins on an earlier Eclipse version than 3.2, the installation may succeed, but you will probably however encounter many errors as you start using Buckminster.
 
# Make sure you are using Java 5.0 or later. You can do that in Eclipse by:
 
# Make sure you are using Java 5.0 or later. You can do that in Eclipse by:
## Select Help > About Eclipse SDK
+
## Select <tt>Help > About Eclipse SDK > Configuration Details</tt>.  Scroll down to the parameter <tt>java.runtime.version</tt> - it should start with 1.5 or later (as an example the line may look like this <tt>java.runtime.version=1.6.0_01-b016</tt>)
## Select "Configuration Details", and scroll down to the parameter ''java.runtime.version'' - it should start with 1.5 (as an example the line may look like this "java.runtime.version=1.5.0_09-b01")
+
## If it does not start with at least 1.5, you need to update your java environment first:  you should find a version for your operating system [http://www.java.com/en/download/manual.jsp here].
## If you are not on Java 5, you need to update your java environment first, but this is beyond the scope of this guide.
+
# You will now use the ''Eclipse Update Manager'' to download Buckminster (and the subeclipse) plugin:
# In the two installation steps below you will be using the Eclipse Update Manager. To make these two steps easier, you can do the following:
+
## Download this [http://wiki.eclipse.org/Buckminster_Update_Manager_Bookmarks Buckminster Update Manager Bookmarks] XML fileand store it somewhere convenient on your computer (e.g. in a file called <tt>Bookmark.xml</tt>).  This file tells the Eclipse Update Manager about both Buckminster and the Subeclipse plugins.
## download this [[Buckminster Update Manager Bookmarks]] file and store in on your computer somewhere
+
## Select <tt>Help > Software Updates > Find and Install</tt> in the Java SDK.
## Select Help > Software Updates > Find and Install
+
## Select <tt>Search for new features to install</tt> and then the <tt>Next</tt> button.
## Select "Search for new features to install"
+
## Select <tt>Import Sites...</tt> and browse your computer’s file system to select the Bookmarks file you saved at step 1. above. The update sites for Buckminster and Subclipse will then be added to the list of available sites.
## Press "Import Sites..." and select the file you saved. The update sites for Buckminster and Subclipse will then be added to the list of available sites.
+
## Select <tt>Finish</tt>. Eclipse will then display a window entitled <tt>Update Sites to Visit</tt> and will include the <tt>Buckminster Update Site</tt>,  and the <tt>Subclipse upate for 1.0</tt> amongst these:  make sure that both are selected.
## Leave the "search for new features..." dialog open and continue on to the next step...
+
## Eclipse may throw up a window entitled <tt>Update Site Mirrors</tt> for the <tt>Buckminster Update Site</tt>. In this case, we advise that you scroll down the list of mirror sites and pick the last entry, ie <tt>Buckminster Update Site</tt> itself.  This is because occasionally a mirror site is not always in synchronization with the master site.
# If you want Buckminster to access Subversion repositories you must have the Subversion Subclipse plugin of version 1.0.1 or later. Follow the steps below or read more in the [http://subclipse.tigris.org/install.html Subclipse installation guide]. Subversion is optional, but unless you know that you are not going to be using source in a Subversion repository, we suggest that you also install Subclipse. (If you decide not to install Subclipse, you need to deselect the Subversion support when installing Buckminster, as per the instructions for 'Install Buckminster' below). So, to install Subclipse:
+
## Eclipse will then briefly throw up a window entitled <tt>Update Manager</tt>, and when it has completed that step,  will automatically throw up another window entitled <tt>Updates with Search Results</tt>Select the <tt>Buckminster Update Site</tt> checkbox,  and then the <tt>Next</tt> button.
## If you closed the dialog, Select Help > Software Updates > Find and Install
+
## Eclipse will then display a <tt>Feature License</tt> window,  and if you are happy with the terms of the license as displayed, select the <tt>I accept</tt> button,  and then the <tt>Next</tt> button.
### Select "Search for new features to install"
+
## Eclipse will then display the <tt>Install</tt> window, for the Buckminster feature.  If you are happy with the default folder location, select <tt>Finish</tt>.
## If you did not use the bookmarks; In the "Update sites to visit" add the site for Subclipse with URL http://subclipse.tigris.org/update_1.0.x
+
## The <tt>Update Manager</tt>,  with a progress bar,  will display again.
## Make sure only the Subclipse update site is selected and press Finish.
+
## A <tt>Verification</tt> window will then be displayed,  indicating that the Buckminster feature is validly digitally signed.  If you are happy to proceed, select the <tt>Install All</tt> button.
## Select the subclipse feature, accept the license, and continue with the installation as directed by the wizard.
+
## The <tt>Update Manager</tt> will then briefly re-display,  followed by invitation to restart Eclipse to complete the installation of the plugin.  Select <tt>Yes</tt>.
## You are asked if you want to restart, or apply changes. It is ok to select Apply Changes (at least for Subclipse 1.0.1).
+
# Eclipse should close down,  and automatically restart.
# Install the Buckminster plugin
+
 
## If you closed the dialog, Select Help > Software Updates > Find and Install
+
To confirm that Buckminster has now been installed,  check that the <tt>File > New > Other ></tt> has an entry for the Buckminster wizards;  expanding the Buckminster box should show a number of available Buckminster wizards.
### Select "Search for new features to install"
+
 
## If you did not use the bookmarks; In the "Update sites to visit", add the Buckminster update site with URL http://download.eclipse.org/technology/buckminster/updates
+
 
## Make sure only the Buckminster update site is selected and press Finish.
+
Hopefully your installation has proceeded smoothly.  However,  here are some thoughts if things don't work out:
## The Buckminster features are displayed. For a default installation select all - but see optional steps:
+
* At the time of writing,  the Eclipse Update Manager (in general,  not just for Buckminster) is IMHO far from perfect, and is currently being subject to revision. Hopefully before the end of 2007,  there should be a better version.
### You can omit the P4 features which are only needed if your organization is using Perforce P4. If you are unsure, it is OK to install the P4 support even if you do not have P4 installed. If you are using P4 you must have a P4 client with version 2004.2 or later installed.
+
* If you have previously installed Buckminster,  you may need to un-install it before re-installing it as above - otherwise the re-install may fail. The safest way to do this is to find the Eclipse installation directory on your machine,  and remove anything that has <tt>buckminster</tt> in its name below the two folders <tt>plugins</tt> and <tt>features</tt>.  Then restart your Eclipse IDE again and proceed to re-install Buckminster.
### If you decided not to install Subclipse you must deselect the Subversion (SVN) features before proceeding.
+
* In step 3.5 above,  it may be prudent of you to select all the sites which are displayed to you to include in your search:  this will ensure that your version of the Eclipse IDE is completely up to date with all the functions and features of Eclipse which you are using (not just Buckminster alone).
## Accept license, continue with the installation as directed.
+
 
## You are prompted to restart Eclipse, Select restart to complete the installation.
+
 
===After the Installation===
 
===After the Installation===
 
Currently Buckminster has a very low visual profile, and you may wonder - well, where is it? How to I start using Buckminster? In a way it is like just having received a programmable industrial robot - how you use it depend on what it is you want to manufacture with the robot. Over time we want to add wizards that help you set up common and typical scenarios, but right now, you have to set these up manually.  
 
Currently Buckminster has a very low visual profile, and you may wonder - well, where is it? How to I start using Buckminster? In a way it is like just having received a programmable industrial robot - how you use it depend on what it is you want to manufacture with the robot. Over time we want to add wizards that help you set up common and typical scenarios, but right now, you have to set these up manually.  

Revision as of 11:57, 4 July 2007

< To: Buckminster Project

Installation

Installing Buckminster in the Eclipse IDE

Buckminster is available as a plugin to the Eclipse IDE. There is also a stand alone “headless” version for command line usage, which if you ever need it, is described here<URL to be given>.

These steps describe a typical Buckminster installation for use in Eclipse IDE. Note that the Subclipse plug-in is also typically used (see below): Subclipse is an Eclipse Team Provider plug-in which provides support for the Subversion version control system within the Eclipse IDE.

  1. Make sure you have Eclipse 3.2 or later installed. Install it from here if you do not yet have it.
    1. Select Help > About Eclipse SDK and check the Version number.
    2. Currently, the Buckminster plugins do not check for a minimum Eclipse version. If you install the plugins on an earlier Eclipse version than 3.2, the installation may succeed, but you will probably however encounter many errors as you start using Buckminster.
  2. Make sure you are using Java 5.0 or later. You can do that in Eclipse by:
    1. Select Help > About Eclipse SDK > Configuration Details. Scroll down to the parameter java.runtime.version - it should start with 1.5 or later (as an example the line may look like this java.runtime.version=1.6.0_01-b016)
    2. If it does not start with at least 1.5, you need to update your java environment first: you should find a version for your operating system here.
  3. You will now use the Eclipse Update Manager to download Buckminster (and the subeclipse) plugin:
    1. Download this Buckminster Update Manager Bookmarks XML file, and store it somewhere convenient on your computer (e.g. in a file called Bookmark.xml). This file tells the Eclipse Update Manager about both Buckminster and the Subeclipse plugins.
    2. Select Help > Software Updates > Find and Install in the Java SDK.
    3. Select Search for new features to install and then the Next button.
    4. Select Import Sites... and browse your computer’s file system to select the Bookmarks file you saved at step 1. above. The update sites for Buckminster and Subclipse will then be added to the list of available sites.
    5. Select Finish. Eclipse will then display a window entitled Update Sites to Visit and will include the Buckminster Update Site, and the Subclipse upate for 1.0 amongst these: make sure that both are selected.
    6. Eclipse may throw up a window entitled Update Site Mirrors for the Buckminster Update Site. In this case, we advise that you scroll down the list of mirror sites and pick the last entry, ie Buckminster Update Site itself. This is because occasionally a mirror site is not always in synchronization with the master site.
    7. Eclipse will then briefly throw up a window entitled Update Manager, and when it has completed that step, will automatically throw up another window entitled Updates with Search Results. Select the Buckminster Update Site checkbox, and then the Next button.
    8. Eclipse will then display a Feature License window, and if you are happy with the terms of the license as displayed, select the I accept button, and then the Next button.
    9. Eclipse will then display the Install window, for the Buckminster feature. If you are happy with the default folder location, select Finish.
    10. The Update Manager, with a progress bar, will display again.
    11. A Verification window will then be displayed, indicating that the Buckminster feature is validly digitally signed. If you are happy to proceed, select the Install All button.
    12. The Update Manager will then briefly re-display, followed by invitation to restart Eclipse to complete the installation of the plugin. Select Yes.
  4. Eclipse should close down, and automatically restart.

To confirm that Buckminster has now been installed, check that the File > New > Other > has an entry for the Buckminster wizards; expanding the Buckminster box should show a number of available Buckminster wizards.


Hopefully your installation has proceeded smoothly. However, here are some thoughts if things don't work out:

  • At the time of writing, the Eclipse Update Manager (in general, not just for Buckminster) is IMHO far from perfect, and is currently being subject to revision. Hopefully before the end of 2007, there should be a better version.
  • If you have previously installed Buckminster, you may need to un-install it before re-installing it as above - otherwise the re-install may fail. The safest way to do this is to find the Eclipse installation directory on your machine, and remove anything that has buckminster in its name below the two folders plugins and features. Then restart your Eclipse IDE again and proceed to re-install Buckminster.
  • In step 3.5 above, it may be prudent of you to select all the sites which are displayed to you to include in your search: this will ensure that your version of the Eclipse IDE is completely up to date with all the functions and features of Eclipse which you are using (not just Buckminster alone).

After the Installation

Currently Buckminster has a very low visual profile, and you may wonder - well, where is it? How to I start using Buckminster? In a way it is like just having received a programmable industrial robot - how you use it depend on what it is you want to manufacture with the robot. Over time we want to add wizards that help you set up common and typical scenarios, but right now, you have to set these up manually.

To get started with Buckminster, here are some entry points:

  1. If you have not already, we suggest you read through Introduction to Buckminster - which explains the basic concepts.
  2. Buckminster Usage Scenarios where we will show how Buckminster is used in various situations. (Right now there is one demo available (Sharing a Project); how to efficiently share a project using Buckminster - but even if this is not what you want to do, this examples walks through most of the basic steps).
  3. Check out Buckminster Examples where we collect demos, code examples, longer answers to questions etc. Look in particular at the Hello XML World Example which details the Sharing a Project usage scenario.

Getting to Know the Concepts

A first step in starting to use Buckminster is to get to grips with Buckminster concepts and terminology. The Introduction to Buckminster is a good starting to point to get a basic understanding of Buckminster.

The next thing to get a better understanding of is the Resource Map as this gets you an understanding of from where and how Buckminster gets components. Then you need to look at Component Type since a component type is responsible for producing dependency information for a component, and this is done differently depending on the type of component.

Now you should understand how components can be made, depend on each other in different situations, and how Buckminster use this information to materialize the components into your workspace.

To make something happen, you need to understand the Component Query as that is the starting point of getting something resolved and materialized.

My First Materialization

You are probably anxious to try Buckminster in action, but on what? To help you out, there is a Sharing a Project demo with more detailed explanations in the Hello XML World Example. You can materialize this project, just like in the demo. There is also a Buckminster 'dog-fooding' example that the Buckminster team uses to develop Buckminster, so if your are interested, you can materialize the Buckminster project. You can also try to materialize the source of the Eclipse Monkey project as described on the Monkey Getting and Working with the Source Code page.

Buckminster on Your Projects

To run Buckminster on your own projects, there are a few things to think about. How are your components organized? Do you even have components? If everything is in one big project pile (a monolith) - how do you organize it into components?

Even if your own project is not broken up into individual components, you are perhaps including 3d party components, or indeed components from open source projects.

Basically these are the steps you need to take:

  1. Make sure that the components are available for download in the form your intended audience wants (source, binary, etc.), and being in a repository of a type supported by Buckminster (Eclipse update site, CVS, SVN, Maven, etc.).
    1. If your component does not contain dependency information, you also need to add a Component Specification describing the dependencies. This can be done by hand, or in Eclipse by 'adding the Buckminster nature' to the project and then editing the .cspec file.
    2. Note that if you do have components that already have dependency information (such as for Eclipse plug-ins, Buckminster uses this information directly, and instead of creating a full component specification, you can extend the specification created from the 'plug-in' (or whatever the source of dependency information was). See Component Specification Extension.
  2. Create a Resource Map that tells where to find your component(s) and all components they depend on. Make this resource map available to your audience via a URL (i.e. put in up on a website they can reach).
  3. Create a Component Query where you enter the URL to the resourcemap, and any other settings as apropriate for the query.
  4. Make the component query file (.cquery) available via a URL and hand this URL out to your audience.
    1. Give them instructions to use "File > Open" and to enter the .cquery URL, and to press "Resolve and Materialize" (here is an instruction example from the Eclipse-Monkey project).

As an example, this is the cquery file for the Eclipse Monkey.

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="http://www.eclipse.org/dash/monkey/monkey.rmap">
    <cq:rootRequest name="org.eclipse.eclipsemonkey-feature" versionType="OSGi"/>
</cq:componentQuery>

CQuery for Eclipse Monkey

As you see, all it does is pointing at the RMAP URL, and stating that version strings are expressed in OSGi notation.

And here is the RMAP for the Eclipse Monkey.

<?xml version="1.0" encoding="UTF-8"?>
<rm:rmap
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:rm="http://www.eclipse.org/buckminster/RMap-1.0"
	xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
	xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0">

	<rm:site name="default">
	</rm:site>

	<rm:searchPath name="dash">
		<rm:provider readerType="cvs" componentType="eclipse-project" mutable="true" source="true">
			<rm:uri format=":pserver:anonymous@dev.eclipse.org:/cvsroot/technology,org.eclipse.dash/{0}">
				<bc:property key="buckminster.component" />
			</rm:uri>
		</rm:provider>
	</rm:searchPath>

	<rm:locator searchPathRef="dash" pattern="^org\.eclipse\.eclipsemonkey([\.\-].+)?" />
	<rm:locator searchPathRef="dash" pattern="^org\.eclipse\.eclipsemonkey-feature" />
	<rm:locator searchPathRef="dash" pattern="^org\.eclipse\.dash(\..+)?" />
	<rm:locator searchPathRef="dash" pattern="^org\.mozilla\.rhino" />

</rm:rmap>

RMAP for Eclipse Monkey

Installing the Headless Buckminster

Buckminster is also packaged in a so called 'Headless' command line oriented version suitable for running on remote servers, be invoked from scripts etc. The Headless version is based on Eclipse but only includes what is needed to run as a command line tool. The footprint of the headless version is thus much smaller than for the complete Eclipse IDE.

The Headless version as it is delivered today requires configuration before use. The downloadable version only contains the Buckminster core - i.e. it does not contain any of the optional plugins. They are easy to add, but it requires some work on your part.

You can read about the details and get step by step instruction on the Buckminster Packaging page.

How can I Stay Updated?

The IDE installation is updated via the Eclipse Update Manager. When installing Buckminster as described above, you have already added the required information to receive updates via the Eclipse Update Manager.

For the Headless version, you need to read more on the Buckminster Packaging (and subsequent) pages as there are different options how to do this.

Back to the top