Build streams and streams-examples from source

This tutorial assumes you are using linux or Mac OS X.

Setup Tools

You'll need the following tools installed in your command line:

  • Git
  • Java SDK
  • Maven
  • Docker

Git

git -version

Possible resultExplanation
bash: git: No such file or directoryYou need to install git
git version < 2.7You should upgrade git for security reasons
git version > 2.7You are all good

Maven and Java SDK

Run from your command line:

mvn -version

Possible resultExplanation
-bash: mvn: command not foundYou need to install maven
Error: JAVA_HOME is not defined correctly.You need to install JDK
Apache Maven >= 3.2.5+\nJava Version >= 1.7.0u72)You're all good
Apache Maven >= 3.2.5+\nJava Version >= 1.8.0u25)You're all good
Apache Maven < 3.2.5You need a newer version of maven
Java Version < 1.7.0u72You need a newer version of maven
Java Version < 1.8.0u25You need a newer JDK

Docker

Run from your command line:

docker version

Possible resultExplanation
bash: docker: No such file or directoryYou need to install docker
Client: Version: < 1.0.0You need a newer version of docker
Server: Version: < 1.0.0You need a newer version of docker
Client: Version: > 1.0.0\nServer: Version: > 1.0.0You are all good

See streams-project-index.html for more information.

Download Sources

Run from your command line:

git clone https://github.com/apache/incubator-streams git clone https://github.com/apache/incubator-streams-examples

Build Projects

Run from your command line:

export MAVEN_OPTS=“-Xmx2G” cd incubator-streams mvn clean install -Dmaven.test.skip.exec=true

Possible resultExplanation
BUILD SUCCESSFULYou are all good
BUILD FAILEDCheck yourself

cd ../incubator-streams-examples mvn clean package

Possible resultExplanation
BUILD SUCCESSFULYou are all good
BUILD FAILEDCheck yourself