I am trying to add a remote repository on Archiva. However, I keep getting this error in the logs:
ERROR
org.apache.cxf.jaxrs.utils.JAXRSUtils
[]
- No message body writer has been found for classorg.apache.archiva.rest.services.ArchivaRestError
,
ContentType: text/plain
I tried adding the Content Type header with text/plain but that did not work
I've hit the same problem after adding a new remote repository to Archiva.
From my analysis I conclude that the error is thrown for Repositories that don't expose an index.
Example: When adding http://download.oracle.com/maven, which is Oracle's Maven Repository to receive artifacts, will throw this error as soon as you've added it as a remote repository.
Trying to access the URL via browser results in a 404. However, direct queries like this are answered properly.
So, I guess it is Archiva's inability to properly cope with such repositories.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With