We have wrapped an example connector project into a Maven Archetype to make it easier for developers to start. It contains a basic FileSystem Connector implementation and lots of comments to guide you through your development.
Let's start!
First of all open your command line terminal and execute:
Code Block | ||
---|---|---|
| ||
> mvn archetype:generate -DarchetypeGroupId=com.searchtechnologies.aspire -DarchetypeArtifactId=aspire-connector-archetype -DarchetypeVersion=3.3 -DrepositoryId=stPublic |
You will be prompted to enter:
Compile the code and run the unit tests by openning the Command Line into to your project folder and executing
Code Block | ||
---|---|---|
| ||
> mvn clean install |
If for some reason your connector doesn't feel like fitting with the default behavior, visit Recipes for more example code for having your connector do whatever you need to.