It's an element in your settings.xml

http://maven.apache.org/maven-settings/settings.html#class_repository


for example
-----------
      <repository>
        <id>central</id>
        <url>http://repo1.maven.org/maven2</url>
        <releases>
          <enabled>true</enabled>
          <updatePolicy>never</updatePolicy>
        </releases>
        <snapshots>
          <enabled>false</enabled>
        </snapshots>
      </repository>

Note : the above repository does not contain snapshot versions,
therefore the snapshot element above is redundant. I have included it
for illustration only.


Thanks
Lakshman


> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> Sent: Thursday, 7 September 2006 2:06 AM
> To: Maven Users List
> Subject: RE: Why would Maven Not look in local repo?
> 
> This is great info; but where and how do I implement the update
> policy=never configuration?
> 
> Wayne Naccari
> 
> 
> 
> "Lakshman Srilakshmanan" <[EMAIL PROTECTED]>
> 09/05/2006 07:26 PM
> Please respond to
> "Maven Users List" <users@maven.apache.org>
> 
> 
> To
> "Maven Users List" <users@maven.apache.org>
> cc
> 
> Subject
> RE: Why would Maven Not look in local repo?
> 
> 
> 
> 
> 
> 
> Hi,
> 
> I know the frustration. :) I was there ...
> 
> Maven looks for updates "daily" at ibiblio using a reserved repository
> id "central". Maven is configured to look at this "daily" for updates.
> Hence, even if you have the plugins/jar file in your Local Repo it
looks
> for new version daily at central and any other repositories you may
have
> setup.
> 
> How to prevent this ? I hear you asking.
> 
> There is a <updatePolicy> which must be set to "never" for every
> repository including "central". This will cause maven to look at
ibiblio
> only if the plugin/jar does not exist in your Local Repo.
> 
> Thanks
> Lakshman
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 6 September 2006 7:46 AM
> > To: users@maven.apache.org
> > Subject: Why would Maven Not look in local repo?
> > Importance: High
> >
> > It seems that Maven is looking directly into the Ibiblio repo for
> items it
> > should be finding in the local repo.  They are there right where
they
> were
> > yesterday.  Now the builds are failing because it can't find local
> > versions of components when it looks in the central repo.  There's
> nothing
> > in the history or log that shows it tried and failed to get these
> items
> > from the local repo!!!
> >
> > Any ideas; some config issue?
> >
> >
> >
> > -----------------------------------------
> > This e-mail and any attachments are intended only for the
> > individual or company to which it is addressed and may contain
> > information which is privileged, confidential and prohibited from
> > disclosure or unauthorized use under applicable law.  If you are
> > not the intended recipient of this e-mail, you are hereby notified
> > that any use, dissemination, or copying of this e-mail or the
> > information contained in this e-mail is strictly prohibited by the
> > sender.  If you have received this transmission in error, please
> > return the material received to the sender and delete all copies
> > from your system.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



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

Reply via email to