Hello all,

I am in the process of adjusting our company's build process to host our 
artifacts in an internal Maven repository. I have an ivysettings.xml file with 
two resolvers: a 'download' ibiblio resolver pointed to our repository, and a 
URL resolver that PUTs the built artifacts in the repository after compilation. 
Both resolvers point to a Maven repository hosted locally on port 8080, and the 
file also has a credentials element for the host`localhost:8080`.

However, Ant/Ivy errors out in this configuration, and I can see from logs that 
it is not using my credentials to authenticate to the server at port 8080. I 
fixed this issue by editing the host attribute of the credentials element to 
exclude the port number, simply writing host="localhost" rather than 
host="localhost:8080". While this behaviour does align with the technical 
meaning of "hostname" as a server located at an IP address (or several), to me 
it is counterintuitive as it implies that Ivy cannot access different URLs on 
the same host unless identical credentials are used for both.

Is this a bug? If not, is there any way to specify credentials for each 
resolver with better-than-hostname granularity?

Thanks,
Alex Galvin

Reply via email to