spring-cloud-deployer icon indicating copy to clipboard operation
spring-cloud-deployer copied to clipboard

MavenResource can not resolve artifacts without explicit repository configuration

Open dsyer opened this issue 8 years ago • 1 comments

MavenResource has a static parse() method that takes a String as an argument. But it uses a default instance of MavenProperties that has no repositories configured, so it is doomed to fail. It even fails when the resource has already been downloaded and is cached locally. I'd prefer it if the default behaviour was more like you get from Maven (or even better, more like that you get in the Spring Boot CLI - it adds the Spring repos, and the local cache as well as Central by default, and also parses the user's settings.xml).

dsyer avatar Dec 15 '16 09:12 dsyer

We had explicitly decided not to include any location, in part thinking of the PCF deployment case where folks typically point to their own in-house repo and to not bring an opinion to the table. Granted maven central isn't a big opinion, and we could potentially override the default at the SCDF level. Thoughts @markfisher

markpollack avatar Jan 03 '17 14:01 markpollack