On Mon, Apr 23, 2012 at 9:00 PM, Andrew Hughes <[email protected]> wrote:
> Hi All,
>
> I have configured the following to perform (local) snapshot updates every
> 5mins... unfortunately the dependencies DO NOT update at the prescribed
> 5min interval. Could it be that the <activeProfiles> do not ALWAYS
> activate? I do have a specific -P dev (project defined) profile enabled
> while building, will this deactivate the settings.xml <activeProfiles>? Or
> any other circumstances for that matter?
>
> If anyone has a better way of doing this or if there is a problem with my
> settings below, I'm all ear's :)

Or wars?

activeProfiles are only active until some explicit profile is
activated from the command line, I believe. You need to make your
profile use an activation that will always be satisfied instead.


>
> Cheers.
>
>
> the settings.xml.....
>
> <?xml version="1.0" encoding="UTF-8"?>
> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0";
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
> http://maven.apache.org/xsd/settings-1.0.0.xsd";>
>  <servers>
>    <server>
>      <id>snapshots</id>
>      <username>admin</username>
>      <password>admin123</password>
>    </server>
>    <server>
>      <id>releases</id>
>      <username>admin</username>
>      <password>admin123</password>
>    </server>
>  </servers>
>  <mirrors>
>    <mirror>
>      <id>acme-nexus</id>
>  <url>http://acme.com/nexus/content/groups/public/</url>
>      <mirrorOf>*</mirrorOf>
>    </mirror>
>  </mirrors>
>  <profiles>
> <profile>
>      <id>acme</id>
>      <repositories>
>        <repository>
>          <id>acme-nexus</id>
>          <name>acme-nexus</name>
>          <releases>
>            <enabled>true</enabled>
>            <updatePolicy>never</updatePolicy>
>            <checksumPolicy>fail</checksumPolicy>
>          </releases>
>          <snapshots>
>            <enabled>true</enabled>
>            <updatePolicy>interval:5</updatePolicy>
>            <checksumPolicy>fail</checksumPolicy>
>          </snapshots>
>          <url>http://acme.com/nexus/content/groups/public/</url>
>          <layout>default</layout>
>        </repository>
>      </repositories>
> </profile>
>  </profiles>
>  <activeProfiles>
> <activeProfile>acme</activeProfile>
>  </activeProfiles>
> </settings>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to