From 1ad1b85b65c623331e1d93fb273b96e32f1cce5f Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 11 Sep 2025 03:15:47 +0000 Subject: automatic import of UNT --- UNT.spec | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) (limited to 'UNT.spec') diff --git a/UNT.spec b/UNT.spec index a2d5d2a..35aa555 100644 --- a/UNT.spec +++ b/UNT.spec @@ -15,10 +15,43 @@ and then compile native code to native binary. %prep %setup -q -n %{name} - +mkdir -p %{_builddir}/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.6/ +cp %{SOURCE1} %{_builddir}/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.jar +cat > %{_builddir}/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom << 'EOF' + + + 4.0.0 + org.apache.maven.plugins + maven-resources-plugin + 2.6 + maven-plugin + Apache Maven Resources Plugin + +EOF +cat > %{_builddir}/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/maven-metadata-local.xml << 'EOF' + + + org.apache.maven.plugins + maven-resources-plugin + + 2.6 + 2.6 + + 2.6 + + 20230101000000 + + +EOF %build -mvn install:install-file -Dfile=%{SOURCE1} -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.6 -Dpackage=jar -mvn package -DskipTests +# 使用自定义设置文件运行 Maven 构建 +cat > %{_builddir}/settings.xml << 'EOF' + + %{_builddir}/.m2/repository + +EOF +# mvn install:install-file -Dfile=%{SOURCE1} -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.6 -Dpackage=jar +mvn -s %{_builddir}/settings.xml package -DskipTests %install mkdir -p %{buildroot}/opt/udf-trans-opt/ -- cgit v1.2.3