On 8/15/06, Brett Porter <[EMAIL PROTECTED]> wrote:
Got it.

So, we can "guess" by removing the repository manager URL from the front
of the repository URL in the user POM.

not sure I understand here..


The other alternative - what about if we stored it in metadata in the
root of the repository?

So you request:
http://localhost:8080/releases/maven-metadata.xml

And it has:
repository.manager.url = http://localhost:8080/ (for requesting the index)
repository.manager.id = releases
somewhere in it.

Would that be the best solution?

yes, that would be a workable solution to get the index-repository id
mapping done and also to have a standard method of retrieving the url
for download of repository index.


Milos


- Brett

On 15/08/2006 2:09 PM, Milos Kleint wrote:
> On 8/15/06, Brett Porter <[EMAIL PROTECTED]> wrote:
>> Hi Milos,
>>
>> I'm a bit lost as to what you need.
>>
>> So, say you have a repository manager at http://localhost:8080/
>>
>> Then you have managed repositories called "snapshots" and "releases".
>
> ok, these names are the ones defined in the repository manager.
>
>>
>> You will be able to access those repositories at:
>> http://localhost:8080/snapshots/ and http://localhost:8080/releases/
>> respectively.
>
> let's say in the user's project I call those "my-localhost-snapshot",
> and "my-locahost-releases"
>        <repository>
>            <id>my-localhost-releases</id>
>            <name>My local repository</name>
>            <url>http://localhost:8080/releases/</url>
>        </repository>
>
>>
>> The index will just be one (say,
>> http://localhost:8080/retrieveMinimalIndex.action). Inside that, each
>> record has an ID that will be able to determine whether it is releases
>> or snapshots.
>
> 1.http://localhost:8080/retrieveMinimalIndex.action URL has no
> relationship whatsover to the repository URLs defined in the user
> project, so on the client side I cannot guess it just by looking at
> the repository URL in the project.
> 2. I make the user to fill in the URL for the index. Fine. But then
> the names (ids) for the repository don't match anyway .. the local one
> ("my-localhost-releases") != repository index one ("releases")
>
> Is that more clear on this  example now?
>
> Milos
>
>>
>> At present, we are not tracking where it came from if it was via a proxy
>> or a synced repo. I inted to add that, but I don't think it is important
>> for the purposes you are describing.
>>
>> Once this works, we will need to look at other ways of making the index
>> updates more efficient (Eugene has had some thoughts on that and has
>> posted them to JIRA).
>>
>> So, does this fit what you needed or am I still missing something?
>>
>> - Brett
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


--
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to