Just as an idea, try going to the user account that you build under's .m2
directory (${user.dir}/.m2) and delete the plugin-registry.xml file, and
re-run. It might be causing you some problems.

Eric

On 11/20/06, Thomas Will <[EMAIL PROTECTED]> wrote:

We've got an inhouse mirror of the central repository
(MyCompanyCentral). We also publish a company-specific
maven-plugin to that same repository.

We face the problem that the latest version of our
plugin is not downloaded to the local maven
repository, if there is already an old version, even
not after several days.
We also tried with
<updatePolicy>interval:30</updatePolicy>
and <updatePolicy>always</updatePolicy>
but no success.

It only worked when we deleted the old local versions,

or when we run maven with the -U parameter.

Should this basically work?
Any idea what we might do wrong?

We use this settings.xml:

<settings>
  <localRepository>D:/mavenrepo</localRepository>

  <mirrors>
    <mirror>
      <id>MyCompanyCentral</id>
      <name>MyCompany Central Repository</name>
   <url>http://build.mycompany.com/m2/repository</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>

  <profiles>
    <profile>
      <id>MyCompanyDefaultProfile</id>
      <repositories>
        <repository>
          <id>MyCompanyCentral</id>
          <name>MyCompany Central Repository</name>

<url>http://build.mycompany.com/m2/repository</url>
          <layout>default</layout>
        </repository>
        <repository>
          <id>MyCompanySnapshot</id>
          <name>MyCompany Snapshot Repository</name>
    <url>http://build.mycompany.com/snapshot</url>
        </repository>
      </repositories>
    </profile>
  </profiles>

  <activeProfiles>

<activeProfile>MyCompanyDefaultProfile</activeProfile>
  </activeProfiles>
</settings>

Thanks, Tom


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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




--
Eric Redmond
http://codehaus.org/~eredmond

Reply via email to