Name: buildnumber-maven-plugin Version: 1.3 Release: 1 Summary: Build Number Maven Plugin License: MIT and ASL 2.0 URL: https://www.mojohaus.org/buildnumber-maven-plugin BuildArch: noarch Source0: https://github.com/mojohaus/buildnumber-maven-plugin/archive/buildnumber-maven-plugin-1.3.zip Source1: http://www.apache.org/licenses/LICENSE-2.0.txt BuildRequires: maven-local mvn(junit:junit) mvn(net.java.dev.jna:jna) BuildRequires: mvn(org.apache.maven:maven-core) mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.apache.maven:maven-project) mvn(org.apache.maven:maven-settings:2.0.6) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) BuildRequires: mvn(org.apache.maven.scm:maven-scm-api) BuildRequires: mvn(org.apache.maven.scm:maven-scm-manager-plexus) BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-bazaar) BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-clearcase) BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-cvsexe) BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-gitexe) BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-hg) BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-perforce) BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-starteam) BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-svn-commons) BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-svnexe) BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:) BuildRequires: mvn(org.codehaus.plexus:plexus-container-default) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) %description 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 Summary: Javadoc for %{name} %description javadoc API documentation for %{name}. %prep %setup -q -n %{name}-%{name}-%{version} cp -p %{SOURCE1} . %pom_remove_dep com.google.code.maven-scm-provider-svnjava:maven-scm-provider-svnjava %pom_remove_dep org.tmatesoft.svnkit:svnkit %pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-invoker-plugin %pom_add_dep junit:junit::test %build %mvn_build %install %mvn_install %files -f .mfiles %doc LICENSE.txt LICENSE-2.0.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt LICENSE-2.0.txt %changelog * Mon Aug 10 2020 chengzihan - 1.3-1 - Package init