Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Finding the URL for an Artifact or Dependency

On 10/10/2012 04:52 PM, Benjamin Bentmann wrote:
Michel Guymon wrote:

After repoSystem .reslveDependencies is called, is it possible to get a
url for the Dependency that points at the remote repository where the
dependency is found? Would this have to be handled in a
RepositoryListener to track what urls are being used?

The easiest you can do is use MavenDefaultLayout from aether-util to calculate the relative path and append that to your repo's base URL.

What is the use case behind this?

Generating a list of urls for the jars required to bootstrap an Aether instance. Right now the list is created by hand, was curious if it is possible to automate.

thanks,
Michael


Back to the top