You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ryan Marsh <ma...@gmail.com> on 2005/12/29 23:49:58 UTC

auto download plugins from remote repo NOT central

Is it possible to get maven2 to automatically download plugins from a  
remote repository other than central? I have been unsuccessful in  
getting mvn to use my own remote repository to download plugins from.

This is for initial generation of a project so I can't specify  
<pluginRepositories> in a POM because there is none yet. I would like  
to just add the project repo to settings.xml and see 'mvn  
myproject:generate' work right off the bat.

Ryan Marsh
(281) 785-1805
marsh.ryanw@gmail.com





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: auto download plugins from remote repo NOT central

Posted by Eric Redmond <er...@gmail.com>.
I have been having the same issue.

On 12/29/05, Ryan Marsh <ma...@gmail.com> wrote:
>
> John,
>
> for some reason the pluginRepositories that i have put in
> settings.xml are not getting used to look for plugins. i know the
> syntax is correct and the profile is active. what is the other
> missing piece?
>
> here is my settings.xml
>
> <settings>
>    <profiles>
>      <profile>
>        <id>default</id>
>        <activation>
>          <activeByDefault/>
>        </activation>
>        <repositories>
>          <repository>
>            <id>snapshots</id>
>            <url>http://192.168.1.102/~ryan</url>
>            <layout>default</layout>
>          </repository>
>        </repositories>
>        <pluginRepositories>
>          <pluginRepository>
>            <id>snapshots</id>
>            <url>http://192.168.1.102/~ryan</url>
>            <release>
>                <enabled/>
>                <updatePolicy>always<updatePolicy/>
>            </release>
>          </pluginRepository>
>        </pluginRepositories>
>     </profile>
>    </profiles>
>    <activeProfiles>
>      <activeProfile>default</activeProfile>
>    </activeProfiles>
>    <pluginGroups>
>      <pluginGroup>org.apache.maven.plugins</pluginGroup>
>    </pluginGroups>
> </settings>
>
> my plugin is in org.apache.maven.plugins.maven-myproject-plugin and
> all the maven-metadata.xml files in my repo are done exactly like
> those in central. i just don't think it's even checking my repo.
>
>
> On Dec 29, 2005, at 5:01 PM, John Fallows wrote:
>
> > Ryan,
> >
> > You can use the <pluginRepositories> section of ~/.m2/settings.xml.
> >
> > Note: this file is located in C:\Documents and
> > Settings\<userid>\.m2\settings.xml on WinXP.
> >
> > Kind Regards,
> > John Fallows.
> >
> > On 12/29/05, Ryan Marsh <ma...@gmail.com> wrote:
> >>
> >> Is it possible to get maven2 to automatically download plugins from a
> >> remote repository other than central? I have been unsuccessful in
> >> getting mvn to use my own remote repository to download plugins from.
> >>
> >> This is for initial generation of a project so I can't specify
> >> <pluginRepositories> in a POM because there is none yet. I would like
> >> to just add the project repo to settings.xml and see 'mvn
> >> myproject:generate' work right off the bat.
> >>
> >> Ryan Marsh
> >> (281) 785-1805
> >> marsh.ryanw@gmail.com
> >>
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > --
> > Author Pro JSF and Ajax: Building Rich Internet Components
> > http://www.apress.com/book/bookDisplay.html?bID=10044
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: auto download plugins from remote repo NOT central

Posted by Ryan Marsh <ma...@gmail.com>.
John,

for some reason the pluginRepositories that i have put in  
settings.xml are not getting used to look for plugins. i know the  
syntax is correct and the profile is active. what is the other  
missing piece?

here is my settings.xml

<settings>
   <profiles>
     <profile>
       <id>default</id>
       <activation>
         <activeByDefault/>
       </activation>
       <repositories>
         <repository>
           <id>snapshots</id>
           <url>http://192.168.1.102/~ryan</url>
           <layout>default</layout>
         </repository>
       </repositories>
       <pluginRepositories>
         <pluginRepository>
           <id>snapshots</id>
           <url>http://192.168.1.102/~ryan</url>
           <release>
               <enabled/>
               <updatePolicy>always<updatePolicy/>
           </release>
         </pluginRepository>
       </pluginRepositories>
    </profile>
   </profiles>
   <activeProfiles>
     <activeProfile>default</activeProfile>
   </activeProfiles>
   <pluginGroups>
     <pluginGroup>org.apache.maven.plugins</pluginGroup>
   </pluginGroups>
</settings>

my plugin is in org.apache.maven.plugins.maven-myproject-plugin and  
all the maven-metadata.xml files in my repo are done exactly like  
those in central. i just don't think it's even checking my repo.


On Dec 29, 2005, at 5:01 PM, John Fallows wrote:

> Ryan,
>
> You can use the <pluginRepositories> section of ~/.m2/settings.xml.
>
> Note: this file is located in C:\Documents and
> Settings\<userid>\.m2\settings.xml on WinXP.
>
> Kind Regards,
> John Fallows.
>
> On 12/29/05, Ryan Marsh <ma...@gmail.com> wrote:
>>
>> Is it possible to get maven2 to automatically download plugins from a
>> remote repository other than central? I have been unsuccessful in
>> getting mvn to use my own remote repository to download plugins from.
>>
>> This is for initial generation of a project so I can't specify
>> <pluginRepositories> in a POM because there is none yet. I would like
>> to just add the project repo to settings.xml and see 'mvn
>> myproject:generate' work right off the bat.
>>
>> Ryan Marsh
>> (281) 785-1805
>> marsh.ryanw@gmail.com
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> Author Pro JSF and Ajax: Building Rich Internet Components
> http://www.apress.com/book/bookDisplay.html?bID=10044


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: auto download plugins from remote repo NOT central

Posted by John Fallows <jo...@gmail.com>.
Ryan,

You can use the <pluginRepositories> section of ~/.m2/settings.xml.

Note: this file is located in C:\Documents and
Settings\<userid>\.m2\settings.xml on WinXP.

Kind Regards,
John Fallows.

On 12/29/05, Ryan Marsh <ma...@gmail.com> wrote:
>
> Is it possible to get maven2 to automatically download plugins from a
> remote repository other than central? I have been unsuccessful in
> getting mvn to use my own remote repository to download plugins from.
>
> This is for initial generation of a project so I can't specify
> <pluginRepositories> in a POM because there is none yet. I would like
> to just add the project repo to settings.xml and see 'mvn
> myproject:generate' work right off the bat.
>
> Ryan Marsh
> (281) 785-1805
> marsh.ryanw@gmail.com
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Author Pro JSF and Ajax: Building Rich Internet Components
http://www.apress.com/book/bookDisplay.html?bID=10044