Project containing the parent POM for Compassion Maven projects
Your ~/.m2/settings.xml should look like the following:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
	<servers>
		<server>
			<id>github-maven</id>
			<username>USERNAME</username>
			<password>TOKEN</password>
		</server>
	</servers>
	<profiles>
		<profile>
			<id>compassion</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<repositories>
				<repository>
					<id>jitpack.io</id>
					<url>https://jitpack.io</url>
				</repository>
				<repository>
					<id>github-maven</id>
					<name>GitHub Maven Packages - CI</name>
					<url>https://maven.pkg.github.com/compassion-technology</url>
				</repository>
			</repositories>
		</profile>
	</profiles>
</settings>Make sure you have a valid Gitlab Personal Access Token with API read access and the xml file is located at <user-root>/.m2/settings.xml.
If you had a previous failures running mvn, you may need to clear the cache in ~/.m2/repository/com/compassion/.  Then re-run mvn.
After getting mvn to execute, I got the following compiler error...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project cof-api: 
Fatal error compiling: error: invalid flag: -proc:full -> [Help 1]This error was solved by upgrading to Java 21+ instead of Java 17