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