Hi,
Please configure your settings.xml in Apache Maven install directory and add Adobe Public Repository URL in adobe-profile section.
Follow this KB article https://helpx.adobe.com/in/experience-manager/kb/SetUpTheAdobeMavenRepository.html.
If it does not work, try to run the mvn command with -U option and with sudo in macos/Linux and with Admin privileges in Windows.
Ex: mvn clean install -PautoInstallPackage -U