Run redundant dependency checks only in mock
This commit is contained in:
parent
5856826cc4
commit
7d259eee4b
@ -33,8 +33,15 @@ function help()
|
|||||||
# add maven.repo.local if it's not defined already
|
# add maven.repo.local if it's not defined already
|
||||||
local_add="-Dmaven.repo.local=$(pwd)/.m2/"
|
local_add="-Dmaven.repo.local=$(pwd)/.m2/"
|
||||||
|
|
||||||
log_file="$(umask 2 && mktemp -t mvn-rpmbuild.$$.XXXXXXXXXX)"
|
# Check whether we are ran in mock
|
||||||
logfile_add="-Dmaven.resolver.logfile=$log_file"
|
# FIXME: is there a better way to do this?
|
||||||
|
mock=test
|
||||||
|
test "$HOME" = /builddir && mock=:
|
||||||
|
|
||||||
|
if $mock; then
|
||||||
|
log_file="$(umask 2 && mktemp -t mvn-rpmbuild.$$.XXXXXXXXXX)"
|
||||||
|
logfile_add="-Dmaven.resolver.logfile=$log_file"
|
||||||
|
fi
|
||||||
|
|
||||||
function process_args()
|
function process_args()
|
||||||
{
|
{
|
||||||
@ -69,7 +76,7 @@ export JAVA_HOME
|
|||||||
export MAVEN_OPTS="$MAVEN_OPTS -Dmaven.local.mode ${local_add} ${logfile_add}"
|
export MAVEN_OPTS="$MAVEN_OPTS -Dmaven.local.mode ${local_add} ${logfile_add}"
|
||||||
|
|
||||||
$M2_HOME/bin/mvn -o "$@" || exit $?
|
$M2_HOME/bin/mvn -o "$@" || exit $?
|
||||||
|
$mock || exit
|
||||||
|
|
||||||
sanitize() {
|
sanitize() {
|
||||||
for obj in $1; do
|
for obj in $1; do
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: maven
|
Name: maven
|
||||||
Version: 3.0.4
|
Version: 3.0.4
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Summary: Java project management and project comprehension tool
|
Summary: Java project management and project comprehension tool
|
||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
@ -367,6 +367,9 @@ ln -sf `rpm --eval '%%{_jnidir}'` %{_datadir}/%{name}/repository-jni/JPP
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.4-9
|
||||||
|
- Run redundant dependency checks only in mock
|
||||||
|
|
||||||
* Tue Jul 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.4-8
|
* Tue Jul 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.4-8
|
||||||
- Add manual page
|
- Add manual page
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user