Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:vlj:fedora14:maven2
maven-jar-plugin
maven-jar-plugin.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File maven-jar-plugin.spec of Package maven-jar-plugin
%global bootstrap 1 %global _mavenpomdir /usr/share/maven2/poms %global _mavendepmapfragdir /etc/maven/fragments Name: maven-jar-plugin Version: 2.3 Release: 0 Summary: Maven JAR Plugin Group: Development/Libraries License: ASL 2.0 URL: http://maven.apache.org/plugins/maven-jar-plugin/ #svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-jar-plugin-2.3 maven-jar-plugin-2.3 #tar caf maven-jar-plugin-2.3.tar.xz maven-jar-plugin-2.3/ Source0: %{name}-%{version}.tar.xz Source1: %{name}-depmap.xml BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: java-devel xz mvn-helper BuildRequires: maven2 %if !%{bootstrap} BuildRequires: maven2-plugin-plugin BuildRequires: maven2-plugin-jar BuildRequires: maven2-plugin-install BuildRequires: maven2-plugin-resources BuildRequires: maven-compiler-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-surefire-maven-plugin BuildRequires: maven-surefire-provider-junit BuildRequires: maven-doxia-sitetools BuildRequires: maven-plugin-testing-harness BuildRequires: maven-archiver BuildRequires: plexus-archiver BuildRequires: apache-commons-lang BuildRequires: plexus-utils BuildRequires: junit %endif Requires: maven2 Requires: maven-archiver Requires: plexus-archiver Requires: maven-shared-archiver Requires: jakarta-commons-lang Requires: plexus-utils Requires: maven-plugin-testing-harness Requires: junit Requires: jpackage-utils Requires: java Requires(post): jpackage-utils Requires(postun): jpackage-utils Provides: maven2-plugin-jar = %{version}-%{release} Obsoletes: maven2-plugin-jar <= 0:2.0.8 %description Builds a Java Archive (JAR) file from the compiled project classes and resources. %prep %setup -q #You may need to update this according to your Source0 mvn-helper replace -r /usr/share/maven2/bootstrap_repo/mvn-pass1/ . mvn-helper filter -f /etc/mvn-helper/filters.xml . %build export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository # mvn-jpp \ # -e \ # -Dmaven2.jpp.mode=true \ # -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ # -Dmaven2.jpp.depmap.file=%{SOURCE1} \ # -Dmaven.test.skip=true \ # install javadoc:javadoc mvn --settings /usr/share/maven2/conf/settings-custom.xml -Dmaven.test.skip=true install %install # jars install -d -m 0755 %{buildroot}%{_javadir} install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; \ do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) %add_to_maven_depmap org.apache.maven.plugins maven-jar-plugin %{version} JPP maven-jar-plugin # poms install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml \ %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom # javadoc # install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version} # cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/ # ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} # rm -rf target/site/api* %post %update_maven_depmap %postun %update_maven_depmap %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_javadir}/* %{_mavenpomdir} %{_mavendepmapfragdir} %changelog * Wed May 19 2010 Alexander Kurtakov <akurtako@redhat.com> 2.3-3 - Add depmap. * Wed May 19 2010 Alexander Kurtakov <akurtako@redhat.com> 2.3-2 - Requires maven-shared-archiver. * Thu May 13 2010 Alexander Kurtakov <akurtako@redhat.com> 2.3-1 - Initial package
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor