|
|
|
@ -1,49 +1,55 @@
|
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
# XMvn uses OSGi environment provided by Tycho, it shouldn't require
|
|
|
|
|
# any additional bundles.
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^osgi\\($
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: xmvn
|
|
|
|
|
Version: 4.3.0
|
|
|
|
|
Release: 11%{?dist}
|
|
|
|
|
Version: 4.0.0~20191028.da67577
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Local Extensions for Apache Maven
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://fedora-java.github.io/xmvn/
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{java_arches} noarch
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/fedora-java/xmvn/releases/download/%{version}/xmvn-%{version}.tar.xz
|
|
|
|
|
Source21: toolchains-openjdk21.xml
|
|
|
|
|
#Source0: https://github.com/fedora-java/xmvn/releases/download/%{version}/xmvn-%{version}.tar.xz
|
|
|
|
|
Source0: https://github.com/fedora-java/xmvn/archive/da67577.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0: 0001-Initial-PoC-of-XMvn-toolchain-manager.patch
|
|
|
|
|
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
BuildRequires: mvn(com.beust:jcommander)
|
|
|
|
|
BuildRequires: mvn(javax.inject:javax.inject)
|
|
|
|
|
BuildRequires: mvn(org.apache.commons:commons-compress)
|
|
|
|
|
BuildRequires: mvn(org.apache.ivy:ivy)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-api)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.resolver:maven-resolver-util)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.shared:maven-invoker)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-artifact)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-model)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-model-builder)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-classworlds)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-container-default)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
|
|
|
|
BuildRequires: mvn(org.easymock:easymock)
|
|
|
|
|
BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.inject)
|
|
|
|
|
BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
|
|
|
|
|
BuildRequires: mvn(org.eclipse.sisu:sisu-maven-plugin)
|
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
|
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter)
|
|
|
|
|
BuildRequires: mvn(org.ow2.asm:asm)
|
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-simple)
|
|
|
|
|
BuildRequires: mvn(org.xmlunit:xmlunit-assertj3)
|
|
|
|
|
# Maven home is used as template for XMvn home
|
|
|
|
|
BuildRequires: mvn(org.xmlunit:xmlunit-assertj)
|
|
|
|
|
|
|
|
|
|
# For /usr/bin/mvn, used to determine location of Maven home
|
|
|
|
|
BuildRequires: maven
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Requires: %{name}-minimal = %{version}-%{release}
|
|
|
|
|
Requires: maven
|
|
|
|
|
Requires: maven >= 3.6.1
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package provides extensions for Apache Maven that can be used to
|
|
|
|
@ -51,21 +57,19 @@ manage system artifact repository and use it to resolve Maven
|
|
|
|
|
artifacts in offline mode, as well as Maven plugins to help with
|
|
|
|
|
creating RPM packages containing Maven artifacts.
|
|
|
|
|
|
|
|
|
|
%package minimal
|
|
|
|
|
%package minimal
|
|
|
|
|
Summary: Dependency-reduced version of XMvn
|
|
|
|
|
Requires: maven-lib >= 3.4.0
|
|
|
|
|
Requires: %{name}-api = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-connector-aether = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-core = %{version}-%{release}
|
|
|
|
|
Requires: apache-commons-cli
|
|
|
|
|
Requires: apache-commons-codec
|
|
|
|
|
Requires: apache-commons-lang3
|
|
|
|
|
Requires: atinject
|
|
|
|
|
Requires: google-guice
|
|
|
|
|
Requires: guava
|
|
|
|
|
Requires: jakarta-annotations
|
|
|
|
|
Requires: jakarta-inject1.0
|
|
|
|
|
Requires: jansi
|
|
|
|
|
Requires: jcl-over-slf4j
|
|
|
|
|
Requires: maven-jdk-binding
|
|
|
|
|
Requires: maven-lib
|
|
|
|
|
Requires: maven-resolver
|
|
|
|
|
Requires: maven-shared-utils
|
|
|
|
|
Requires: maven-wagon
|
|
|
|
|
Requires: plexus-cipher
|
|
|
|
|
Requires: plexus-classworlds
|
|
|
|
@ -75,139 +79,199 @@ Requires: plexus-sec-dispatcher
|
|
|
|
|
Requires: plexus-utils
|
|
|
|
|
Requires: sisu
|
|
|
|
|
Requires: slf4j
|
|
|
|
|
Suggests: maven-openjdk21
|
|
|
|
|
|
|
|
|
|
%description minimal
|
|
|
|
|
%description minimal
|
|
|
|
|
This package provides minimal version of XMvn, incapable of using
|
|
|
|
|
remote repositories.
|
|
|
|
|
|
|
|
|
|
%package core
|
|
|
|
|
Summary: XMvn library
|
|
|
|
|
%package parent-pom
|
|
|
|
|
Summary: XMvn Parent POM
|
|
|
|
|
|
|
|
|
|
%description core
|
|
|
|
|
This package provides XMvn API and XMvn Core modules, which implement
|
|
|
|
|
the essential functionality of XMvn such as resolution of artifacts
|
|
|
|
|
from system repository.
|
|
|
|
|
%description parent-pom
|
|
|
|
|
This package provides XMvn parent POM.
|
|
|
|
|
|
|
|
|
|
%package mojo
|
|
|
|
|
%package api
|
|
|
|
|
Summary: XMvn API
|
|
|
|
|
|
|
|
|
|
%description api
|
|
|
|
|
This package provides XMvn API module which contains public interface
|
|
|
|
|
for functionality implemented by XMvn Core.
|
|
|
|
|
|
|
|
|
|
%package core
|
|
|
|
|
Summary: XMvn Core
|
|
|
|
|
|
|
|
|
|
%description core
|
|
|
|
|
This package provides XMvn Core module, which implements the essential
|
|
|
|
|
functionality of XMvn such as resolution of artifacts from system
|
|
|
|
|
repository.
|
|
|
|
|
|
|
|
|
|
%package connector-aether
|
|
|
|
|
Summary: XMvn Connector for Maven Resolver
|
|
|
|
|
|
|
|
|
|
%description connector-aether
|
|
|
|
|
This package provides XMvn Connector for Maven Resolver, which
|
|
|
|
|
provides integration of Maven Resolver with XMvn. It provides an
|
|
|
|
|
adapter which allows XMvn resolver to be used as Maven workspace
|
|
|
|
|
reader.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package connector-ivy
|
|
|
|
|
Summary: XMvn Connector for Apache Ivy
|
|
|
|
|
|
|
|
|
|
%description connector-ivy
|
|
|
|
|
This package provides XMvn Connector for Apache Ivy, which provides
|
|
|
|
|
integration of Apache Ivy with XMvn. It provides an adapter which
|
|
|
|
|
allows XMvn resolver to be used as Ivy resolver.
|
|
|
|
|
|
|
|
|
|
%package mojo
|
|
|
|
|
Summary: XMvn MOJO
|
|
|
|
|
|
|
|
|
|
%description mojo
|
|
|
|
|
%description mojo
|
|
|
|
|
This package provides XMvn MOJO, which is a Maven plugin that consists
|
|
|
|
|
of several MOJOs. Some goals of these MOJOs are intended to be
|
|
|
|
|
attached to default Maven lifecycle when building packages, others can
|
|
|
|
|
be called directly from Maven command line.
|
|
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
|
Summary: XMvn tools
|
|
|
|
|
%package tools-pom
|
|
|
|
|
Summary: XMvn Tools POM
|
|
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
|
This package provides various XMvn tools:
|
|
|
|
|
* XMvn Install, which is a command-line interface to XMvn installer.
|
|
|
|
|
The installer reads reactor metadata and performs artifact
|
|
|
|
|
installation according to specified configuration.
|
|
|
|
|
* XMvn Resolver, which is a very simple commald-line tool to resolve
|
|
|
|
|
Maven artifacts from system repositories. Basically it's just an
|
|
|
|
|
interface to artifact resolution mechanism implemented by XMvn Core.
|
|
|
|
|
The primary intended use case of XMvn Resolver is debugging local
|
|
|
|
|
artifact repositories.
|
|
|
|
|
* XMvn Subst, which is a tool that can substitute Maven artifact files
|
|
|
|
|
with symbolic links to corresponding files in artifact repository.
|
|
|
|
|
%description tools-pom
|
|
|
|
|
This package provides XMvn Tools parent POM.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
%package resolve
|
|
|
|
|
Summary: XMvn Resolver
|
|
|
|
|
# Explicit javapackages-tools requires since scripts use
|
|
|
|
|
# /usr/share/java-utils/java-functions
|
|
|
|
|
Requires: javapackages-tools
|
|
|
|
|
|
|
|
|
|
%description resolve
|
|
|
|
|
This package provides XMvn Resolver, which is a very simple
|
|
|
|
|
commald-line tool to resolve Maven artifacts from system repositories.
|
|
|
|
|
Basically it's just an interface to artifact resolution mechanism
|
|
|
|
|
implemented by XMvn Core. The primary intended use case of XMvn
|
|
|
|
|
Resolver is debugging local artifact repositories.
|
|
|
|
|
|
|
|
|
|
%package bisect
|
|
|
|
|
Summary: XMvn Bisect
|
|
|
|
|
# Explicit javapackages-tools requires since scripts use
|
|
|
|
|
# /usr/share/java-utils/java-functions
|
|
|
|
|
Requires: javapackages-tools
|
|
|
|
|
|
|
|
|
|
%description bisect
|
|
|
|
|
This package provides XMvn Bisect, which is a debugging tool that can
|
|
|
|
|
diagnose build failures by using bisection method.
|
|
|
|
|
|
|
|
|
|
%package subst
|
|
|
|
|
Summary: XMvn Subst
|
|
|
|
|
# Explicit javapackages-tools requires since scripts use
|
|
|
|
|
# /usr/share/java-utils/java-functions
|
|
|
|
|
Requires: javapackages-tools
|
|
|
|
|
|
|
|
|
|
%description subst
|
|
|
|
|
This package provides XMvn Subst, which is a tool that can substitute
|
|
|
|
|
Maven artifact files with symbolic links to corresponding files in
|
|
|
|
|
artifact repository.
|
|
|
|
|
|
|
|
|
|
%package install
|
|
|
|
|
Summary: XMvn Install
|
|
|
|
|
Requires: apache-commons-compress
|
|
|
|
|
# Explicit javapackages-tools requires since scripts use
|
|
|
|
|
# /usr/share/java-utils/java-functions
|
|
|
|
|
Requires: javapackages-tools
|
|
|
|
|
|
|
|
|
|
%description install
|
|
|
|
|
This package provides XMvn Install, which is a command-line interface
|
|
|
|
|
to XMvn installer. The installer reads reactor metadata and performs
|
|
|
|
|
artifact installation according to specified configuration.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%if !0%{?specpartsdir:1}
|
|
|
|
|
|
|
|
|
|
%package toolchain-openjdk21
|
|
|
|
|
Summary: xmvn-minimal binding for openjdk21
|
|
|
|
|
Requires: java-21-openjdk-devel
|
|
|
|
|
Requires: javapackages-tools
|
|
|
|
|
Requires(meta): xmvn-minimal
|
|
|
|
|
|
|
|
|
|
%description toolchain-openjdk21
|
|
|
|
|
Configures xmvn-minimal to work with openjdk21.
|
|
|
|
|
|
|
|
|
|
%files toolchain-openjdk21
|
|
|
|
|
%ghost %{_jpbindingdir}/xmvn-toolchains.xml
|
|
|
|
|
%dir %{_jpbindingdir}/xmvn-toolchains.xml.d
|
|
|
|
|
%{_jpbindingdir}/xmvn-toolchains.xml.d/openjdk21
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
%description javadoc
|
|
|
|
|
This package provides %{summary}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
%setup -q -n xmvn-da67577d9252f0b1fffed546c7c23d97a97dec4b
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
%mvn_package ::tar.gz: __noinstall
|
|
|
|
|
%mvn_package ":{xmvn,xmvn-connector}" xmvn
|
|
|
|
|
%mvn_package ":xmvn-{api,core,parent}" core
|
|
|
|
|
%mvn_package ":xmvn-mojo" mojo
|
|
|
|
|
%mvn_package ":xmvn-{install,resolve,subst,tools}" tools
|
|
|
|
|
# Bisect IT has no chances of working in local, offline mode, without
|
|
|
|
|
# network access - it needs to access remote repositories.
|
|
|
|
|
find -name BisectIntegrationTest.java -delete
|
|
|
|
|
|
|
|
|
|
# Resolver IT won't work either - it tries to execute JAR file, which
|
|
|
|
|
# relies on Class-Path in manifest, which is forbidden in Fedora...
|
|
|
|
|
find -name ResolverIntegrationTest.java -delete
|
|
|
|
|
|
|
|
|
|
%pom_remove_plugin -r :maven-site-plugin
|
|
|
|
|
|
|
|
|
|
%mvn_package ":xmvn{,-it}" __noinstall
|
|
|
|
|
|
|
|
|
|
%pom_disable_module xmvn-connector-gradle
|
|
|
|
|
|
|
|
|
|
# Upstream code quality checks, not relevant when building RPMs
|
|
|
|
|
%pom_remove_plugin -r :apache-rat-plugin
|
|
|
|
|
%pom_remove_plugin -r :maven-checkstyle-plugin
|
|
|
|
|
%pom_remove_plugin -r :jacoco-maven-plugin
|
|
|
|
|
# FIXME pom macros don't seem to support submodules in profile
|
|
|
|
|
%pom_remove_plugin :jacoco-maven-plugin xmvn-it
|
|
|
|
|
|
|
|
|
|
# remove dependency plugin maven-binaries execution
|
|
|
|
|
# we provide apache-maven by symlink
|
|
|
|
|
%pom_xpath_remove "pom:executions/pom:execution[pom:id[text()='maven-binaries']]"
|
|
|
|
|
|
|
|
|
|
# Don't put Class-Path attributes in manifests
|
|
|
|
|
%pom_remove_plugin :maven-jar-plugin xmvn-tools
|
|
|
|
|
|
|
|
|
|
# Copy Maven home packaged as RPM instead of unpacking Maven binary
|
|
|
|
|
# tarball with maven-dependency-plugin
|
|
|
|
|
%pom_remove_plugin :maven-dependency-plugin
|
|
|
|
|
maven_home=$(realpath $(dirname $(realpath $(%{?jpb_env} type -p mvn)))/..)
|
|
|
|
|
# get mavenVersion that is expected
|
|
|
|
|
maven_home=$(realpath $(dirname $(realpath $(which mvn)))/..)
|
|
|
|
|
mver=$(sed -n '/<mavenVersion>/{s/.*>\(.*\)<.*/\1/;p}' \
|
|
|
|
|
xmvn-parent/pom.xml)
|
|
|
|
|
mkdir -p target/dependency/
|
|
|
|
|
cp -a "${maven_home}" target/dependency/apache-maven-$mver
|
|
|
|
|
|
|
|
|
|
# Workaround easymock incompatibility with Java 17 that should be fixed
|
|
|
|
|
# in easymock 4.4: https://github.com/easymock/easymock/issues/274
|
|
|
|
|
%pom_add_plugin :maven-surefire-plugin xmvn-connector "<configuration>
|
|
|
|
|
<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED</argLine></configuration>"
|
|
|
|
|
%pom_add_plugin :maven-surefire-plugin xmvn-tools/xmvn-install "<configuration>
|
|
|
|
|
<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED</argLine></configuration>"
|
|
|
|
|
cp -a ${maven_home} target/dependency/apache-maven-$mver
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%mvn_build -j -- -P\\!quality
|
|
|
|
|
%mvn_build -s -j
|
|
|
|
|
|
|
|
|
|
version=4.*
|
|
|
|
|
tar --delay-directory-restore -xvf target/xmvn-*-bin.tar.gz
|
|
|
|
|
chmod -R +rwX %{name}-${version}
|
|
|
|
|
version=4.0.0-SNAPSHOT
|
|
|
|
|
tar --delay-directory-restore -xvf target/*tar.bz2
|
|
|
|
|
chmod -R +rwX %{name}-${version}*
|
|
|
|
|
# These are installed as doc
|
|
|
|
|
rm -f %{name}-${version}/{AUTHORS-XMVN,README-XMVN.md,LICENSE,NOTICE,NOTICE-XMVN}
|
|
|
|
|
rm -f %{name}-${version}*/{AUTHORS-XMVN,README-XMVN.md,LICENSE,NOTICE,NOTICE-XMVN}
|
|
|
|
|
# Not needed - we use JPackage launcher scripts
|
|
|
|
|
rm -Rf %{name}-${version}/lib/{installer,resolver,subst}/
|
|
|
|
|
rm -Rf %{name}-${version}*/lib/{installer,resolver,subst,bisect}/
|
|
|
|
|
# Irrelevant Maven launcher scripts
|
|
|
|
|
rm -f %{name}-${version}/bin/*
|
|
|
|
|
rm -f %{name}-${version}*/bin/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
|
|
version=4.*
|
|
|
|
|
maven_home=$(realpath $(dirname $(realpath $(%{?jpb_env} type -p mvn)))/..)
|
|
|
|
|
version=4.0.0-SNAPSHOT
|
|
|
|
|
maven_home=$(realpath $(dirname $(realpath $(which mvn)))/..)
|
|
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
|
|
|
|
cp -r%{?with_bootstrap:L} %{name}-${version}/* %{buildroot}%{_datadir}/%{name}/
|
|
|
|
|
cp -r %{name}-${version}*/* %{buildroot}%{_datadir}/%{name}/
|
|
|
|
|
|
|
|
|
|
for cmd in mvn mvnDebug; do
|
|
|
|
|
cat <<EOF >%{buildroot}%{_datadir}/%{name}/bin/$cmd
|
|
|
|
|
#!/bin/sh -e
|
|
|
|
|
export _FEDORA_MAVEN_HOME="%{_datadir}/%{name}"
|
|
|
|
|
exec %{_datadir}/maven%{?maven_version_suffix}/bin/$cmd "\${@}"
|
|
|
|
|
exec ${maven_home}/bin/$cmd "\${@}"
|
|
|
|
|
EOF
|
|
|
|
|
chmod 755 %{buildroot}%{_datadir}/%{name}/bin/$cmd
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# helper scripts
|
|
|
|
|
%jpackage_script org.fedoraproject.xmvn.tools.install.cli.InstallerCli "" "" xmvn/xmvn-install:xmvn/xmvn-api:xmvn/xmvn-core:beust-jcommander:slf4j/api:slf4j/simple:objectweb-asm/asm:commons-compress:commons-lang3:commons-io xmvn-install
|
|
|
|
|
%jpackage_script org.fedoraproject.xmvn.tools.bisect.BisectCli "" "-Dxmvn.home=%{_datadir}/%{name}" xmvn/xmvn-bisect:beust-jcommander:maven-invoker:plexus/utils xmvn-bisect
|
|
|
|
|
%jpackage_script org.fedoraproject.xmvn.tools.install.cli.InstallerCli "" "" xmvn/xmvn-install:xmvn/xmvn-api:xmvn/xmvn-core:beust-jcommander:slf4j/api:slf4j/simple:objectweb-asm/asm:commons-compress xmvn-install
|
|
|
|
|
%jpackage_script org.fedoraproject.xmvn.tools.resolve.ResolverCli "" "" xmvn/xmvn-resolve:xmvn/xmvn-api:xmvn/xmvn-core:beust-jcommander xmvn-resolve
|
|
|
|
|
%jpackage_script org.fedoraproject.xmvn.tools.subst.SubstCli "" "" xmvn/xmvn-subst:xmvn/xmvn-api:xmvn/xmvn-core:beust-jcommander xmvn-subst
|
|
|
|
|
|
|
|
|
|
# copy over maven boot and lib directories
|
|
|
|
|
cp -r%{?with_bootstrap:L} ${maven_home}/boot/* %{buildroot}%{_datadir}/%{name}/boot/
|
|
|
|
|
cp -r%{?with_bootstrap:L} ${maven_home}/lib/* %{buildroot}%{_datadir}/%{name}/lib/
|
|
|
|
|
# copy over maven lib directory
|
|
|
|
|
cp -r ${maven_home}/lib/* %{buildroot}%{_datadir}/%{name}/lib/
|
|
|
|
|
|
|
|
|
|
# possibly recreate symlinks that can be automated with xmvn-subst
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%if !0%{?sclraw_phase}
|
|
|
|
|
%{name}-subst -s -R %{buildroot} %{buildroot}%{_datadir}/%{name}/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -222,21 +286,10 @@ install -d -m 755 %{buildroot}%{_datadir}/%{name}/conf/
|
|
|
|
|
cp -P ${maven_home}/conf/settings.xml %{buildroot}%{_datadir}/%{name}/conf/
|
|
|
|
|
cp -P ${maven_home}/bin/m2.conf %{buildroot}%{_datadir}/%{name}/bin/
|
|
|
|
|
|
|
|
|
|
# Make sure javapackages config is not bundled
|
|
|
|
|
rm -rf %{buildroot}%{_datadir}/%{name}/{configuration.xml,config.d/,conf/toolchains.xml,maven-metadata/}
|
|
|
|
|
|
|
|
|
|
# Toolchains
|
|
|
|
|
%if !0%{?specpartsdir:1}
|
|
|
|
|
export RPM_SPECPARTS_DIR=/tmp
|
|
|
|
|
%endif
|
|
|
|
|
ln -sf %{_jpbindingdir}/xmvn-toolchains.xml %{buildroot}%{_datadir}/%{name}/conf/toolchains.xml
|
|
|
|
|
install -p -m 644 %{SOURCE21} %{buildroot}%{_datadir}/%{name}/conf/toolchains-openjdk21.xml
|
|
|
|
|
%jp_binding --verbose --base-pkg xmvn-minimal --binding-pkg xmvn-toolchain-openjdk21 --variant openjdk21 --ghost xmvn-toolchains.xml --target %{_datadir}/%{name}/conf/toolchains-openjdk21.xml --requires java-21-openjdk-devel
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/mvn-local
|
|
|
|
|
|
|
|
|
|
%files minimal -f .mfiles-xmvn
|
|
|
|
|
%files minimal
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
|
%dir %{_datadir}/%{name}/bin
|
|
|
|
@ -250,166 +303,40 @@ install -p -m 644 %{SOURCE21} %{buildroot}%{_datadir}/%{name}/conf/toolchains-op
|
|
|
|
|
%{_datadir}/%{name}/boot
|
|
|
|
|
%{_datadir}/%{name}/conf
|
|
|
|
|
|
|
|
|
|
%files core -f .mfiles-core
|
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
%files parent-pom -f .mfiles-xmvn-parent
|
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
|
|
|
|
|
%files core -f .mfiles-xmvn-core
|
|
|
|
|
|
|
|
|
|
%files api -f .mfiles-xmvn-api
|
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
%doc AUTHORS README.md
|
|
|
|
|
|
|
|
|
|
%files mojo -f .mfiles-mojo
|
|
|
|
|
%files connector-aether -f .mfiles-xmvn-connector-aether
|
|
|
|
|
|
|
|
|
|
%files tools -f .mfiles-tools
|
|
|
|
|
%{_bindir}/%{name}-install
|
|
|
|
|
|
|
|
|
|
%files connector-ivy -f .mfiles-xmvn-connector-ivy
|
|
|
|
|
|
|
|
|
|
%files mojo -f .mfiles-xmvn-mojo
|
|
|
|
|
|
|
|
|
|
%files tools-pom -f .mfiles-xmvn-tools
|
|
|
|
|
|
|
|
|
|
%files resolve -f .mfiles-xmvn-resolve
|
|
|
|
|
%{_bindir}/%{name}-resolve
|
|
|
|
|
|
|
|
|
|
%files bisect -f .mfiles-xmvn-bisect
|
|
|
|
|
%{_bindir}/%{name}-bisect
|
|
|
|
|
|
|
|
|
|
%files subst -f .mfiles-xmvn-subst
|
|
|
|
|
%{_bindir}/%{name}-subst
|
|
|
|
|
|
|
|
|
|
%files install -f .mfiles-xmvn-install
|
|
|
|
|
%{_bindir}/%{name}-install
|
|
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Dec 18 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.0-6
|
|
|
|
|
- Update xmvn-minimal Requires
|
|
|
|
|
|
|
|
|
|
* Wed Dec 11 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.0-5
|
|
|
|
|
- Specify smoke test requirements
|
|
|
|
|
|
|
|
|
|
* Fri Nov 29 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.0-4
|
|
|
|
|
- Drop explicit requires on javapackages-tools
|
|
|
|
|
|
|
|
|
|
* Fri Nov 22 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.0-3
|
|
|
|
|
- Add bindings for XMvn toolchains
|
|
|
|
|
|
|
|
|
|
* Mon Oct 07 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.0-2
|
|
|
|
|
- Remove dependency on which
|
|
|
|
|
|
|
|
|
|
* Fri Sep 27 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.0-1
|
|
|
|
|
- Update to upstream version 4.3.0
|
|
|
|
|
- Resolves: rhbz#2315092
|
|
|
|
|
|
|
|
|
|
* Fri Aug 23 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.0-21
|
|
|
|
|
- Port to commons-compress 1.27
|
|
|
|
|
|
|
|
|
|
* Tue Aug 20 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.0-11
|
|
|
|
|
- Rebuild for Sisu 0.9.0.M3
|
|
|
|
|
|
|
|
|
|
* Tue Jul 30 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.0-10
|
|
|
|
|
- Remove workaround for rpm bug 447156
|
|
|
|
|
|
|
|
|
|
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 16 2024 Marian Koncek <mkoncek@redhat.com> - 4.2.0-8
|
|
|
|
|
- Suggest maven-openjdk21
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.0-7
|
|
|
|
|
- Drop versioned requires on Maven
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.0-5
|
|
|
|
|
- Convert License tag to SPDX format
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Mar 31 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.0-3
|
|
|
|
|
- Rebuild with no changes
|
|
|
|
|
|
|
|
|
|
* Fri Mar 31 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.0-2
|
|
|
|
|
- Rebuild for Maven 3.9.1
|
|
|
|
|
|
|
|
|
|
* Mon Mar 20 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.0-1
|
|
|
|
|
- Update to upstream version 4.2.0
|
|
|
|
|
|
|
|
|
|
* Fri Mar 17 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1.0-1
|
|
|
|
|
- Update to upstream version 4.1.0
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Sep 05 2022 Marian Koncek <mkoncek@redhat.com> - 4.0.0-11
|
|
|
|
|
- Mimic maven-javadoc-plugin for -source and --release
|
|
|
|
|
- Add simple implementation of toolchains
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 22 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0-9
|
|
|
|
|
- Port to Modello 2.0.0
|
|
|
|
|
|
|
|
|
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 4.0.0-8
|
|
|
|
|
- Rebuilt for java-17-openjdk as system jdk
|
|
|
|
|
|
|
|
|
|
* Thu Jan 27 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0-7
|
|
|
|
|
- Suggest OpenJDK 17 as default Maven binding
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 14 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0-5
|
|
|
|
|
- Rebuild for Maven 3.8.4
|
|
|
|
|
|
|
|
|
|
* Mon Nov 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0-4
|
|
|
|
|
- For now keep suggesting OpenJDK 11 Maven binding
|
|
|
|
|
|
|
|
|
|
* Wed Nov 03 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0-3
|
|
|
|
|
- Workaround build issue with OpenJDK 17
|
|
|
|
|
- Suggest OpenJDK 17 as default Maven binding
|
|
|
|
|
|
|
|
|
|
* Sun Sep 26 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0-2
|
|
|
|
|
- Rebuild to update libjansi.so symlink
|
|
|
|
|
|
|
|
|
|
* Mon Jul 26 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0-1
|
|
|
|
|
- Update to upstream version 4.0.0
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0~20210709.3b84c99-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0~20210709.3b84c99-11
|
|
|
|
|
- Change logic for JPMS detection by Javadoc MOJO
|
|
|
|
|
|
|
|
|
|
* Thu Jul 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0~20210708.43c7e67-10
|
|
|
|
|
- Fix Javadoc generation for non-JPMS project with JDK 11
|
|
|
|
|
|
|
|
|
|
* Thu Jul 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0~20210708.54026c1-9
|
|
|
|
|
- Update to latest upstream snapshot
|
|
|
|
|
|
|
|
|
|
* Tue Jun 01 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0~20191028.da67577-8
|
|
|
|
|
- Workaround for rpm bug 447156 - rpm fails to change directory to symlink
|
|
|
|
|
|
|
|
|
|
* Wed May 26 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0~20191028.da67577-7
|
|
|
|
|
- Conditionally enable Ivy connector
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0~20191028.da67577-6
|
|
|
|
|
- Bootstrap build
|
|
|
|
|
- Non-bootstrap build
|
|
|
|
|
|
|
|
|
|
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3.1.0-6
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
* Thu Jul 09 2020 Mat Booth <mat.booth@redhat.com> - 3.1.0-5
|
|
|
|
|
- Honour source parameter in javadoc mojo
|
|
|
|
|
|
|
|
|
|
* Fri Jun 26 2020 Alexander Kurtakov <akurtako@redhat.com> 3.1.0-4
|
|
|
|
|
- Rebuild to pick jsr250-api switch to jakarta-annotations.
|
|
|
|
|
|
|
|
|
|
* Thu Jun 25 2020 Alexander Kurtakov <akurtako@redhat.com> 3.1.0-3
|
|
|
|
|
- Ignore test failures as they fail when built Java 11.
|
|
|
|
|
|
|
|
|
|
* Mon Apr 20 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0~20191028.da67577-5
|
|
|
|
|
- Disable Ivy connector
|
|
|
|
|
|
|
|
|
|
* Wed Feb 19 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0~20191028.da67577-4
|
|
|
|
|
- Require maven-jdk-binding
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 23 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0~20191028.da67577-3
|
|
|
|
|
- Implement toolchain manager
|
|
|
|
|
|
|
|
|
@ -419,24 +346,6 @@ install -p -m 644 %{SOURCE21} %{buildroot}%{_datadir}/%{name}/conf/toolchains-op
|
|
|
|
|
* Mon Oct 28 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.0~20191028.da67577-1
|
|
|
|
|
- Update to upstream snapshot of 4.0.0
|
|
|
|
|
|
|
|
|
|
* Thu Oct 17 2019 Fabio Valentini <decathorpe@gmail.com> - 3.1.0-1
|
|
|
|
|
- Update to version 3.1.0.
|
|
|
|
|
|
|
|
|
|
* Thu Oct 17 2019 Fabio Valentini <decathorpe@gmail.com> - 3.0.0-28
|
|
|
|
|
- Bump requirement to maven 3.6.1 and non-compat guava.
|
|
|
|
|
|
|
|
|
|
* Mon Sep 02 2019 Marian Koncek <mkoncek@redhat.com> - 3.0.0-27
|
|
|
|
|
- Port to maven-invoker 3.0.1
|
|
|
|
|
|
|
|
|
|
* Thu Aug 22 2019 Fabio Valentini <decathorpe@gmail.com> - 3.0.0-26
|
|
|
|
|
- Port to xmlunit2.
|
|
|
|
|
|
|
|
|
|
* Sun Aug 11 2019 Fabio Valentini <decathorpe@gmail.com> - 3.0.0-25
|
|
|
|
|
- Disable gradle support by default.
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-24
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 28 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.0-2
|
|
|
|
|
- Prefer namespaced metadata when duplicates are found
|
|
|
|
|
|
|
|
|
@ -455,12 +364,6 @@ install -p -m 644 %{SOURCE21} %{buildroot}%{_datadir}/%{name}/conf/toolchains-op
|
|
|
|
|
* Sat Apr 13 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.0-22
|
|
|
|
|
- Switch to Maven 3.6.1 and non-compat Guava
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-23
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Oct 30 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.0-22
|
|
|
|
|
- Port to Gradle 4.4.1
|
|
|
|
|
|
|
|
|
|
* Wed Aug 01 2018 Severin Gehwolf <sgehwolf@redhat.com> - 3.0.0-21
|
|
|
|
|
- Add requirement on javapackages-tools since scripts use
|
|
|
|
|
java-functions.
|