Template project to facilitate implementing, compiling, and building Botica bots using Maven and botica-lib-java.
-
Modify the
pom.xml
file, specifically:- The
<groupId>
and<artifactId>
tags. - The
<mainClass>
property, pointing to your launcher class. This assumes that you renamed the template classes or packages insrc/
. - The
<imageTag>
property. The build script will take the tag for the resulting Docker image from this property.
- The
-
Implement your bot's logic. You can follow one of these examples.
Note
Full project examples are also available, with their respective Java implementations. Check out botica-infrastructure-fishbowl or botica-infrastructure-restest.
- Run the build script. This script compiles the Maven project and builds the Docker image for you based on the
<imageTag>
property inpom.xml
. Themaven-assembly-plugin
will include your dependencies in the compiled JAR.- For Linux or macOS systems, run
./build.sh
in your IDE's terminal. - For Windows systems, run
build.bat
in your IDE's terminal.
- For Linux or macOS systems, run