-
Notifications
You must be signed in to change notification settings - Fork 10
Building and using a toolkit that uses Maven to handle dependencies
This page gives directions for building a typical IBMStreams toolkit. It applies to applies to streams.inet, streamsx.messaging, streamsx.hdfs, and streamsx.hbase, and perhaps others. As alternative to the directions below, you can download a release of the toolkit; however the releases may not have the newest features and bug fixes.
If you plan on developing on the toolkit, particularly if you want to share your work with either your team members or the IBMStreams community, these directions may be more useful: https://github.com/IBMStreams/administration/wiki/Using-IBMStreams-from-Streams-Studio-%28draft%29
To get started with an IBMStreams toolkit
- Clone the repository to your local file system.
- Install Maven
- Once Maven is installed, export M2_HOME="Mavin_Install_Location"
- Go to the root of the toolkit (com.ibm.streamsx.messaging)
- Type "ant"
This will invoke the Ant Build. build.xml will in turn invoke Maven to download all dependencies required for Kafka. MQTT dependencies are already included as part of the toolkit. Once the dependencies are downloaded, build.xml will proceed to build the java files and call spl-make-toolkit.
Note: Make sure Ant and Maven are installed in your remote host.
To import this toolkit project into Streams Studio:
- Install "Egit" into Streams Studio (https://www.eclipse.org/egit/)
- In the Git Repositories View, click on the "Clone a Git Repitory" button
- After the repository is cloned, follow the dialog to import existing project into your workspace.
- You will not have the dependencies needed for Studio to build the project correctly. Go to the command line and to the root of the toolkit project (for example, streamsx.messaging/com.ibm.streamsx.messaging).
- Type "ant maven-deps" - to kick off a build at the command line for the first time. This will get all the dependencies downloaded.
- Refresh your project in Streams Studio to get all the jar files included in your workspace
- Build the com.ibm.streamsx.messaging toolkit project in Studio - The build should be successful at this point.
Note: Make sure Ant and Maven are installed in your remote host.
You can set up remote development on Windows.
To import this toolkit project into Streams Studio on Windows:
- Install "Egit" into Streams Studio (https://www.eclipse.org/egit/)
- In the Git Repositories View, click on the "Clone a Git Repitory" button
- After the repository is cloned, follow the dialog to import existing project into your workspace.
- Select the toolkit project, Right click -> Copy project to remote host - This will copy the project to the remote Linux host where actual compilation needs to happen.
- You will not have the dependencies needed for Studio to build the project correctly at this point. Open a command prompt to the remote Linux host.
- Go to the root directory of the toolkit project
- Type "ant maven-deps" - to kick off the ant build that pulls in all the necessary dependencies.
- In Streams Studio on Windows, select the "opt" folder under the toolkit project. Right click -> Remote Reconciler -> Pull from (remote host) - This action will pull all the jar files from your remote Linux host to your Windows machine.
- Build the com.ibm.streamsx.messaging toolkit project in Studio - The build should be successful at this point.