maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Fox <bri...@infinity.nu>
Subject Re: update snapshots always but do not block when unreachable
Date Sun, 07 Feb 2010 17:42:18 GMT
You can use the offline mode when it's unreachable. This is settable
by -o from the command line.

On Sat, Feb 6, 2010 at 9:03 AM, tbee <tbee@tbee.org> wrote:
>
> I'm busy fine tuning our maven (3) based environment. One of the behaviors I
> want is this:
> - always check if there is a newer version of snapshots in Nexus
> - but do not fail when Nexus is unreachable
>
> The first is done with --update-snapshots, but if the repository is
> unreachable (for whatever reason; e.g. you're on a train and the connection
> is down), the developer cannot compile anymore because Maven fails with an
> error.
>
> I also tried:
>
>                <snapshotRepository>
>                        <id>kp-snapshots</id>
>                        <url>...</url>
>                        <uniqueVersion>false</uniqueVersion>
>                        <snapshots> <updatePolicy>always</updatePolicy>
</snapshots>
>                </snapshotRepository>
>
> But then it does not check for a newer version in Nexus.
>
> Is it possible to configure: check-and-update-always-if-available?
>
>
> --
> View this message in context: http://old.nabble.com/update-snapshots-always-but-do-not-block-when-unreachable-tp27479906p27479906.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Mime
View raw message