!9 [sync] PR-8: Upgrade to version 1.4.1

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2022-11-09 09:28:35 +00:00 committed by Gitee
commit 4f2a5720de
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 18 additions and 20 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,8 @@
Name: mybatis-generator
Version: 1.3.2
Version: 1.4.1
Release: 1
Summary: A code generator for MyBatis and iBATIS
License: ASL 2.0
License: Apache-2.0
URL: http://www.mybatis.org/
Source0: https://github.com/mybatis/generator/archive/%{name}-%{version}.tar.gz
BuildRequires: mvn(log4j:log4j:1.2.17) mvn(org.apache.ant:ant)
@ -15,6 +15,10 @@ BuildRequires: mvn(org.apache.commons:commons-ognl)
BuildRequires: maven-local maven-enforcer-plugin maven-plugin-bundle
BuildRequires: maven-plugin-plugin maven-surefire-report-plugin
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.logging.log4j:log4j-api)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.reflections:reflections)
BuildRequires: mvn(org.hsqldb:hsqldb)
BuildArch: noarch
%description
@ -47,32 +51,23 @@ This package contains javadoc for %{name}.
%prep
%setup -q -n generator-%{name}-%{version}
%pom_remove_dep :cobertura
%pom_remove_dep :cobertura mybatis-generator-systests-mybatis3
%pom_xpath_remove "pom:dependency[pom:artifactId= '%{name}-core']/pom:classifier" %{name}-systests-mybatis3
mv core/* ./
rm -rf eclipse
rm -rf core
sed -i 's/<scope>test/<scope>compile/g' %{name}-systests-mybatis3/pom.xml
%pom_remove_dep :cobertura mybatis-generator-systests-ibatis2-java2
%pom_xpath_remove "pom:dependency[pom:artifactId= '%{name}-core']/pom:classifier" %{name}-systests-ibatis2-java2
%pom_remove_dep :cobertura mybatis-generator-systests-ibatis2-java5
%pom_xpath_remove "pom:dependency[pom:artifactId= '%{name}-core']/pom:classifier" %{name}-systests-ibatis2-java5
%pom_disable_module %{name}-systests-ibatis2-java2
%pom_disable_module %{name}-systests-ibatis2-java5
%pom_remove_dep :ibatis-sqlmap
%pom_disable_module %{name}-systests-mybatis3-java8
%pom_disable_module %{name}-systests-kotlin
%pom_disable_module %{name}-systests-domtests
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-gcu-plugin %{name}-core
%pom_remove_plugin :jdepend-maven-plugin %{name}-core
%pom_remove_plugin :maven-install-plugin %{name}-core
%pom_remove_plugin :maven-assembly-plugin %{name}-core
%pom_remove_plugin :maven-javadoc-plugin %{name}-core
%pom_remove_plugin :maven-release-plugin %{name}-core
%pom_remove_plugin :maven-site-plugin %{name}-core
%pom_remove_plugin :maven-source-plugin %{name}-core
%pom_remove_plugin :cobertura-maven-plugin %{name}-core
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" %{name}-core
%pom_add_dep org.apache.commons:commons-ognl::test mybatis-generator-systests-mybatis3
%pom_remove_plugin :kotlin-maven-plugin %{name}-core
%pom_remove_plugin :kotlin-maven-plugin
sed -i 's/\r//' LICENSE NOTICE %{name}-core/doc/*
@ -103,5 +98,8 @@ sed -i 's/\r//' LICENSE NOTICE %{name}-core/doc/*
%license LICENSE NOTICE
%changelog
* Thu Jun 30 2022 Ge Wang <wangge20@h-partners.com> - 1.4.1-1
- Upgrade to version 1.4.1
* Mon May 10 2021 chengzihan <chengzihan2@huawei.com> - 1.3.2-1
- Package init