#!/usr/bin/env perl

use Cwd qw(abs_path);
use File::Basename qw(dirname);

# include script functions
use vars qw(
	$PREFIX
);
$PREFIX = abs_path(dirname($0));
require($PREFIX . "/functions.pl");

if (not defined $GIT) {
	exit 1;
}

clean_m2_repository() unless (exists $ENV{'SKIP_CLEAN'});
clean_git() unless (exists $ENV{'SKIP_CLEAN'});

my @command = ($MVN, '-U', @ARGS);
info("running:", @command);
handle_errors_and_exit_on_failure(system(@command));

exit 0;

#!/usr/bin/env perl

use Cwd qw(abs_path);
use File::Basename qw(dirname);

# include script functions
use vars qw(
	$PREFIX
);
$PREFIX = abs_path(dirname($0));
require($PREFIX . "/functions.pl");

if (not defined $GIT) {
	exit 1;
}

clean_m2_repository() unless (exists $ENV{'SKIP_CLEAN'});
clean_git() unless (exists $ENV{'SKIP_CLEAN'});

my @command = ($MVN, @ARGS);
info("running:", @command);
handle_errors_and_exit_on_failure(system(@command));

exit 0;

Revert "make sure maven does not try to cache update attempts too much"
Revert "make sure maven does not try to cache update attempts too much"

This reverts commit 82867c893d36feabdfade0f78e6d22329d0b0367.
