I am trying to configure it so that Karaf can access a Nexus Sonatype Server using a password which contains special characters.
I found the link here: https://ops4j1.jira.com/wiki/display/paxurl/Mvn+Protocol#MvnProtocol-repositories which specifies the need to use the format of http://user:password@host in the org.ops4j.pax.url.mvn.repositories portion of the configs. When I tried to use, say, an '@' in the password, I ran into the issue of it not being able to interpret this. So for instance:
http://user:p@[email protected] would complain about "unknown host" [email protected].
I tried encoding the password. So I'd end up with my URL being http://user:p%[email protected]. This would throw the following trace:
org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.felix:org.apache.felix.metatype:jar:1.0.8 from/to repository (http://user:p%[email protected]/nexus/content/repositories/): Access denied to: http://host.example.com/nexus/content/repositories/bla/bla/bla.xml
For the record I tried adding a back slash before the '@' symbol and encoding the full URL to no avail. I am curious if anyone has any idea how I can get this to take passwords containing special characters?