You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Jeff <pr...@gmail.com> on 2011/09/02 01:57:47 UTC

Functional question relating to Maven central...

I have my shiney new Archiva server up (at least I can log into the web
interface and mess with the settings) and it looks like there are proxy
connectors to central and java.net repositories by default.

After searching the docs I'm still fuzzy how the wiring between central and
java.net repositories works and I don't get any search results for artifacts
that should be in central.

   - Should I be able to search Archiva for artifacts in central or java.net,
   even if they haven't been cached yet?
      - If so, how do I trigger Archiva to update indexes from these
      repositories?
   - I tried hitting the default URL for maven central and the
java.netrepositories.  The maven central url (
   http://repo1.maven.org/maven2/) shows a message stating that browsing for
   that directory has been disabled and provides a link to the new "search" and
   "view" page.
      - Is there a new URL?  Will this affect Archiva?
   - Does Archiva only cache artifacts from Central if they have been
   requested or does it try to pull all of them at some point?

Any clarification on how wiring up Archiva to provide access to central/
java.net is achieved is much appreciated.

-- 
Jeff Vincent
predatorvi@gmail.com
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox <http://db.tt/9O6LfBX> !!

Re: Functional question relating to Maven central...

Posted by Brett Porter <br...@apache.org>.
On 02/09/2011, at 9:57 AM, Jeff wrote:

> I have my shiney new Archiva server up (at least I can log into the web
> interface and mess with the settings) and it looks like there are proxy
> connectors to central and java.net repositories by default.
> 
> After searching the docs I'm still fuzzy how the wiring between central and
> java.net repositories works and I don't get any search results for artifacts
> that should be in central.
> 
>   - Should I be able to search Archiva for artifacts in central or java.net,
>   even if they haven't been cached yet?
>      - If so, how do I trigger Archiva to update indexes from these
>      repositories?

As Wendy said, not at this stage - but we are working on it.

>   - I tried hitting the default URL for maven central and the
> java.netrepositories.  The maven central url (
>   http://repo1.maven.org/maven2/) shows a message stating that browsing for
>   that directory has been disabled and provides a link to the new "search" and
>   "view" page.
>      - Is there a new URL?  Will this affect Archiva?

No, individual artifact requests still work as they did. Archiva appears much the same as Maven to the remote system.

>   - Does Archiva only cache artifacts from Central if they have been
>   requested or does it try to pull all of them at some point?

Only as requested - there's far too much stuff there that you'll never need.

> 
> Any clarification on how wiring up Archiva to provide access to central/
> java.net is achieved is much appreciated.

With the default configuration, you should just need to start requesting artefacts with Maven and it will proxy them in.

- Brett

--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter





Re: Functional question relating to Maven central...

Posted by Dan Tran <da...@gmail.com>.
sorry, I replied on the wrong subject

-D
On Thu, Sep 1, 2011 at 6:25 PM, Dan Tran <da...@gmail.com> wrote:
> it works.
>
> Thanks
>
> -Dan
>
> On Thu, Sep 1, 2011 at 5:17 PM, Wendy Smoak <ws...@gmail.com> wrote:
>> On Thu, Sep 1, 2011 at 7:57 PM, Jeff <pr...@gmail.com> wrote:
>>> After searching the docs I'm still fuzzy how the wiring between central and
>>> java.net repositories works and I don't get any search results for artifacts
>>> that should be in central.
>>>
>>>   - Should I be able to search Archiva for artifacts in central or java.net,
>>>   even if they haven't been cached yet?
>>
>> No.  Archiva only indexes the content it has locally, and it will only
>> have it locally if you've done a build that requests it (or otherwise
>> hit the Archiva url that would make it proxy the content -- you can do
>> it in a browser or with wget for example.)
>>
>> --
>> Wendy
>>
>

Re: Functional question relating to Maven central...

Posted by Dan Tran <da...@gmail.com>.
it works.

Thanks

-Dan

On Thu, Sep 1, 2011 at 5:17 PM, Wendy Smoak <ws...@gmail.com> wrote:
> On Thu, Sep 1, 2011 at 7:57 PM, Jeff <pr...@gmail.com> wrote:
>> After searching the docs I'm still fuzzy how the wiring between central and
>> java.net repositories works and I don't get any search results for artifacts
>> that should be in central.
>>
>>   - Should I be able to search Archiva for artifacts in central or java.net,
>>   even if they haven't been cached yet?
>
> No.  Archiva only indexes the content it has locally, and it will only
> have it locally if you've done a build that requests it (or otherwise
> hit the Archiva url that would make it proxy the content -- you can do
> it in a browser or with wget for example.)
>
> --
> Wendy
>

Re: Functional question relating to Maven central...

Posted by Wendy Smoak <ws...@gmail.com>.
On Thu, Sep 1, 2011 at 7:57 PM, Jeff <pr...@gmail.com> wrote:
> After searching the docs I'm still fuzzy how the wiring between central and
> java.net repositories works and I don't get any search results for artifacts
> that should be in central.
>
>   - Should I be able to search Archiva for artifacts in central or java.net,
>   even if they haven't been cached yet?

No.  Archiva only indexes the content it has locally, and it will only
have it locally if you've done a build that requests it (or otherwise
hit the Archiva url that would make it proxy the content -- you can do
it in a browser or with wget for example.)

-- 
Wendy