Exercise 6 - Build BEAM

Skip to end of metadata
Go to start of metadata

Checkout BEAM from Subversion

IntelliJ IDEA
  1. Go to Version Control/Checkout from Version Control/Subversion.
  2. Click on the plus button to add the repository: https://www.brockmann-consult.de/svn/os/. Apply with OK.
  3. Navigate to beam-4.x/trunk; Click Checkout.
  4. Choose the destination directory and apply with OK.
  5. Define the destination directory more specific, just apply with OK.
  6. Accept suggested subversion format (version 1.6).
  7. Wait till BEAM is checkedout from subversion...
Eclipse

Installation of the Subversion Eclipse plugin

In order to install Subversion support for Eclipse, please follow the Subversive installation instructions

  1. Go to NEW/Project.
  2. Select "SVN/Projects from SVN*; Click Next.
  3. Type in URL: https://www.brockmann-consult.de/svn/os/.
  4. Click Next.
  5. Select beam-4.x/trunk; Click OK.
  6. Click Finish.
  7. On the upcoming dialog select Check out as a project with the name specified:
    click on Finish, again.

Build BEAM with Maven

See Build from Source for instructions on how to build BEAM.

Create a New Maven Project

IntelliJ IDEA
  1. Select File/New Project...
  2. Choose option Create project from scratch
  3. Give the project a name and choose a location.
  4. Select the type Maven Module. Precced with Next
  5. Specify GroupId (org.beam.exercises) and ArtifactId (Ex4)
  6. Click Finish
Eclipse
  1. Open a command line at the Eclipse workspace
  2. Type mvn archetype:create -DgroupId=org.beam.exercises -DartifactId=Ex4
    The groupId is used to combine multiple artifacts in one group. It's also used the generate the base package path where the Java files are located.
    The artifactId is used as the name of the project and for the directory where the project files reside.
  3. After it is created change the current directory of the command line to the project folder.
  4. Type mvn eclipse:eclipse to create the Eclipse project files.
  5. Import the project into Eclipse
    • Select from the menu File/Import...
    • Select in the tree General/Existing Projects into Workspace; Click Next
    • Select the root directory of the project to import by clicking the Browse-Button. Confirm selection with OK.
    • Press Finish-Button to import the project.
  6. Maven has created some sample files for you. You can safely delete the App.java and the AppTest.java files.

Simple GPF Operator in a Maven project

  1. You should add a dependency project. Add the following code snippet into the pom.xml in the <dependencies> section.
    <dependency>
      <groupId>org.esa.beam</groupId>
      <artifactId>beam-gpf</artifactId>
      <version>4.7-SNAPSHOT</version>
    </dependency>
    

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.