You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Didier BRICHET <di...@laposte.net> on 2005/11/19 22:49:03 UTC
[m2] can't reach maven-proxy
Hello,
I'm trying maven in a corporate environnement.
My problem is to use maven-proxy, to sit on my main server and imitate
ibiblio.
To do this, on a Windows XP machine with internet connection, I set my
user settings (in .m2 directory) like this :
|<settings>
<profiles>
<profile>
<id>myprofile</id>
<repositories>
<repository>
<id>central</id>
<name>your custom repo</name>
<url>http://localhost:9999/repository</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>your custom repo</name>
<url>http://localhost:9999/</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>myprofile</activeProfile>
</activeProfiles>
</settings>
|
Maven-proxy is running well (I can administrate it with a web browser at
http://localhost:9999)
In a empty directory, I try this
|mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app|
This work fine, but all downloads are done from
http://repo1.maven.org/maven2 !
And not from maven-proxy ! Maven-proxy cache is empty, and these no log
in it's command window.
It seems that maven do not reach maven-proxy.
What's wrong with my configuration ?
Thank's by advance.
--
\|/
-o o-
----------o00-(_)-00o-------------
Didier BRICHET
Mél : didier.brichet@laposte.net
------oo00-----------00oo---------
Re: [m2] can't reach maven-proxy
Posted by Edwin Punzalan <ep...@exist.com>.
You should follow the guide...
Maven Proxy is a separate application. A webserver to be exact. When
it is already running, you will add the url of the maven-proxy
application to your project as a repository (preferably with an id
central) so your projects will look for artifacts in your local maven-proxy.
Didier Brichet wrote:
> Hi,
>
> thank you for your answer, Edwin.
> But what I am trying to do is to set up an internal central repository
> as wrote at
> http://maven.apache.org/guides/introduction/introduction-to-repositories.html
> :
> "It is not recommended that you scrape or rsync:// a full copy of
> Ibiblio as there is a large amount of data there. You can use a
> program such as Maven Proxy, running on your internal repository's
> server, to download from the internet as required and then hold the
> artifacts in your internal repository for faster downloading later."
> When I start Maven-proxy, It is wrote in the Windows command :
> "Add the following to your ~/build.properties file:
> maven.repo.remote=http://localhost:9999/repository"
>
> But I'm using maven2. So I put the remote repository in setting.xml.
>
> What's wrong ?
>
> \|/
> -o o-
> ----------o00-(_)-00o-------------
>
> Didier BRICHET
> Mél : didier.brichet@laposte.net
>
> ------oo00-----------00oo---------
>
>
>
> Edwin Punzalan a écrit :
>
>>
>> Hi, are you sure its proxy you want? Proxies only forwards requests
>> from private machines to those on the internet.
>>
>> If you want maven to go to your own repository, then setup a
>> repository with id "central" so that the ibiblio repo will be
>> overridden in your pom.xml.
>>
>> Or if you want to put it in your settings.xml, use mirror.
>>
>>
>>
>>
>> Didier BRICHET wrote:
>>
>>> Hello,
>>>
>>> I'm trying maven in a corporate environnement.
>>> My problem is to use maven-proxy, to sit on my main server and
>>> imitate ibiblio.
>>> To do this, on a Windows XP machine with internet connection, I set
>>> my user settings (in .m2 directory) like this :
>>> |<settings>
>>> <profiles>
>>> <profile>
>>> <id>myprofile</id>
>>> <repositories>
>>> <repository>
>>> <id>central</id>
>>> <name>your custom repo</name>
>>> <url>http://localhost:9999/repository</url>
>>> </repository>
>>> </repositories>
>>> <pluginRepositories>
>>> <pluginRepository>
>>> <id>central</id>
>>> <name>your custom repo</name>
>>> <url>http://localhost:9999/</url>
>>> </pluginRepository>
>>> </pluginRepositories>
>>> </profile>
>>> </profiles>
>>>
>>> <activeProfiles>
>>> <activeProfile>myprofile</activeProfile>
>>> </activeProfiles>
>>> </settings>
>>> |
>>> Maven-proxy is running well (I can administrate it with a web
>>> browser at http://localhost:9999)
>>>
>>> In a empty directory, I try this
>>> |mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app|
>>>
>>> This work fine, but all downloads are done from
>>> http://repo1.maven.org/maven2 !
>>> And not from maven-proxy ! Maven-proxy cache is empty, and these no
>>> log in it's command window.
>>> It seems that maven do not reach maven-proxy.
>>> What's wrong with my configuration ?
>>>
>>> Thank's by advance.
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] can't reach maven-proxy
Posted by Didier Brichet <di...@laposte.net>.
Hi,
thank you for your answer, Edwin.
But what I am trying to do is to set up an internal central repository
as wrote at
http://maven.apache.org/guides/introduction/introduction-to-repositories.html
:
"It is not recommended that you scrape or rsync:// a full copy of
Ibiblio as there is a large amount of data there. You can use a program
such as Maven Proxy, running on your internal repository's server, to
download from the internet as required and then hold the artifacts in
your internal repository for faster downloading later."
When I start Maven-proxy, It is wrote in the Windows command :
"Add the following to your ~/build.properties file:
maven.repo.remote=http://localhost:9999/repository"
But I'm using maven2. So I put the remote repository in setting.xml.
What's wrong ?
\|/
-o o-
----------o00-(_)-00o-------------
Didier BRICHET
Mél : didier.brichet@laposte.net
------oo00-----------00oo---------
Edwin Punzalan a écrit :
>
> Hi, are you sure its proxy you want? Proxies only forwards requests
> from private machines to those on the internet.
>
> If you want maven to go to your own repository, then setup a
> repository with id "central" so that the ibiblio repo will be
> overridden in your pom.xml.
>
> Or if you want to put it in your settings.xml, use mirror.
>
>
>
>
> Didier BRICHET wrote:
>
>> Hello,
>>
>> I'm trying maven in a corporate environnement.
>> My problem is to use maven-proxy, to sit on my main server and
>> imitate ibiblio.
>> To do this, on a Windows XP machine with internet connection, I set
>> my user settings (in .m2 directory) like this :
>> |<settings>
>> <profiles>
>> <profile>
>> <id>myprofile</id>
>> <repositories>
>> <repository>
>> <id>central</id>
>> <name>your custom repo</name>
>> <url>http://localhost:9999/repository</url>
>> </repository>
>> </repositories>
>> <pluginRepositories>
>> <pluginRepository>
>> <id>central</id>
>> <name>your custom repo</name>
>> <url>http://localhost:9999/</url>
>> </pluginRepository>
>> </pluginRepositories>
>> </profile>
>> </profiles>
>>
>> <activeProfiles>
>> <activeProfile>myprofile</activeProfile>
>> </activeProfiles>
>> </settings>
>> |
>> Maven-proxy is running well (I can administrate it with a web browser
>> at http://localhost:9999)
>>
>> In a empty directory, I try this
>> |mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app|
>>
>> This work fine, but all downloads are done from
>> http://repo1.maven.org/maven2 !
>> And not from maven-proxy ! Maven-proxy cache is empty, and these no
>> log in it's command window.
>> It seems that maven do not reach maven-proxy.
>> What's wrong with my configuration ?
>>
>> Thank's by advance.
>>
>
> ---------------------------------------------------------------------
> 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: [m2] can't reach maven-proxy
Posted by Edwin Punzalan <ep...@exist.com>.
Hi, are you sure its proxy you want? Proxies only forwards requests
from private machines to those on the internet.
If you want maven to go to your own repository, then setup a repository
with id "central" so that the ibiblio repo will be overridden in your
pom.xml.
Or if you want to put it in your settings.xml, use mirror.
Didier BRICHET wrote:
> Hello,
>
> I'm trying maven in a corporate environnement.
> My problem is to use maven-proxy, to sit on my main server and imitate
> ibiblio.
> To do this, on a Windows XP machine with internet connection, I set my
> user settings (in .m2 directory) like this :
> |<settings>
> <profiles>
> <profile>
> <id>myprofile</id>
> <repositories>
> <repository>
> <id>central</id>
> <name>your custom repo</name>
> <url>http://localhost:9999/repository</url>
> </repository>
> </repositories>
> <pluginRepositories>
> <pluginRepository>
> <id>central</id>
> <name>your custom repo</name>
> <url>http://localhost:9999/</url>
> </pluginRepository>
> </pluginRepositories>
> </profile>
> </profiles>
>
> <activeProfiles>
> <activeProfile>myprofile</activeProfile>
> </activeProfiles>
> </settings>
> |
> Maven-proxy is running well (I can administrate it with a web browser
> at http://localhost:9999)
>
> In a empty directory, I try this
> |mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app|
>
> This work fine, but all downloads are done from
> http://repo1.maven.org/maven2 !
> And not from maven-proxy ! Maven-proxy cache is empty, and these no
> log in it's command window.
> It seems that maven do not reach maven-proxy.
> What's wrong with my configuration ?
>
> Thank's by advance.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] can't reach maven-proxy
Posted by Edwin Punzalan <ep...@exist.com>.
Also, please see:
http://maven.apache.org/guides/introduction/introduction-to-repositories.html
Didier BRICHET wrote:
> Hello,
>
> I'm trying maven in a corporate environnement.
> My problem is to use maven-proxy, to sit on my main server and imitate
> ibiblio.
> To do this, on a Windows XP machine with internet connection, I set my
> user settings (in .m2 directory) like this :
> |<settings>
> <profiles>
> <profile>
> <id>myprofile</id>
> <repositories>
> <repository>
> <id>central</id>
> <name>your custom repo</name>
> <url>http://localhost:9999/repository</url>
> </repository>
> </repositories>
> <pluginRepositories>
> <pluginRepository>
> <id>central</id>
> <name>your custom repo</name>
> <url>http://localhost:9999/</url>
> </pluginRepository>
> </pluginRepositories>
> </profile>
> </profiles>
>
> <activeProfiles>
> <activeProfile>myprofile</activeProfile>
> </activeProfiles>
> </settings>
> |
> Maven-proxy is running well (I can administrate it with a web browser
> at http://localhost:9999)
>
> In a empty directory, I try this
> |mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app|
>
> This work fine, but all downloads are done from
> http://repo1.maven.org/maven2 !
> And not from maven-proxy ! Maven-proxy cache is empty, and these no
> log in it's command window.
> It seems that maven do not reach maven-proxy.
> What's wrong with my configuration ?
>
> Thank's by advance.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org