Build with xmvn

This commit is contained in:
Michal Srb 2013-01-17 12:35:56 +01:00
parent 345a7145e8
commit 9130231d26

View File

@ -1,6 +1,6 @@
Name: mojo-parent
Version: 30
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Codehaus MOJO parent project pom file
Group: Development/Libraries
@ -11,14 +11,9 @@ BuildArch: noarch
BuildRequires: jpackage-utils
BuildRequires: codehaus-parent
BuildRequires: maven
BuildRequires: xmvn
BuildRequires: maven-enforcer-plugin
Requires: plexus-containers-component-javadoc
Requires: maven-plugin-plugin
Requires: junit
Requires: codehaus-parent
Requires: jpackage-utils
%description
Codehaus MOJO parent project pom file
@ -29,21 +24,18 @@ Codehaus MOJO parent project pom file
%pom_remove_plugin :cobertura-maven-plugin
%build
mvn-rpmbuild install
%mvn_alias : org.codehaus.mojo:mojo
%mvn_build
%install
# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml \
%{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%mvn_install
%add_maven_depmap JPP-%{name}.pom -a org.codehaus.mojo:mojo
%files
%{_mavenpomdir}/*
%{_mavendepmapfragdir}/*
%files -f .mfiles
%changelog
* Thu Jan 17 2013 Michal Srb <msrb@redhat.com> - 30-4
- Build with xmvn
* Fri Jan 4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 30-3
- Disable maven-plugin-cobertura