[Jpackage-commits] dist/buildnumber-maven-plugin/devel 0001-Add-source-and-target-version-for-compiler.patch, NONE, 1.1 0002-Remove-maven-scm-provider-svnjava-dependency.patch, NONE, 1.1 buildnumber-maven-plugin-1.0.tar.xz, NONE, 1.1 buildnumber-maven-plugin-depmap.xml, NONE, 1.1 buildnumber-maven-plugin.spec, NONE, 1.1

David Walluck david at ryu.zarb.org
Tue Oct 11 23:32:54 CEST 2011

Update of /home/projects/jpackage/cvs/dist/buildnumber-maven-plugin/devel
In directory ryu.zarb.org:/tmp/cvs-serv3893/devel

Added Files:
Log Message:
- initial import

--- NEW FILE: 0001-Add-source-and-target-version-for-compiler.patch ---
>From e43c46d81384be53a4f79009bd543036c4f6ce49 Mon Sep 17 00:00:00 2001
From: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date: Mon, 18 Apr 2011 13:07:20 +0200
Subject: [PATCH 1/2] Add source and target version for compiler

 pom.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/pom.xml b/pom.xml
index 0fa6a52..bd64386 100644
--- a/pom.xml
+++ b/pom.xml
@@ -243,6 +243,15 @@
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.3.2</version>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>

--- NEW FILE: 0002-Remove-maven-scm-provider-svnjava-dependency.patch ---
>From 5c3685fea93f280bd56e8004afdde7da313154a1 Mon Sep 17 00:00:00 2001
From: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date: Mon, 18 Apr 2011 13:18:28 +0200
Subject: [PATCH 2/2] Remove maven-scm-provider-svnjava dependency

 pom.xml |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/pom.xml b/pom.xml
index bd64386..99f56b4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -156,17 +156,6 @@
-      <groupId>com.google.code.maven-scm-provider-svnjava</groupId>
-      <artifactId>maven-scm-provider-svnjava</artifactId>
-      <version>1.13</version>
-      <exclusions>
-        <exclusion>
-          <groupId>org.tmatesoft.svnkit</groupId>
-          <artifactId>svnkit</artifactId>        
-        </exclusion>
-      </exclusions>          
-    </dependency>    
-    <dependency>

--- NEW FILE: buildnumber-maven-plugin.spec ---
Name:           buildnumber-maven-plugin
Version:        1.0
Release:        3%{?dist}
Summary:        Build Number Maven Plugin

Group:          Development/Libraries
License:        MIT
# svn export http://svn.codehaus.org/mojo/tags/buildnumber-maven-plugin-1.0 buildnumber-maven-plugin
URL:            http://svn.codehaus.org/mojo/tags/buildnumber-maven-plugin-1.0

# tar caf buildnumber-maven-plugin-1.0.tar.xz buildnumber-maven-plugin
Source0:        buildnumber-maven-plugin-1.0.tar.xz
Source1:	%{name}-depmap.xml

Patch0:  	0001-Add-source-and-target-version-for-compiler.patch
Patch1:		0002-Remove-maven-scm-provider-svnjava-dependency.patch

BuildArch: 	noarch

# Basic stuff
BuildRequires: jpackage-utils
BuildRequires: java-devel >= 1:1.6.0

# Maven and its dependencies
BuildRequires: maven
BuildRequires: maven2-common-poms
BuildRequires: maven-plugin-plugin
BuildRequires: maven-idea-plugin
BuildRequires: maven-resources-plugin
BuildRequires: maven-compiler-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-javadoc-plugin
BuildRequires: maven-jar-plugin
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-invoker-plugin
BuildRequires: maven-doxia
BuildRequires: maven-doxia-tools
BuildRequires: maven-doxia-sitetools
BuildRequires: maven-surefire-provider-junit
BuildRequires: maven-surefire-plugin
BuildRequires: maven-plugin-cobertura
BuildRequires: plexus-containers-component-javadoc
BuildRequires: plexus-containers-container-default
BuildRequires: plexus-utils
BuildRequires: svnkit
BuildRequires: jna
BuildRequires: mojo-parent
BuildRequires: maven-project
BuildRequires: maven-scm

