From 5856826cc4f3168d5f37b8c8a8e172f8d153acbb Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Jul 17 2012 16:32:12 +0000 Subject: Add manual page Manpage was created using help2man and then tweaked manually. --- diff --git a/maven.spec b/maven.spec index e140ad4..518ef89 100644 --- a/maven.spec +++ b/maven.spec @@ -2,7 +2,7 @@ Name: maven Version: 3.0.4 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Java project management and project comprehension tool Group: Development/Tools @@ -12,6 +12,7 @@ URL: http://maven.apache.org/ # http://www.apache.org/dyn/closer.cgi/maven/source/apache-%{name}-%{version}-src.tar.gz Source0: http://www.apache.org/dist//maven/source/apache-%{name}-%{version}-src.tar.gz Source1: maven-bash-completion +Source2: mvn.1 # custom resolver java files # source: git clone git://fedorapeople.org/~sochotni/maven-javadir-resolver/ @@ -319,6 +320,11 @@ cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} # Install bash-completion install -Dm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name} +# Manual page +install -dm 755 $RPM_BUILD_ROOT%{_mandir}/man1 +install -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1 +gzip -9 $RPM_BUILD_ROOT%{_mandir}/man1/* + %preun if [ $1 -eq 0 ] ; then if [ -h %{_datadir}/%{name}/repository-jni/JPP ];then @@ -353,6 +359,7 @@ ln -sf `rpm --eval '%%{_jnidir}'` %{_datadir}/%{name}/repository-jni/JPP %{_javadir}/%{name} %{_datadir}/%{name}/repo-metadata.tar.xz %config(noreplace) %{_sysconfdir}/bash_completion.d/%{name} +%{_mandir}/man1/mvn.1.gz %files javadoc %doc LICENSE.txt @@ -360,6 +367,9 @@ ln -sf `rpm --eval '%%{_jnidir}'` %{_datadir}/%{name}/repository-jni/JPP %changelog +* Tue Jul 17 2012 Mikolaj Izdebski - 3.0.4-8 +- Add manual page + * Mon Jun 11 2012 Mikolaj Izdebski - 3.0.4-7 - Implement redundant dependency checks diff --git a/mvn.1 b/mvn.1 new file mode 100644 index 0000000..f6c486a --- /dev/null +++ b/mvn.1 @@ -0,0 +1,137 @@ +.TH MVN "1" "July 2012" "Apache Maven 3.0.4" "User Commands" +.SH NAME +mvn \- software project management and comprehension tool +.SH DESCRIPTION +usage: mvn [options] [] [] +.SH OPTIONS +.TP +\fB\-am\fR,\-\-also\-make +If project list is specified, also +build projects required by the +list +.TP +\fB\-amd\fR,\-\-also\-make\-dependents +If project list is specified, also +build projects that depend on +projects on the list +.TP +\fB\-B\fR,\-\-batch\-mode +Run in non\-interactive (batch) +mode +.TP +\fB\-C\fR,\-\-strict\-checksums +Fail the build if checksums don't +match +.TP +\fB\-c\fR,\-\-lax\-checksums +Warn if checksums don't match +.TP +\fB\-cpu\fR,\-\-check\-plugin\-updates +Ineffective, only kept for +backward compatibility +.TP +\fB\-D\fR,\-\-define +Define a system property +.TP +\fB\-e\fR,\-\-errors +Produce execution error messages +.TP +\fB\-emp\fR,\-\-encrypt\-master\-password +Encrypt master security password +.TP +\fB\-ep\fR,\-\-encrypt\-password +Encrypt server password +.TP +\fB\-f\fR,\-\-file +Force the use of an alternate POM +file. +.TP +\fB\-fae\fR,\-\-fail\-at\-end +Only fail the build afterwards; +allow all non\-impacted builds to +continue +.TP +\fB\-ff\fR,\-\-fail\-fast +Stop at first failure in +reactorized builds +.TP +\fB\-fn\fR,\-\-fail\-never +NEVER fail the build, regardless +of project result +.TP +\fB\-gs\fR,\-\-global\-settings +Alternate path for the global +settings file +.TP +\fB\-h\fR,\-\-help +Display help information +.TP +\fB\-l\fR,\-\-log\-file +Log file to where all build output +will go. +.TP +\fB\-N\fR,\-\-non\-recursive +Do not recurse into sub\-projects +.TP +\fB\-npr\fR,\-\-no\-plugin\-registry +Ineffective, only kept for +backward compatibility +.TP +\fB\-npu\fR,\-\-no\-plugin\-updates +Ineffective, only kept for +backward compatibility +.TP +\fB\-nsu\fR,\-\-no\-snapshot\-updates +Suppress SNAPSHOT updates +.TP +\fB\-o\fR,\-\-offline +Work offline +.TP +\fB\-P\fR,\-\-activate\-profiles +Comma\-delimited list of profiles +to activate +.TP +\fB\-pl\fR,\-\-projects +Comma\-delimited list of specified +reactor projects to build instead +of all projects. A project can be +specified by [groupId]:artifactId +or by its relative path. +.TP +\fB\-q\fR,\-\-quiet +Quiet output \- only show errors +.TP +\fB\-rf\fR,\-\-resume\-from +Resume reactor from specified +project +.TP +\fB\-s\fR,\-\-settings +Alternate path for the user +settings file +.TP +\fB\-T\fR,\-\-threads +Thread count, for instance 2.0C +where C is core multiplied +.TP +\fB\-t\fR,\-\-toolchains +Alternate path for the user +toolchains file +.TP +\fB\-U\fR,\-\-update\-snapshots +Forces a check for updated +releases and snapshots on remote +repositories +.TP +\fB\-up\fR,\-\-update\-plugins +Ineffective, only kept for +backward compatibility +.TP +\fB\-V\fR,\-\-show\-version +Display version information +WITHOUT stopping build +.TP +\fB\-v\fR,\-\-version +Display version information +.TP +\fB\-X\fR,\-\-debug +Produce execution debug output