Add a Dependency

The StreamBase Application project you created on the previous page does not yet know about any fragments. You must add a Maven dependency to the StreamBase Application project on the fragment archive created on the Create a Fragment Archive page.

  • Select the name of the StreamBase Application project in the Project Explorer view.

  • Right-click and from the context menu, select MavenAdd Dependency.

  • In the Add Dependency dialog, in the Enter groupid, artifactId field, enter the first few parts of the group ID of the firstapp project: com.example.deptname.

  • In the Search Results field, select the EventFlow fragment for the firstapp project that you created on the Create a Fragment Archive page. Be careful to distinguish the fragment project from the deployment project; both projects appear because both have the string firstapp in their names.

  • When you select the fragment archive, Studio fills in the Group Id, Artifact Id, and Version fields of the dialog. Click OK.

  • The Add Dependency dialog has made changes to the project's pom.xml file. Save those changes by clicking the Save or Save all button, or with Ctrl+S (Windows) or command+S (Mac).