!9 Replace maven-javadoc-plugin with xmvn-mojo to generate javadoc file

From: @wang--ge 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
This commit is contained in:
openeuler-ci-bot 2025-02-25 08:43:47 +00:00 committed by Gitee
commit 820d6317d5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%bcond_with bootstrap
Name: byte-buddy
Version: 1.12.0
Release: 1
Release: 2
Summary: Runtime code generation for the Java virtual machine
License: Apache-2.0
URL: http://bytebuddy.net/
@ -105,10 +105,15 @@ absolute_prefix=`head -n 1 absolute_prefix.log`
sed -i 's/absolute-prefix/'"$absolute_prefix"'/g' .xmvn-reactor
%build
mvn package -Dsourcecode.test.version=1.8 -Dmaven.test.failure.ignore=true -P'java8,!checks' verify org.apache.maven.plugins:maven-javadoc-plugin:aggregate
mvn package -Dsourcecode.test.version=1.8 -Dmaven.test.failure.ignore=true -P'java8,!checks' verify org.fedoraproject.xmvn:xmvn-mojo:javadoc
%install
%mvn_install
JAVADOC_DIR=%{buildroot}%{_javadocdir}/%{name}
if [ ! -d $JAVADOC_DIR ];then
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rf target/xmvn-apidocs/* %{buildroot}%{_javadocdir}/%{name}
fi
%files
%attr(0644,root,root) /usr/share/maven-metadata/byte-buddy.xml
@ -146,6 +151,9 @@ mvn package -Dsourcecode.test.version=1.8 -Dmaven.test.failure.ignore=true -P'ja
%license LICENSE NOTICE
%changelog
* Tue Feb 25 2025 Ge Wang <wang__ge@126.com> - 1.12.0-2
- Replace maven-javadoc-plugin with xmvn-mojo to generate javadoc file
* Thu Jun 16 2022 Ge Wang <wangge20@h-partners.com> - 1.12.0-1
- Upgrade to version 1.12.0