[maven-invoker/f18] Initial version

Tomas Radej tradej at fedoraproject.org
Mon Jan 14 15:58:21 UTC 2013


commit dcef380cb84565edfc7abe74846b6c7799f11ff1
Author: Tomas Radej <tradej at redhat.com>
Date:   Mon Jan 14 16:55:47 2013 +0100

    Initial version

 .gitignore         |    1 +
 maven-invoker.spec |   79 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1eda9b1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/maven-invoker-2.1.1-source-release.zip
diff --git a/maven-invoker.spec b/maven-invoker.spec
new file mode 100644
index 0000000..85a57d4
--- /dev/null
+++ b/maven-invoker.spec
@@ -0,0 +1,79 @@
+Name:           maven-invoker
+Version:        2.1.1
+Release:        1%{?dist}
+Summary:        Fires a maven build in a clean environment
+License:        ASL 2.0
+URL:            http://maven.apache.org/shared/maven-invoker/
+Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
+
+BuildArch:      noarch
+
+BuildRequires:  java-devel
+BuildRequires:  jpackage-utils
+BuildRequires:  junit
+BuildRequires:  maven
+BuildRequires:  maven-surefire-provider-junit
+Requires:       java
+Requires:       jpackage-utils
+Requires:       plexus-containers-component-annotations
+Requires:       plexus-utils
+
+Obsoletes:      maven-shared-invoker < %{version}-%{release}
+Provides:       maven-shared-invoker = %{version}-%{release}
+
+%description
+This API is concerned with firing a Maven build in a new JVM. It accomplishes
+its task by building up a conventional Maven command line from options given in
+the current request, along with those global options specified in the invoker
+itself. Once it has the command line, the invoker will execute it, and capture
+the resulting exit code or any exception thrown to signal a failure to execute.
+Input/output control can be specified using an InputStream and up to two
+InvocationOutputHandlers.
+
+This is a replacement package for maven-shared-invoker
+
+%package javadoc
+Group:          Documentation
+Summary:        Javadoc for %{name}
+Requires:       jpackage-utils
+    
+%description javadoc
+API documentation for %{name}.
+
+
+%prep
+%setup -q
+
+%build
+mvn-rpmbuild package javadoc:aggregate
+
+%install
+# JAR
+install -Ddm 755 %{buildroot}/%{_javadir}
+install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# POM
+install -Ddm 755 %{buildroot}/%{_mavenpomdir}
+install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+# JavaDoc
+install -Ddm 755 %{buildroot}/%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+%files
+%doc LICENSE NOTICE
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc LICENSE NOTICE
+%doc %{_javadocdir}/%{name}
+
+
+%changelog
+* Fri Jan 11 2013 Tomas Radej <tradej at redhat.com> - 2.1.1-1
+- Initial version
+
diff --git a/sources b/sources
index e69de29..d4675e1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+90adef79015411c856da0bb829a23a0f  maven-invoker-2.1.1-source-release.zip


More information about the scm-commits mailing list