Our archiva repository experienced the case where the Admin ID expired and we could not recover it. Following this fix: How to reset Apache Archiva Password we deleted the user database and restarted Archiva.
Upon restart and after adding a new artifact to the internal repository, the error below was thrown during maven execution:
mvn clean package -U
Could not resolve dependencies for ... Could not transfer artifact com.package.... from/to ... Not authorized, ReasonPhrase:Unauthorized.
How can we make this work properly?