The developer tools use Maven archetypes to generate a project with all of the dependencies preconfigured. The archetypes also create the POM file needed to run and deploy your application, as well as sample code and data to get you started.
To create a Fuse project:
Select New Fuse Project wizard shown in Figure 3, “New Fuse Project Wizard's Project Location Page”.
> > to open theThe wizard opens with the Use default workspace location option selected on the location page.
Specify the location where the data for the project will be stored.
To use the default workspace select Use default workspace location.
To use an alternative location deselect Use default workspace location and specify a new location in the provided field.
Clicking opens a file browser.
If you want to add the new project to an Eclipse working set, select Add project(s) to working set and enter the name of the working set.
Click to open the New Fuse
Project
details page shown in Figure 4.
Select a project type from the list.
![]() | Note |
---|---|
The route editor works with these project types:
|
Enter a group ID for the project in the Group Id field, or accept the default.
The developer tools use the group ID to form the first part of the
dot-separated package name. For example, if you enter
Demo
for the group ID, it appears in the
Package field as Demo.
.
Enter an artifact ID for the project in the Artifact Id field, or accept the default.
The developer tools use the artifact ID as the name of the project and to form
the second part of the dot-separated package name. For example, if you enter
BigRoute
for the artifact ID, it appears in the
Package field as Demo.BigRoute
.
Enter a version for the project in the Version field, or accept the default.
If you want to change the package name generated for the artifacts, enter the new package name in the Package field.
Click
to create the Maven project, which contains starting point artifacts.You may encounter Maven dependency errors after you create a new Fuse project.
Though it can happen at other times, it more typically occurs when you create a project based on any of the supplied archetypes for the first time, but then cancel the project before the process finishes. Interrupting the process in this way often prevents all of the project's dependencies from downloading from the Maven repositories, which can take some time.
You can often easily resolve these dependency errors by updating Maven dependencies this way:
In Package Explorer, select the root project just created.
Right-click it to open the context menu.
Select
>In the Update Maven Project wizard, check Force Update of Snapshots/Releases.
Click OK.
In the bottom, right corner of the workbench, you may see the progress status bar churning as missing dependencies are downloaded from the Maven repositories.