Awesome.  Can you write this up on a wiki page?  If the setup is easy enough
I might set that up for our trainees in Eldoret here next week!

Ben

On Tue, Sep 27, 2011 at 12:53 PM, Rowan Seymour <[email protected]>wrote:

> I think I have this working now... on our Nexus server I replaced the
> releases/snapshot proxy repositories with just
> http://mavenrepo.openmrs.org/nexus/content/repositories/public/ and added
> this to the server's public group.
>
> My settings file then looks like...
>
> <settings xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/settings-1.0.0.xsd";>
>   <pluginGroups>
>     <pluginGroup>org.openmrs.maven.plugins</pluginGroup>
>   </pluginGroups>
>   <profiles>
>     <profile>
>       <id>OpenMRS</id>
>       <activation>
>         <activeByDefault>true</activeByDefault>
>       </activation>
>       <properties>
>       <archetypeCatalog>
> http://mavenrepo.openmrs.org/nexus/service/local/repositories/releases/content/archetype-catalog.xml
> </archetypeCatalog>
>       </properties>
>       <repositories>
>         <repository>
>           <id>openmrs-repo</id>
>           <name>OpenMRS Nexus Repository</name>
>           <url>
> http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <pluginRepository>
>           <id>openmrs-repo</id>
>           <name>OpenMRS Nexus Repository</name>
>           <url>
> http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>         </pluginRepository>
>       </pluginRepositories>
>      </profile>
>    </profiles>
>    <mirrors>
>     <mirror>
>       <id>nexus</id>
>       <mirrorOf>central,openmrs-repo</mirrorOf>
>       <url>http://intare:8080/nexus/content/groups/public</url>
>     </mirror>
>   </mirrors>
> </settings>
>
> Everything seems to work fine... tho now to as far I can see, artifacts
> from Maven central are now coming from the OpenMRS respository (which is a
> Nexus server itself I assume) to our own Nexus server..so are being proxied
> twice.
>
> Rowan
>
> On 2 September 2011 10:58, Rowan Seymour <[email protected]> wrote:
>
>> I am trying these settings but nothing from the OpenMRS repositories seems
>> to be getting cached on the Nexus proxy. I've added two proxy repositories
>> to the Nexus server but they are still empty....
>>
>> id: openmrs-repo-releases
>> url: http://mavenrepo.openmrs.org/nexus/content/repositories/releases/
>>
>> id: openmrs-repo-snapshots
>> url: http://mavenrepo.openmrs.org/nexus/content/repositories/snapshots/
>>
>> I basically want to send all maven requests (or as many as possible)
>> through the Nexus proxy to save our limited internet bandwidth, and enable
>> us to do maven builds even when the internet is not working.
>>
>> Thanks and really appreciate any further advice
>>
>>
>> On 1 September 2011 17:07, goutham vasireddi <[email protected]
>> > wrote:
>>
>>> Hi Rowan,
>>>
>>> Guess your mirror tag saying maven to look only in
>>> http://intare:8080/nexus/content/groups/public .
>>>
>>> <settings>
>>>
>>>   <profiles>
>>>     <profile>
>>>       <id>OpenMRS</id>
>>>       <activation>
>>>         <activeByDefault>true</activeByDefault>
>>>       </activation>
>>>       <repositories>
>>>         <repository>
>>>           <id>openmrs-repo</id>
>>>           <name>OpenMRS Nexus Repository</name>
>>>           <url>
>>> http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
>>>         </repository>
>>>       </repositories>
>>>       <pluginRepositories>
>>>         <pluginRepository>
>>>           <id>openmrs-repo</id>
>>>           <name>OpenMRS Nexus Repository</name>
>>>           <url>
>>> http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
>>>           <snapshots>
>>>             <enabled>false</enabled>
>>>           </snapshots>
>>>         </pluginRepository>
>>>       </pluginRepositories>
>>>     </profile>
>>>   </profiles>
>>>  <mirrors>
>>>   <mirror>
>>>     <id>nexus</id>
>>>     <mirrorOf>central</mirrorOf>
>>>     <url>http://intare:8080/nexus/content/groups/public</url>
>>>   </mirror>
>>> </mirrors>
>>>
>>> </settings>
>>>
>>> the above settings.xml will also help in looking openmrs.maven.repo.
>>> Hope this helps :)
>>>
>>> -Goutham
>>>
>>> On Thu, Sep 1, 2011 at 5:52 PM, Rowan Seymour <[email protected]>wrote:
>>>
>>>> Maybe you could give Matt a wee nudge. The parent thing sounds great but
>>>> can't find any documentation on doing that. Thanks
>>>>
>>>>
>>>> On 30 August 2011 16:21, Ben Wolfe <[email protected]> wrote:
>>>>
>>>>> Matt did all the setup for us, so hopefully he'll chime in here.  But
>>>>> you should be able to set up the openmrs repo as a parent.  It will
>>>>> then inherit things from our repo mavenrepo.openmrs.org.
>>>>>
>>>>> Ben
>>>>>
>>>>> On Tue, Aug 30, 2011 at 5:14 PM, Rowan Seymour <[email protected]>
>>>>> wrote:
>>>>> > Disclaimer: I'm a Maven noob
>>>>> > I'm trying to create a Nexus Maven proxy for our training class
>>>>> because it
>>>>> > doesn't seem like a good idea to have a dozen students accessing
>>>>> remote
>>>>> > repositories on our internet connection. Alas though the
>>>>> documentation for
>>>>> > all things Maven related is a bit sparse.
>>>>> > The Nexus install is fine and comes with a bunch of repositories
>>>>> already
>>>>> > configured such as Maven Central etc. I then add the following to my
>>>>> Maven
>>>>> > settings.xml and it seems to start using the proxy for everything.
>>>>> >
>>>>> > <mirrors>
>>>>> >   <mirror>
>>>>> >     <id>nexus</id>
>>>>> >     <mirrorOf>*</mirrorOf>
>>>>> >     <url>http://intare:8080/nexus/content/groups/public</url>
>>>>> >   </mirror>
>>>>> > </mirrors>
>>>>> >
>>>>> > But I have to add all the OpenMRS repositories.. right? Is there a
>>>>> list
>>>>> > somewhere of all repositories I
>>>>> > need? http://mavenrepo.openmrs.org/nexus/content/repositories/ ?
>>>>> When Maven
>>>>> > complains about not finding a plugin is there an easy way to know in
>>>>> which
>>>>> > repository it lives?
>>>>> > --
>>>>> >
>>>>> > Dr Rowan Seymour
>>>>> > Partners In Health, Rwanda
>>>>> > Tel: +250783835665
>>>>> >
>>>>> > ________________________________
>>>>> > Click here to unsubscribe from OpenMRS Developers' mailing list
>>>>>
>>>>> _________________________________________
>>>>>
>>>>> To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
>>>>> [email protected] with "SIGNOFF openmrs-devel-l" in the
>>>>>  body (not the subject) of your e-mail.
>>>>>
>>>>> [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Rowan Seymour*
>>>> tel: +250 783835665
>>>> http://twitter.com/rowanseymour
>>>>
>>>>
>>>> ------------------------------
>>>> Click here to 
>>>> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from
>>>>  OpenMRS Developers' mailing list
>>>>
>>>
>>> ------------------------------
>>> Click here to 
>>> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
>>> OpenMRS Developers' mailing list
>>>
>>
>>
>>
>> --
>> *Rowan Seymour*
>> tel: +250 783835665
>> http://twitter.com/rowanseymour
>>
>>
>
>
> --
> *Rowan Seymour*
> tel: +250 783835665
> http://twitter.com/rowanseymour
>
>  ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list
>

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to