Requires: java
Requires: maven
Requires: maven-project
Requires: maven-scm
Requires: jna
Requires: svnkit
Requires: jpackage-utils
Requires: mojo-parent
Requires: plexus-containers-container-default
Requires: plexus-utils

This mojo is designed to get a unique build number for each time you build
your project. So while your version may remain constant at 1.0-SNAPSHOT
for many iterations until release, you will have a build number that can
uniquely identify each build during that time. The build number is obtained
from scm, and in particular, at this time, from svn. You can then place that
build number in metadata, which can be accessed from your app, if desired.

The mojo also has a couple of extra functions to ensure you get the proper
build number. First, your local repository is checked to make sure it is
up to date. Second, your local repository is automatically updated, so that
you get the latest build number. Both these functions can be suppressed,
if desired.

Optionally, you can configure this mojo to produce a revision based on a
timestamp, or on a sequence, without requiring any interaction with an
SCM system. Note that currently, the only supported SCM is subversion.

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}
Requires:       jpackage-utils

%description javadoc
API documentation for %{name}.

%setup -q -n %{name}

%patch0 -p1
%patch1 -p1


# tests skipped due to invoker problems with local repository tests
mvn-rpmbuild -DskipTests=true \
        -Dmaven.local.depmap.file=%{SOURCE1} \
        -Dmaven.test.skip=true \
        install javadoc:javadoc


# jars
install -d -m 0755 %{buildroot}%{_javadir}
install -m 644 target/%{name}-%{version}.jar   %{buildroot}%{_javadir}/%{name}.jar

# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml \

%add_maven_depmap JPP-%{name}.pom %{name}.jar

# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}

%pre javadoc
# workaround for rpm bug, can be removed in F-17
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :

%doc LICENSE.txt

%files javadoc
%doc LICENSE.txt

* Thu Jun 30 2011 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.0-3
- Add missing (Build)Requires
- Use new add_maven_depmap macro

* Wed Jun 8 2011 Alexander Kurtakov <akurtako at redhat.com> 1.0-2
- Do not require maven2.
- Guidelines fixes.

* Mon Apr 18 2011 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.0-1
- Update to latest upstream
- Build with maven 3
- Tweaks according to new guidelines
- Versionless jars & javadocs

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-0.11.b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Thu Nov 11 2010 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.0-0.10.b4
- Added mojo-parent to BR/R

* Wed Sep 1 2010 Alexander Kurtakov <akurtako at redhat.com> 1.0-0.9.b4
- Fix build and use new maven plugins names.

* Thu Jun 17 2010 Alexander Kurtakov <akurtako at redhat.com> 1.0-0.8.b4
- BR maven2-common-poms.

* Thu Jun 17 2010 Alexander Kurtakov <akurtako at redhat.com> 1.0-0.7.b4
- Disable it-tests and changes plugin.

* Thu Jun 17 2010 Alexander Kurtakov <akurtako at redhat.com> 1.0-0.6.b4
- Skip tests to be able to rebuild.

* Thu Jun 17 2010 Alexander Kurtakov <akurtako at redhat.com> 1.0-0.5.b4
- Add missing requires.

* Thu May 27 2010 Weinan Li <weli at redhat.com> - 1.0-0.4.b4
- License.txt and Readme.txt added as %doc

* Thu May 27 2010 Weinan Li <weli at redhat.com> - 1.0-0.3.b4
- Fix javadoc dangling-relative-symlink

* Wed May 26 2010 Weinan Li <weli at redhat.com> - 1.0-0.2.b4
- Add requires on jpackage-utils for javadoc subpackage
- Add standard jpackage-utils requires on main package
- Use global instead of define
- Fix license to MIT
- fix incoherent-version-in-changelog

* Mon May 24 2010 Weinan Li <weli at redhat.com> - 1.0-0.1.b4
- Initial package

--- NEW FILE: buildnumber-maven-plugin-depmap.xml ---
   <!-- Below are entries for packages in Brew that still don't have POMs.
        This will be fixed with time by the Third-Party project. -->

--- NEW FILE: buildnumber-maven-plugin-1.0.tar.xz ---
(This appears to be a binary file; contents omitted.)

More information about the JPackage-commits mailing list