In this tutorial we will use the repository https://github.com/TotalCross/tc-utilities
You need to add in your pom file within your dependencies tag the dependency:
{% code title="Dependecy Example" %}
<dependencies>
.
.
.
<dependency>
<groupId>com.totalcross.utils</groupId>
<artifactId>tc-utilities</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
{% endcode %}
After downloading the dependency it will be necessary to generate the tcz of the dependency so that it is included in the deploy
Find the folder you extracted the project from or if you have downloaded it by pom that is located in the dependency, usually is: C:\Users*your_user*.m2\repository\com\totalcross\utils\tc-utilities\0.0.1-SNAPSHOT.
To generate tcz execute the command java -cp "% TOTALCROSS 3_HOME%" / dist / totalcross-sdk.jar tc.Deploy tc-utilities-0.0.1-SNAPSHOT.jar / r YOUR_TC_KEY
After tcz is generated, rename the tc-utilities-0.0.1-SNAPSHOT.tcz file to tc-utilities-0.0.1-SNAPSHOTLib.tcz and place it at the root of the project.
At the root of the project create the file named all.pkg and put [L] tc-utilities-0.0.1-SNAPSHOTLib.tcz so that this class is included in deploy