|
|
@ -1,19 +1,21 @@
|
|
|
|
%global bundled_slf4j_version 1.7.28
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global bundled_slf4j_version 1.7.30
|
|
|
|
%global homedir %{_datadir}/%{name}%{?maven_version_suffix}
|
|
|
|
%global homedir %{_datadir}/%{name}%{?maven_version_suffix}
|
|
|
|
%global confdir %{_sysconfdir}/%{name}%{?maven_version_suffix}
|
|
|
|
%global confdir %{_sysconfdir}/%{name}%{?maven_version_suffix}
|
|
|
|
|
|
|
|
|
|
|
|
Name: maven
|
|
|
|
Name: maven
|
|
|
|
Epoch: 1
|
|
|
|
Epoch: 1
|
|
|
|
Version: 3.6.2
|
|
|
|
Version: 3.6.3
|
|
|
|
Release: 9%{?dist}
|
|
|
|
Release: 19%{?dist}
|
|
|
|
Summary: Java project management and project comprehension tool
|
|
|
|
Summary: Java project management and project comprehension tool
|
|
|
|
# maven itself is ASL 2.0
|
|
|
|
# maven itself is ASL 2.0
|
|
|
|
# bundled slf4j is MIT
|
|
|
|
# bundled slf4j is MIT
|
|
|
|
License: ASL 2.0 and MIT
|
|
|
|
License: ASL 2.0 and MIT
|
|
|
|
URL: http://maven.apache.org/
|
|
|
|
URL: https://maven.apache.org/
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
Source0: http://archive.apache.org/dist/%{name}/%{name}-3/%{version}/sources/apache-%{name}-%{version}-src.tar.gz
|
|
|
|
Source0: https://archive.apache.org/dist/%{name}/%{name}-3/%{version}/source/apache-%{name}-%{version}-src.tar.gz
|
|
|
|
Source1: maven-bash-completion
|
|
|
|
Source1: maven-bash-completion
|
|
|
|
Source2: mvn.1
|
|
|
|
Source2: mvn.1
|
|
|
|
|
|
|
|
|
|
|
@ -25,79 +27,72 @@ Patch3: 0003-Use-non-shaded-HTTP-wagon.patch
|
|
|
|
Patch4: 0004-Remove-dependency-on-powermock.patch
|
|
|
|
Patch4: 0004-Remove-dependency-on-powermock.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: maven-local-openjdk8
|
|
|
|
BuildRequires: maven-local-openjdk8
|
|
|
|
BuildRequires: %{?module_prefix}mvn(com.google.inject:guice::no_aop:)
|
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: %{?module_prefix}mvn(commons-cli:commons-cli)
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: mvn(com.google.inject:guice::no_aop:)
|
|
|
|
|
|
|
|
BuildRequires: mvn(commons-cli:commons-cli)
|
|
|
|
BuildRequires: mvn(commons-jxpath:commons-jxpath)
|
|
|
|
BuildRequires: mvn(commons-jxpath:commons-jxpath)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(javax.annotation:jsr250-api)
|
|
|
|
BuildRequires: mvn(javax.annotation:jsr250-api)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(javax.inject:javax.inject)
|
|
|
|
BuildRequires: mvn(javax.inject:javax.inject)
|
|
|
|
BuildRequires: mvn(junit:junit)
|
|
|
|
BuildRequires: mvn(junit:junit)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.commons:commons-lang3)
|
|
|
|
BuildRequires: mvn(org.apache.commons:commons-lang3)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-parent:pom:)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-parent:pom:)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-failsafe-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-failsafe-plugin)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.maven.resolver:maven-resolver-api)
|
|
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-api)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.maven.resolver:maven-resolver-connector-basic)
|
|
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-connector-basic)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.maven.resolver:maven-resolver-impl)
|
|
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-impl)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.maven.resolver:maven-resolver-spi)
|
|
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-spi)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.maven.resolver:maven-resolver-transport-wagon)
|
|
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-transport-wagon)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.maven.resolver:maven-resolver-util)
|
|
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-util)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.maven.shared:maven-shared-utils)
|
|
|
|
BuildRequires: mvn(org.apache.maven.shared:maven-shared-utils)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.maven.wagon:wagon-file)
|
|
|
|
BuildRequires: mvn(org.apache.maven.wagon:wagon-file)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.maven.wagon:wagon-http)
|
|
|
|
BuildRequires: mvn(org.apache.maven.wagon:wagon-http)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.apache.maven.wagon:wagon-provider-api)
|
|
|
|
BuildRequires: mvn(org.apache.maven.wagon:wagon-provider-api)
|
|
|
|
BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin) >= 1.10.0
|
|
|
|
BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin)
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.codehaus.plexus:plexus-classworlds)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-classworlds)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.codehaus.plexus:plexus-component-annotations)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.codehaus.plexus:plexus-interpolation)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-interpolation)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.codehaus.plexus:plexus-utils) >= 3.2.0
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.eclipse.sisu:org.eclipse.sisu.inject)
|
|
|
|
BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.inject)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
|
|
|
|
BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
|
|
|
|
BuildRequires: mvn(org.eclipse.sisu:sisu-maven-plugin)
|
|
|
|
BuildRequires: mvn(org.eclipse.sisu:sisu-maven-plugin)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.fusesource.jansi:jansi)
|
|
|
|
BuildRequires: mvn(org.fusesource.jansi:jansi)
|
|
|
|
BuildRequires: mvn(org.mockito:mockito-core) >= 2
|
|
|
|
BuildRequires: mvn(org.mockito:mockito-core)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.slf4j:jcl-over-slf4j)
|
|
|
|
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.slf4j:slf4j-api)
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.slf4j:slf4j-simple)
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-simple)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.sonatype.plexus:plexus-cipher)
|
|
|
|
BuildRequires: mvn(org.sonatype.plexus:plexus-cipher)
|
|
|
|
BuildRequires: %{?module_prefix}mvn(org.sonatype.plexus:plexus-sec-dispatcher)
|
|
|
|
BuildRequires: mvn(org.sonatype.plexus:plexus-sec-dispatcher)
|
|
|
|
BuildRequires: mvn(org.xmlunit:xmlunit-core)
|
|
|
|
BuildRequires: mvn(org.xmlunit:xmlunit-core)
|
|
|
|
BuildRequires: mvn(org.xmlunit:xmlunit-matchers)
|
|
|
|
BuildRequires: mvn(org.xmlunit:xmlunit-matchers)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: slf4j-sources = %{bundled_slf4j_version}
|
|
|
|
# XXX
|
|
|
|
|
|
|
|
#BuildRequires: mvn(org.slf4j:slf4j-simple::sources:) = %{bundled_slf4j_version}
|
|
|
|
%if 0%{?module_prefix:1}
|
|
|
|
%if %{without bootstrap}
|
|
|
|
%package -n %{module_prefix}%{name}
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-simple::sources:)
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Requires: %{?module_prefix}%{name}-lib = %{epoch}:%{version}-%{release}
|
|
|
|
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
|
|
|
|
Requires: %{?module_prefix}%{name}-jdk-binding
|
|
|
|
Requires: %{name}-jdk-binding = %{epoch}:%{version}-%{release}
|
|
|
|
Suggests: %{?module_prefix}%{name}-openjdk11 = %{epoch}:%{version}-%{release}
|
|
|
|
Suggests: %{name}-openjdk17 = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
Requires: which
|
|
|
|
Requires: which
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
Requires(post): alternatives
|
|
|
|
Requires(post): (alternatives if fedora-release >= 30 else chkconfig)
|
|
|
|
Requires(postun): alternatives
|
|
|
|
Requires(postun): (alternatives if fedora-release >= 30 else chkconfig)
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
Requires(post): chkconfig
|
|
|
|
|
|
|
|
Requires(postun): chkconfig
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?module_prefix:1}
|
|
|
|
|
|
|
|
%description -n %{module_prefix}%{name}
|
|
|
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Maven is a software project management and comprehension tool. Based on the
|
|
|
|
Maven is a software project management and comprehension tool. Based on the
|
|
|
|
concept of a project object model (POM), Maven can manage a project's build,
|
|
|
|
concept of a project object model (POM), Maven can manage a project's build,
|
|
|
|
reporting and documentation from a central piece of information.
|
|
|
|
reporting and documentation from a central piece of information.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{?module_prefix}%{name}-lib
|
|
|
|
%package lib
|
|
|
|
Summary: Core part of Maven
|
|
|
|
Summary: Core part of Maven
|
|
|
|
# If XMvn is part of the same RPM transaction then it should be
|
|
|
|
# If XMvn is part of the same RPM transaction then it should be
|
|
|
|
# installed first to avoid triggering rhbz#1014355.
|
|
|
|
# installed first to avoid triggering rhbz#1014355.
|
|
|
@ -109,10 +104,10 @@ OrderWithRequires: xmvn-minimal
|
|
|
|
# maven-slf4j-provider.jar, together with Maven-specific additions.
|
|
|
|
# maven-slf4j-provider.jar, together with Maven-specific additions.
|
|
|
|
Provides: bundled(slf4j) = %{bundled_slf4j_version}
|
|
|
|
Provides: bundled(slf4j) = %{bundled_slf4j_version}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{?module_prefix}%{name}-lib
|
|
|
|
%description lib
|
|
|
|
Core part of Apache Maven that can be used as a library.
|
|
|
|
Core part of Apache Maven that can be used as a library.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{?module_prefix}%{name}-openjdk8
|
|
|
|
%package openjdk8
|
|
|
|
Summary: OpenJDK 8 binding for Maven
|
|
|
|
Summary: OpenJDK 8 binding for Maven
|
|
|
|
RemovePathPostfixes: -openjdk8
|
|
|
|
RemovePathPostfixes: -openjdk8
|
|
|
|
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
|
|
|
@ -121,10 +116,10 @@ Requires: java-1.8.0-openjdk-headless
|
|
|
|
Recommends: java-1.8.0-openjdk-devel
|
|
|
|
Recommends: java-1.8.0-openjdk-devel
|
|
|
|
Conflicts: maven-jdk-binding
|
|
|
|
Conflicts: maven-jdk-binding
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{?module_prefix}%{name}-openjdk8
|
|
|
|
%description openjdk8
|
|
|
|
Configures Maven to run with OpenJDK 8.
|
|
|
|
Configures Maven to run with OpenJDK 8.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{?module_prefix}%{name}-openjdk11
|
|
|
|
%package openjdk11
|
|
|
|
Summary: OpenJDK 11 binding for Maven
|
|
|
|
Summary: OpenJDK 11 binding for Maven
|
|
|
|
RemovePathPostfixes: -openjdk11
|
|
|
|
RemovePathPostfixes: -openjdk11
|
|
|
|
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
|
|
|
@ -133,10 +128,10 @@ Requires: java-11-openjdk-headless
|
|
|
|
Recommends: java-11-openjdk-devel
|
|
|
|
Recommends: java-11-openjdk-devel
|
|
|
|
Conflicts: maven-jdk-binding
|
|
|
|
Conflicts: maven-jdk-binding
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{?module_prefix}%{name}-openjdk11
|
|
|
|
%description openjdk11
|
|
|
|
Configures Maven to run with OpenJDK 11.
|
|
|
|
Configures Maven to run with OpenJDK 11.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{?module_prefix}%{name}-openjdk17
|
|
|
|
%package openjdk17
|
|
|
|
Summary: OpenJDK 17 binding for Maven
|
|
|
|
Summary: OpenJDK 17 binding for Maven
|
|
|
|
RemovePathPostfixes: -openjdk17
|
|
|
|
RemovePathPostfixes: -openjdk17
|
|
|
|
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
|
|
|
@ -145,24 +140,33 @@ Requires: java-17-openjdk-headless
|
|
|
|
Recommends: java-17-openjdk-devel
|
|
|
|
Recommends: java-17-openjdk-devel
|
|
|
|
Conflicts: maven-jdk-binding
|
|
|
|
Conflicts: maven-jdk-binding
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{?module_prefix}%{name}-openjdk17
|
|
|
|
%description openjdk17
|
|
|
|
Configures Maven to run with OpenJDK 17.
|
|
|
|
Configures Maven to run with OpenJDK 17.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package openjdk21
|
|
|
|
|
|
|
|
Summary: OpenJDK 21 binding for Maven
|
|
|
|
|
|
|
|
RemovePathPostfixes: -openjdk21
|
|
|
|
|
|
|
|
Provides: maven-jdk-binding = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
Requires: maven = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
Requires: java-21-openjdk-headless
|
|
|
|
|
|
|
|
Recommends: java-21-openjdk-devel
|
|
|
|
|
|
|
|
Conflicts: maven-jdk-binding
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description openjdk21
|
|
|
|
|
|
|
|
Configures Maven to run with OpenJDK 21.
|
|
|
|
|
|
|
|
|
|
|
|
%{?javadoc_package}
|
|
|
|
%{?javadoc_package}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n apache-%{name}-%{version}
|
|
|
|
%setup -q -n apache-%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
find -name '*.java' -exec sed -i 's/\r//' {} +
|
|
|
|
%patch2 -p1
|
|
|
|
find -name 'pom.xml' -exec sed -i 's/\r//' {} +
|
|
|
|
%patch3 -p1
|
|
|
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO Delete after maven-3.6.3
|
|
|
|
%patch -P 1 -p1
|
|
|
|
# Fix Tycho pomless build
|
|
|
|
%patch -P 2 -p1
|
|
|
|
# https://issues.apache.org/jira/browse/MNG-6765
|
|
|
|
%patch -P 3 -p1
|
|
|
|
# https://github.com/apache/maven/commit/07ab962c85950b034be3216996900920c0204c3a
|
|
|
|
%patch -P 4 -p1
|
|
|
|
sed -i 's/@Named/@Named\( "core-default" \)/' maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# not really used during build, but a precaution
|
|
|
|
# not really used during build, but a precaution
|
|
|
|
find -name '*.jar' -not -path '*/test/*' -delete
|
|
|
|
find -name '*.jar' -not -path '*/test/*' -delete
|
|
|
@ -222,10 +226,13 @@ install -d -m 755 %{buildroot}%{confdir}
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/bash-completion/completions/
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/bash-completion/completions/
|
|
|
|
|
|
|
|
|
|
|
|
cp -a $M2_HOME/{bin,lib,boot} %{buildroot}%{homedir}/
|
|
|
|
cp -a $M2_HOME/{bin,lib,boot} %{buildroot}%{homedir}/
|
|
|
|
%if !0%{?sclraw_phase}
|
|
|
|
%if %{without bootstrap}
|
|
|
|
xmvn-subst -R %{buildroot} -s %{buildroot}%{homedir}
|
|
|
|
xmvn-subst -s -R %{buildroot} -s %{buildroot}%{homedir}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# maven uses this hardcoded path in its launcher to locate jansi so we symlink it
|
|
|
|
|
|
|
|
ln -s %{_prefix}/lib/jansi/libjansi.so %{buildroot}%{homedir}/lib/jansi-native/
|
|
|
|
|
|
|
|
|
|
|
|
install -p -m 644 %{SOURCE2} %{buildroot}%{homedir}/bin/
|
|
|
|
install -p -m 644 %{SOURCE2} %{buildroot}%{homedir}/bin/
|
|
|
|
gzip -9 %{buildroot}%{homedir}/bin/mvn.1
|
|
|
|
gzip -9 %{buildroot}%{homedir}/bin/mvn.1
|
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/mvn%{?maven_version_suffix}
|
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/mvn%{?maven_version_suffix}
|
|
|
@ -255,19 +262,19 @@ install -d -m 755 %{buildroot}%{_javaconfdir}/
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-1.8.0-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk8
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-1.8.0-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk8
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-11-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk11
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-11-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk11
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-17-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk17
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-17-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk17
|
|
|
|
|
|
|
|
echo JAVA_HOME=%{_jvmlibdir}/jre-21-openjdk >%{buildroot}%{_javaconfdir}/maven.conf-openjdk21
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -n %{?module_prefix}%{name}
|
|
|
|
%post
|
|
|
|
update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alternatives_priority}0 \
|
|
|
|
update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alternatives_priority}0 \
|
|
|
|
--slave %{_bindir}/mvnDebug mvnDebug %{homedir}/bin/mvnDebug \
|
|
|
|
--slave %{_bindir}/mvnDebug mvnDebug %{homedir}/bin/mvnDebug \
|
|
|
|
--slave %{_mandir}/man1/mvn.1.gz mvn1 %{homedir}/bin/mvn.1.gz \
|
|
|
|
--slave %{_mandir}/man1/mvn.1.gz mvn1 %{homedir}/bin/mvn.1.gz \
|
|
|
|
--slave %{_mandir}/man1/mvnDebug.1.gz mvnDebug1 %{homedir}/bin/mvn.1.gz \
|
|
|
|
--slave %{_mandir}/man1/mvnDebug.1.gz mvnDebug1 %{homedir}/bin/mvn.1.gz \
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n %{?module_prefix}%{name}
|
|
|
|
%postun
|
|
|
|
[[ $1 -eq 0 ]] && update-alternatives --remove mvn %{homedir}/bin/mvn
|
|
|
|
if [[ $1 -eq 0 ]]; then update-alternatives --remove mvn %{homedir}/bin/mvn; fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{?module_prefix}%{name}-lib -f .mfiles
|
|
|
|
%files lib -f .mfiles
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
%{homedir}
|
|
|
|
%{homedir}
|
|
|
@ -278,7 +285,7 @@ update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alt
|
|
|
|
%config(noreplace) %{confdir}/settings.xml
|
|
|
|
%config(noreplace) %{confdir}/settings.xml
|
|
|
|
%config(noreplace) %{confdir}/logging/simplelogger.properties
|
|
|
|
%config(noreplace) %{confdir}/logging/simplelogger.properties
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{?module_prefix}%{name}
|
|
|
|
%files
|
|
|
|
%{homedir}/bin/mvn*
|
|
|
|
%{homedir}/bin/mvn*
|
|
|
|
%ghost %{_bindir}/mvn
|
|
|
|
%ghost %{_bindir}/mvn
|
|
|
|
%ghost %{_bindir}/mvnDebug
|
|
|
|
%ghost %{_bindir}/mvnDebug
|
|
|
@ -301,43 +308,130 @@ update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alt
|
|
|
|
%files openjdk17
|
|
|
|
%files openjdk17
|
|
|
|
%config %{_javaconfdir}/maven.conf-openjdk17
|
|
|
|
%config %{_javaconfdir}/maven.conf-openjdk17
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files openjdk21
|
|
|
|
|
|
|
|
%config %{_javaconfdir}/maven.conf-openjdk21
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Sun Dec 10 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1:3.6.2-9
|
|
|
|
* Sat Nov 23 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-19
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
- Switch to Fedora tests
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 02 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-9
|
|
|
|
* Thu Nov 21 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-18
|
|
|
|
- Turn hard dependency on java-devel into a weak dependencny
|
|
|
|
- Fix patch usage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 20 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-17
|
|
|
|
|
|
|
|
- Rebuild with regenerated Requires on Java
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 17 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-16
|
|
|
|
|
|
|
|
- Suggest maven-openjdk17
|
|
|
|
|
|
|
|
- Resolves: RHEL-62398
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 17 2024 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-16
|
|
|
|
|
|
|
|
- Add maven-openjdk21
|
|
|
|
|
|
|
|
- Resolves: RHEL-62407
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 31 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-15
|
|
|
|
- Add missing Requires on which
|
|
|
|
- Add missing Requires on which
|
|
|
|
- Resolves: rhbz#2129825, rhbz#2008121
|
|
|
|
- Resolves: rhbz#2165596
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 30 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-15
|
|
|
|
|
|
|
|
- Turn hard dependency on java-devel into a weak dependencny
|
|
|
|
|
|
|
|
- Resolves: rhbz#2165593
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 25 2023 Marian Koncek <mkoncek@redhat.com> - 1:3.6.2-8
|
|
|
|
* Thu Dec 01 2022 Marián Konček <mkoncek@redhat.com> - 1:3.6.3-15
|
|
|
|
- Do not override JAVA_HOME set by user
|
|
|
|
- Do not override JAVA_HOME set by user
|
|
|
|
- Resolves: rhbz#2164351
|
|
|
|
- Resolves: rhbz#2096431
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 24 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-14
|
|
|
|
|
|
|
|
- Add OpenJDK 17 binding
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 19 2021 Marian Koncek <mkoncek@redhat.com> - 1:3.6.3-13
|
|
|
|
|
|
|
|
- Create a symlink to jansi shared object
|
|
|
|
|
|
|
|
- Related: rhbz#1994935
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:3.6.3-12
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 16 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-7
|
|
|
|
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-11
|
|
|
|
- Add maven-openjdk17
|
|
|
|
- Rebuild to workaround DistroBaker issue
|
|
|
|
- Resolves: rhbz#1991521
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Dec 24 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-6
|
|
|
|
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-10
|
|
|
|
|
|
|
|
- Bootstrap Maven for CentOS Stream 9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-9
|
|
|
|
|
|
|
|
- Bootstrap build
|
|
|
|
|
|
|
|
- Non-bootstrap build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.6.3-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Dec 24 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.3-2
|
|
|
|
- Move launcher scripts from maven-lib to maven package
|
|
|
|
- Move launcher scripts from maven-lib to maven package
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 20 2020 Marian Koncek <mkoncek@redhat.com> - 1:3.6.2-5
|
|
|
|
* Mon Dec 14 2020 Jerry James <loganjerry@gmail.com> - 1:3.6.3-7
|
|
|
|
- Drop dependency on javapackages-tools
|
|
|
|
- Update jansi dep to jansi1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 30 2020 Christopher Tubbs <ctubbsii@fedoraproject.org> - 1:3.6.3-6
|
|
|
|
|
|
|
|
- Remove unneeded commons-logging from runtime class path (rhbz#1883751)
|
|
|
|
|
|
|
|
- Also remove redundant commons-codec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 25 2020 Fabio Valentini <decathorpe@gmail.com> - 1:3.6.3-5
|
|
|
|
|
|
|
|
- Adapt to cdi-api switch from jboss-interceptor to jakarta-interceptor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.6.3-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1:3.6.3-3
|
|
|
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 25 2020 Alexander Kurtakov <akurtako@redhat.com> 1:3.6.3-2
|
|
|
|
|
|
|
|
- Switch jsr250 to jakarta-anntations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 25 2020 Fabio Valentini <decathorpe@gmail.com> - 1:3.6.3-1
|
|
|
|
|
|
|
|
- Update to version 3.6.3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 14 2020 Fabio Valentini <decathorpe@gmail.com> - 1:3.6.2-1
|
|
|
|
|
|
|
|
- Update to version 3.6.2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 14 2020 Fabio Valentini <decathorpe@gmail.com> - 1:3.6.1-6
|
|
|
|
|
|
|
|
- Port to modello 1.11.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 27 2020 Marian Koncek <mkoncek@redhat.com> - 1:3.6.3-1
|
|
|
|
|
|
|
|
- Update to upstream version 3.6.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 05 2020 Dinesh Prasanth M K <dmoluguw@redhat.com> - 1:3.6.1-5
|
|
|
|
|
|
|
|
- Require the updated version of slf4j.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.6.1-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-4
|
|
|
|
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-4
|
|
|
|
- Build with OpenJDK 8
|
|
|
|
- Build with OpenJDK 8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 23 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-3
|
|
|
|
- Implement JDK bindings
|
|
|
|
- Implement JDK bindings
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Dec 11 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-3
|
|
|
|
* Thu Nov 21 2019 Fabio Valentini <decathorpe@gmail.com> - 1:3.6.1-3
|
|
|
|
- Require OpenJDK 11 for runtime
|
|
|
|
- Require the correct version of guava.
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-2
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.2-2
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 04 2019 Fabio Valentini <decathorpe@gmail.com> - 1:3.6.1-2
|
|
|
|
|
|
|
|
- Fix postun scriptlet.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 16 2019 Fabio Valentini <decathorpe@gmail.com> - 1:3.6.1-1
|
|
|
|
|
|
|
|
- Update to version 3.6.1.
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Marian Koncek <mkoncek@redhat.com> - 1:3.6.2-1
|
|
|
|
* Thu Oct 03 2019 Marian Koncek <mkoncek@redhat.com> - 1:3.6.2-1
|
|
|
|
- Update to upstream version 3.6.2
|
|
|
|
- Update to upstream version 3.6.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 29 2019 Fabio Valentini <decathorpe@gmail.com> - 1:3.5.4-12
|
|
|
|
|
|
|
|
- Remove dependency on logback-classic.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.5.4-11
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 03 2019 Marian Koncek <mkoncek@redhat.com> - 1:3.6.1-5
|
|
|
|
* Wed Jul 03 2019 Marian Koncek <mkoncek@redhat.com> - 1:3.6.1-5
|
|
|
|
- Port to modello version 1.11
|
|
|
|
- Port to modello version 1.11
|
|
|
|
|
|
|
|
|
|
|
@ -347,6 +441,9 @@ update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alt
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.1-3
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.1-3
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 17 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.5.4-10
|
|
|
|
|
|
|
|
- Update to Mockito 2
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 17 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.1-2
|
|
|
|
* Wed Apr 17 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.6.1-2
|
|
|
|
- Update to Mockito 2
|
|
|
|
- Update to Mockito 2
|
|
|
|
|
|
|
|
|
|
|
@ -356,6 +453,18 @@ update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alt
|
|
|
|
* Fri Apr 12 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.5.4-6
|
|
|
|
* Fri Apr 12 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.5.4-6
|
|
|
|
- Update SLF4J version to 1.7.26
|
|
|
|
- Update SLF4J version to 1.7.26
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 20 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.5.4-9
|
|
|
|
|
|
|
|
- Fix dependency on alternatives
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.5.4-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 22 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.5.4-7
|
|
|
|
|
|
|
|
- Revert unwanted dependency change
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.5.4-6
|
|
|
|
|
|
|
|
- Specify alternatives as dep, not chkconfig
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 30 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:3.5.4-2
|
|
|
|
* Mon Jul 30 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:3.5.4-2
|
|
|
|
- Require javapackages-tools for maven-lib.
|
|
|
|
- Require javapackages-tools for maven-lib.
|
|
|
|
|
|
|
|
|
|
|
|