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 <t...@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-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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

Reply via email to