You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marcelo Alcantara <ma...@gmail.com> on 2008/02/15 21:26:29 UTC

Restrict Maven to the Rep Manager

Hi,

I am using Artifactory as the maven rep manager.

Someone knows if there is a way to block maven from downloading from sites
other than the artifactory rep?

Thanks in advance,

-- 
Marcelo Alcantara
Senior Developer/Architect
--------------------------------------------------------
maralc@gmail.com
+55 11 81968823

Re: Restrict Maven to the Rep Manager

Posted by Wayne Fay <wa...@gmail.com>.
Of course you have to fill the other mirror parameters. Please read
the page linked by Wendy.

Wayne

On 2/18/08, Marcelo Alcantara <ma...@gmail.com> wrote:
> I fill a block like this:
>
>  <mirrors>
>    <mirror>
>      <mirrorOf>*</mirrorOf>
>    </mirror>
>  </mirrors>
>
> I don´t need to fill the other mirror parameters?
>
> Thanks, Marcelo
> On Feb 15, 2008 6:29 PM, Wendy Smoak <ws...@gmail.com> wrote:
>
> > On Fri, Feb 15, 2008 at 1:26 PM, Marcelo Alcantara <ma...@gmail.com>
> > wrote:
> >
> > >  Someone knows if there is a way to block maven from downloading from
> > sites
> > >  other than the artifactory rep?
> >
> > You can mirrors and mirrorOf * to prevent access to other repositories.
> >
> > http://maven.apache.org/guides/mini/guide-mirror-settings.html
> >
> > --
> > Wendy
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Marcelo Alcantara
> Senior Developer/Architect
> --------------------------------------------------------
> maralc@gmail.com
> +55 11 81968823
>

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


Re: Restrict Maven to the Rep Manager

Posted by Marcelo Alcantara <ma...@gmail.com>.
I fill a block like this:

  <mirrors>
    <mirror>
      <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>

I don´t need to fill the other mirror parameters?

Thanks, Marcelo
On Feb 15, 2008 6:29 PM, Wendy Smoak <ws...@gmail.com> wrote:

> On Fri, Feb 15, 2008 at 1:26 PM, Marcelo Alcantara <ma...@gmail.com>
> wrote:
>
> >  Someone knows if there is a way to block maven from downloading from
> sites
> >  other than the artifactory rep?
>
> You can mirrors and mirrorOf * to prevent access to other repositories.
>
> http://maven.apache.org/guides/mini/guide-mirror-settings.html
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Marcelo Alcantara
Senior Developer/Architect
--------------------------------------------------------
maralc@gmail.com
+55 11 81968823

Re: Restrict Maven to the Rep Manager

Posted by Wendy Smoak <ws...@gmail.com>.
On Fri, Feb 15, 2008 at 1:26 PM, Marcelo Alcantara <ma...@gmail.com> wrote:

>  Someone knows if there is a way to block maven from downloading from sites
>  other than the artifactory rep?

You can mirrors and mirrorOf * to prevent access to other repositories.

http://maven.apache.org/guides/mini/guide-mirror-settings.html

-- 
Wendy

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


Re: Restrict Maven to the Rep Manager

Posted by Wayne Fay <wa...@gmail.com>.
Simply configure a mirror in your settings.xml with the value
<mirrorOf>*</mirrorOf> in it, and point it at your Artifactory
instance.

Wayne

On 2/15/08, Marcelo Alcantara <ma...@gmail.com> wrote:
> Hi,
>
> I am using Artifactory as the maven rep manager.
>
> Someone knows if there is a way to block maven from downloading from sites
> other than the artifactory rep?
>
> Thanks in advance,
>
> --
> Marcelo Alcantara
> Senior Developer/Architect
> --------------------------------------------------------
> maralc@gmail.com
> +55 11 81968823
>

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