Thanks for ur reply

I just make change in Repositories tag.

Add one more
repository and make it default. now maven going to check there first but as it 
not found it goes to maven public repository. and download to my pc (Not the pc 
where archiva is running)

My New edited POM..XML is
....
<repositories>
        <repository>
            <id>andromda</id>
            <name>AndroMDA Repository</name>
            <url>http://team.andromda.org/maven2</url>
        </repository>
      <repository>
            <id>maven2-repository.dev.java.net</id>
            <name>Java.net Repository for Maven 2</name>
            <url>https://maven2-repository.dev.java.net/nonav/repository</url>
        
        </repository>
      <repository>
          <id>Mycompnay internal</id>
           <url>http://10.10.134.60:8080/archiva/repository/C2Internal/</url>   
       
        <layout>default</layout>
      </repository> 
    </repositories>
....

My Complete settings.xml is

<settings>
<profiles>
    <profile>
      <id>Repository Proxy</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>internal.releases</id>
          <url>http://C2Vaibhav:8080/archiva/repository/C2Internal/</url>
        </repository>
      </repositories>
    </profile>
  </profiles>
<mirrors>
    <mirror>
      <id>archiva.default</id>
      <!-- 
<url>http://repo.mycompany.com:8080/archiva/repository/internal/</url> -->
    <url>http://10.10.134.60:8080/archiva/repository/C2Internal/</url>
      <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>
</settings>

10.10.136.60 is PC where Archiva is running. but maven is not downloading to 
that pc instead it just check there for files and download to my local pc(Not 
Where Archiva install)
What else i need to set for


----- Original Message ----
From: rohan chauhan <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>
Sent: Tuesday, 14 October, 2008 5:28:50 PM
Subject: Re: Local repository config prob

Thanks for ur quick reply..

But i want to know then what should i include i settings.xml file
i read somewhere that u need to create server and give password there and in 
pom add dependency management tag to refer that server.. but its still not 
working

Then i try for setting virtual repositories but still same thing happaning that 
its download directly from remote public maven repository only.

can u help me to set my setting.xml file. can u give what are change needed for 
accessing pc where Archiva insttalled.



----- Original Message ----
From: Brett Porter <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>
Sent: Tuesday, 14 October, 2008 5:13:39 PM
Subject: Re: Local repository config prob

You are correct - you can remove the proxy settings in this scenario.

Cheers,
Brett

On 14/10/2008, at 10:09 PM, rohan chauhan wrote:

> Hi all
>
> I installl Apache Archiva and configure it as they menstion. and try  
> to check on local PC for mvn install command and its working well.
>
> Now thing is when i'm reffering from other PC(within intranet ip is  
> 10.20.30.40) it communicate to Maven public repository not to Apache  
> Archiva install on ip 10.20.30.40
>
> I want my maven check from ip 10.20.30.40 first. if file is not  
> there then it is download and store on ip 10.20.30.40(where Archiva  
> running) and then i access it. Do i need Proxy setting for that(as  
> i'm always communicate with ip 10.20.30.40 only)?
>
> for that i made changes in settings.xml file
>
> <settings>
> <proxies>
>   <proxy>
>      <active>true</active>
>      <protocol>http</protocol>
>      <host>10...10.136.103</host>
>      <port>8080</port>
>      <username>solusoftindia\vtrivedi</username>
>      <password>pass123</password>
>      <nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
>    </proxy>
>  </proxies>
>  <mirrors>
>    <mirror>
>      <id>archiva.default</id>
>      <!-- <url>http://repo.mycompany.com:8080/archiva/repository/internal/ 
> </url> -->
>    <url>http://10.20.30.40:8080/archiva/repository/internal/</url>
>      <mirrorOf>*</mirrorOf>
>    </mirror>
>  </mirrors>
> </settings>
>
> Is there any more things needed to do my task.
>
>
> ________________________________
> Do not follow where the path may lead. Go instead where there is no  
> path and leave a trail ! ! !
>
> ________________________________
>
> ________________________________
> * Learn to enjoy every minute of your life.  Be happy now.  Don't  
> wait for
> something outside of yourself to make you happy in the future.  
> Think how
> really precious is the time you have to spend, whether it's at work  
> or with
> your family.  Every minute should be enjoyed and savored
> by forgetting problems. * - My Thought
>
> ________________________________
>
>
>      Add more friends to your messenger and enjoy! Go to 
> http://messenger.yahoo.com/invite/

--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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


      Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


      Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


      Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Reply via email to