You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by buters <fr...@mail.ru> on 2008/07/06 11:32:04 UTC
Access to remote repositories
Hi,
would you explain me how can I acces to e.g.
http://repository.jboss.com/maven2/
I know that I have to add this in settings.txt
<servers>
<server>
<id>artifactory</id>
<username>admin</username>
<password>password</password>
</server>
</servers>
It is clear in case of Artifactory which id, username and password should be
used.
But which id, username and password must I use for other remote repositories
(beside central)?
Thanks beforehand,
regards, buters
--
View this message in context: http://www.nabble.com/Access-to-remote-repositories-tp18300257p18300257.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Access to remote repositories
Posted by Yoav Landman <yl...@gmail.com>.
Artifactory supports Nexus indexes starting with the 1.3.0 betas. If your
remote repositories do not provide an index (like the JBoss repo),
Artifactory will index the locally cached artifacts of that repository as a
fallback. Since you indicate your local JBoss cache is empty, there's
nothing to index, hence the empty results. You need to pull in some remote
artifacts form the JBoss repo first (e.g., by running mvn against a project
than needs dependencies from it), then you can expect some content in the
index.
(it's probably best to use the Artifactory users list for Artifactory
specific questions).
Yoav
buters wrote:
>
> Thank you very much Jason,
>
> I use m2eclipse and Artifactory, but I don't quite understand how I can
> customize that better. It works prima with local and central repositories,
> but with another as jboss one not. It seems as if Artifactory accepts
> these, but if I try to find an artifact from e.g. the jboss repository
> with eclipse "Add dependency", eclipse cannot find it if it's no copy in
> central one. Or I've not tested it often enough. Until now it runs only
> via central repository. All other repositories of Artifactory are empty.
>
> Probably Nexus does it clever.
> Best regards, buters
>
>
> Jason van Zyl-2 wrote:
>>
>> If you're talking about m2eclipse, then it's the Nexus index that you
>> need, and you can index any Maven repository using either Nexus
>> (nexus.sonatype.org), or just use the stand-alone indexer. m2eclipse
>> uses the Nexus index to process your local repository. If you want
>> JBoss artifacts to be made available ask them to index their maven
>> repositories using Nexus.
>>
>> On 6-Jul-08, at 12:40 PM, buters wrote:
>>
>>>
>>> Thank you very much Tim.
>>>
>>> But it would be fine if you me explain, why am I not able to index any
>>> repository with Maven Index in eclipse besides central, local and from
>>> Artifactory. If I try Add Dependency to my project, that doesn't
>>> exist in
>>> one of these repositories, eclipse doesn't find this plugin, though
>>> I've
>>> defined repository in my pom.xml. Or I must ignore eclipse errors, set
>>> <dependency> manual and try to run Maven goals?
>>>
>>> Thanks beforehand,
>>> regards, buters
>>>
>>> Tim Kettler wrote:
>>>>
>>>> buters schrieb:
>>>>> Hi,
>>>>
>>>> Hi,
>>>>
>>>>> would you explain me how can I acces to e.g.
>>>>> http://repository.jboss.com/maven2/
>>>>>
>>>>> I know that I have to add this in settings.txt
>>>>
>>>> You probably mean settings.xml.
>>>>
>>>>> <servers>
>>>>> <server>
>>>>> <id>artifactory</id>
>>>>> <username>admin</username>
>>>>> <password>password</password>
>>>>> </server>
>>>>> </servers>
>>>>
>>>> This is only needed if the repository is password protected. For
>>>> public
>>>> repositories like central, codehaus or the jboss repository you can
>>>> simply omit that part, just configure the repository in the
>>>> repositories
>>>> section and you are done.
>>>>
>>>>> It is clear in case of Artifactory which id, username and password
>>>>> should
>>>>> be
>>>>> used.
>>>>> But which id, username and password must I use for other remote
>>>>> repositories
>>>>> (beside central)?
>>>>>
>>>>> Thanks beforehand,
>>>>> regards, buters
>>>>
>>>> -Tim
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Access-to-remote-repositories-tp18300257p18303814.html
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>> Thanks,
>>
>> Jason
>>
>> ----------------------------------------------------------
>> Jason van Zyl
>> Founder, Apache Maven
>> jason at sonatype dot com
>> ----------------------------------------------------------
>>
>> First, the taking in of scattered particulars under one Idea,
>> so that everyone understands what is being talked about ... Second,
>> the separation of the Idea into parts, by dividing it at the joints,
>> as nature directs, not breaking any limb in half as a bad carver might.
>>
>> -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Access-to-remote-repositories-tp18300257p18314690.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Access to remote repositories
Posted by buters <fr...@mail.ru>.
Thank you very much Jason,
I use m2eclipse and Artifactory, but I don't quite understand how I can
customize that better. It works prima with local and central repositories,
but with another as jboss one not. It seems as if Artifactory accepts these,
but if I try to find an artifact from e.g. the jboss repository with eclipse
"Add dependency", eclipse cannot find it if it's no copy in central one. Or
I've not tested it often enough. Until now it runs only via central
repository. All other repositories of Artifactory are empty.
Probably Nexus does it clever.
Best regards, buters
Jason van Zyl-2 wrote:
>
> If you're talking about m2eclipse, then it's the Nexus index that you
> need, and you can index any Maven repository using either Nexus
> (nexus.sonatype.org), or just use the stand-alone indexer. m2eclipse
> uses the Nexus index to process your local repository. If you want
> JBoss artifacts to be made available ask them to index their maven
> repositories using Nexus.
>
> On 6-Jul-08, at 12:40 PM, buters wrote:
>
>>
>> Thank you very much Tim.
>>
>> But it would be fine if you me explain, why am I not able to index any
>> repository with Maven Index in eclipse besides central, local and from
>> Artifactory. If I try Add Dependency to my project, that doesn't
>> exist in
>> one of these repositories, eclipse doesn't find this plugin, though
>> I've
>> defined repository in my pom.xml. Or I must ignore eclipse errors, set
>> <dependency> manual and try to run Maven goals?
>>
>> Thanks beforehand,
>> regards, buters
>>
>> Tim Kettler wrote:
>>>
>>> buters schrieb:
>>>> Hi,
>>>
>>> Hi,
>>>
>>>> would you explain me how can I acces to e.g.
>>>> http://repository.jboss.com/maven2/
>>>>
>>>> I know that I have to add this in settings.txt
>>>
>>> You probably mean settings.xml.
>>>
>>>> <servers>
>>>> <server>
>>>> <id>artifactory</id>
>>>> <username>admin</username>
>>>> <password>password</password>
>>>> </server>
>>>> </servers>
>>>
>>> This is only needed if the repository is password protected. For
>>> public
>>> repositories like central, codehaus or the jboss repository you can
>>> simply omit that part, just configure the repository in the
>>> repositories
>>> section and you are done.
>>>
>>>> It is clear in case of Artifactory which id, username and password
>>>> should
>>>> be
>>>> used.
>>>> But which id, username and password must I use for other remote
>>>> repositories
>>>> (beside central)?
>>>>
>>>> Thanks beforehand,
>>>> regards, buters
>>>
>>> -Tim
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Access-to-remote-repositories-tp18300257p18303814.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder, Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
>
> First, the taking in of scattered particulars under one Idea,
> so that everyone understands what is being talked about ... Second,
> the separation of the Idea into parts, by dividing it at the joints,
> as nature directs, not breaking any limb in half as a bad carver might.
>
> -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Access-to-remote-repositories-tp18300257p18306283.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Access to remote repositories
Posted by Jason van Zyl <ja...@maven.org>.
If you're talking about m2eclipse, then it's the Nexus index that you
need, and you can index any Maven repository using either Nexus
(nexus.sonatype.org), or just use the stand-alone indexer. m2eclipse
uses the Nexus index to process your local repository. If you want
JBoss artifacts to be made available ask them to index their maven
repositories using Nexus.
On 6-Jul-08, at 12:40 PM, buters wrote:
>
> Thank you very much Tim.
>
> But it would be fine if you me explain, why am I not able to index any
> repository with Maven Index in eclipse besides central, local and from
> Artifactory. If I try Add Dependency to my project, that doesn't
> exist in
> one of these repositories, eclipse doesn't find this plugin, though
> I've
> defined repository in my pom.xml. Or I must ignore eclipse errors, set
> <dependency> manual and try to run Maven goals?
>
> Thanks beforehand,
> regards, buters
>
> Tim Kettler wrote:
>>
>> buters schrieb:
>>> Hi,
>>
>> Hi,
>>
>>> would you explain me how can I acces to e.g.
>>> http://repository.jboss.com/maven2/
>>>
>>> I know that I have to add this in settings.txt
>>
>> You probably mean settings.xml.
>>
>>> <servers>
>>> <server>
>>> <id>artifactory</id>
>>> <username>admin</username>
>>> <password>password</password>
>>> </server>
>>> </servers>
>>
>> This is only needed if the repository is password protected. For
>> public
>> repositories like central, codehaus or the jboss repository you can
>> simply omit that part, just configure the repository in the
>> repositories
>> section and you are done.
>>
>>> It is clear in case of Artifactory which id, username and password
>>> should
>>> be
>>> used.
>>> But which id, username and password must I use for other remote
>>> repositories
>>> (beside central)?
>>>
>>> Thanks beforehand,
>>> regards, buters
>>
>> -Tim
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Access-to-remote-repositories-tp18300257p18303814.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
First, the taking in of scattered particulars under one Idea,
so that everyone understands what is being talked about ... Second,
the separation of the Idea into parts, by dividing it at the joints,
as nature directs, not breaking any limb in half as a bad carver might.
-- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Access to remote repositories
Posted by buters <fr...@mail.ru>.
Thank you very much Tim,
ok I'll open new thread.
Best regards, buters
Tim Kettler wrote:
>
> I'm not using Eclipse, so I can't give you an authoritative answer. The
> only thing I know is that central for example contains an index
> directory [1]. Perhaps other repositories don't maintain such an index.
>
> Please open a new thread with a more matching subject if you need more
> help/information about this topic. It would probably also be useful if
> you would tell which eclipse plugin you are using, as there are two of
> them: m2eclipse and q4e.
>
> -Tim
>
> [1] http://repo1.maven.org/maven2/.index/
>
> buters schrieb:
>> Thank you very much Tim.
>>
>> But it would be fine if you me explain, why am I not able to index any
>> repository with Maven Index in eclipse besides central, local and from
>> Artifactory. If I try Add Dependency to my project, that doesn't exist in
>> one of these repositories, eclipse doesn't find this plugin, though I've
>> defined repository in my pom.xml. Or I must ignore eclipse errors, set
>> <dependency> manual and try to run Maven goals?
>>
>> Thanks beforehand,
>> regards, buters
>>
>> Tim Kettler wrote:
>>> buters schrieb:
>>>> Hi,
>>> Hi,
>>>
>>>> would you explain me how can I acces to e.g.
>>>> http://repository.jboss.com/maven2/
>>>>
>>>> I know that I have to add this in settings.txt
>>> You probably mean settings.xml.
>>>
>>>> <servers>
>>>> <server>
>>>> <id>artifactory</id>
>>>> <username>admin</username>
>>>> <password>password</password>
>>>> </server>
>>>> </servers>
>>> This is only needed if the repository is password protected. For public
>>> repositories like central, codehaus or the jboss repository you can
>>> simply omit that part, just configure the repository in the repositories
>>> section and you are done.
>>>
>>>> It is clear in case of Artifactory which id, username and password
>>>> should
>>>> be
>>>> used.
>>>> But which id, username and password must I use for other remote
>>>> repositories
>>>> (beside central)?
>>>>
>>>> Thanks beforehand,
>>>> regards, buters
>>> -Tim
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Access-to-remote-repositories-tp18300257p18306025.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Access to remote repositories
Posted by Tim Kettler <ti...@udo.edu>.
I'm not using Eclipse, so I can't give you an authoritative answer. The
only thing I know is that central for example contains an index
directory [1]. Perhaps other repositories don't maintain such an index.
Please open a new thread with a more matching subject if you need more
help/information about this topic. It would probably also be useful if
you would tell which eclipse plugin you are using, as there are two of
them: m2eclipse and q4e.
-Tim
[1] http://repo1.maven.org/maven2/.index/
buters schrieb:
> Thank you very much Tim.
>
> But it would be fine if you me explain, why am I not able to index any
> repository with Maven Index in eclipse besides central, local and from
> Artifactory. If I try Add Dependency to my project, that doesn't exist in
> one of these repositories, eclipse doesn't find this plugin, though I've
> defined repository in my pom.xml. Or I must ignore eclipse errors, set
> <dependency> manual and try to run Maven goals?
>
> Thanks beforehand,
> regards, buters
>
> Tim Kettler wrote:
>> buters schrieb:
>>> Hi,
>> Hi,
>>
>>> would you explain me how can I acces to e.g.
>>> http://repository.jboss.com/maven2/
>>>
>>> I know that I have to add this in settings.txt
>> You probably mean settings.xml.
>>
>>> <servers>
>>> <server>
>>> <id>artifactory</id>
>>> <username>admin</username>
>>> <password>password</password>
>>> </server>
>>> </servers>
>> This is only needed if the repository is password protected. For public
>> repositories like central, codehaus or the jboss repository you can
>> simply omit that part, just configure the repository in the repositories
>> section and you are done.
>>
>>> It is clear in case of Artifactory which id, username and password should
>>> be
>>> used.
>>> But which id, username and password must I use for other remote
>>> repositories
>>> (beside central)?
>>>
>>> Thanks beforehand,
>>> regards, buters
>> -Tim
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Access to remote repositories
Posted by buters <fr...@mail.ru>.
Thank you very much Tim.
But it would be fine if you me explain, why am I not able to index any
repository with Maven Index in eclipse besides central, local and from
Artifactory. If I try Add Dependency to my project, that doesn't exist in
one of these repositories, eclipse doesn't find this plugin, though I've
defined repository in my pom.xml. Or I must ignore eclipse errors, set
<dependency> manual and try to run Maven goals?
Thanks beforehand,
regards, buters
Tim Kettler wrote:
>
> buters schrieb:
>> Hi,
>
> Hi,
>
>> would you explain me how can I acces to e.g.
>> http://repository.jboss.com/maven2/
>>
>> I know that I have to add this in settings.txt
>
> You probably mean settings.xml.
>
>> <servers>
>> <server>
>> <id>artifactory</id>
>> <username>admin</username>
>> <password>password</password>
>> </server>
>> </servers>
>
> This is only needed if the repository is password protected. For public
> repositories like central, codehaus or the jboss repository you can
> simply omit that part, just configure the repository in the repositories
> section and you are done.
>
>> It is clear in case of Artifactory which id, username and password should
>> be
>> used.
>> But which id, username and password must I use for other remote
>> repositories
>> (beside central)?
>>
>> Thanks beforehand,
>> regards, buters
>
> -Tim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Access-to-remote-repositories-tp18300257p18303814.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Access to remote repositories
Posted by Tim Kettler <ti...@udo.edu>.
buters schrieb:
> Hi,
Hi,
> would you explain me how can I acces to e.g.
> http://repository.jboss.com/maven2/
>
> I know that I have to add this in settings.txt
You probably mean settings.xml.
> <servers>
> <server>
> <id>artifactory</id>
> <username>admin</username>
> <password>password</password>
> </server>
> </servers>
This is only needed if the repository is password protected. For public
repositories like central, codehaus or the jboss repository you can
simply omit that part, just configure the repository in the repositories
section and you are done.
> It is clear in case of Artifactory which id, username and password should be
> used.
> But which id, username and password must I use for other remote repositories
> (beside central)?
>
> Thanks beforehand,
> regards, buters
-Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org