diff --git a/README.en.md b/README.en.md deleted file mode 100644 index b77c220..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# infinispan - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index 8198827..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# infinispan - -#### 介绍 -{**以下是码云平台说明,您可以替换此简介** -码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/implement-abstract-functions-extended-from-class-Directory.patch b/implement-abstract-functions-extended-from-class-Directory.patch new file mode 100644 index 0000000..17deeea --- /dev/null +++ b/implement-abstract-functions-extended-from-class-Directory.patch @@ -0,0 +1,23 @@ +From: Build-team +Implement of abstract function extended from class Directory +--- lucene/lucene-directory/src/main/java/org/infinispan/lucene/impl/DirectoryLucene.java.orig 2016-08-11 15:23:06.000000000 +0000 ++++ lucene/lucene-directory/src/main/java/org/infinispan/lucene/impl/DirectoryLucene.java 2020-02-29 08:28:51.774738108 +0000 +@@ -59,6 +59,18 @@ class DirectoryLucene extends Directory + this.indexName = indexName; + this.lockFactory = lf; + } ++ ++ /** ++ * {@inheritDoc} ++ */ ++ @Override ++ public void rename(String source,String dest) {} ++ ++ /** ++ * {@inheritDoc} ++ */ ++ @Override ++ public void syncMetaData() {} + + /** + * {@inheritDoc} diff --git a/infinispan-8.2.4.Final.tar.gz b/infinispan-8.2.4.Final.tar.gz new file mode 100644 index 0000000..3d4866d Binary files /dev/null and b/infinispan-8.2.4.Final.tar.gz differ diff --git a/infinispan.spec b/infinispan.spec new file mode 100644 index 0000000..80eb341 --- /dev/null +++ b/infinispan.spec @@ -0,0 +1,222 @@ +Name: infinispan +Version: 8.2.4 +Release: 7 +Summary: Data grid platform +License: ASL 2.0 and LGPLv2+ and Public Domain +URL: http://infinispan.org/ +Source0: https://github.com/infinispan/infinispan/archive/8.2.4.Final/infinispan-8.2.4.Final.tar.gz + +# Port to lucene 6.x +Patch0: lucene-6.patch +Patch1: implement-abstract-functions-extended-from-class-Directory.patch + +BuildRequires: maven-local mvn(com.clearspring.analytics:stream) mvn(com.mchange:c3p0) +BuildRequires: mvn(commons-logging:commons-logging) mvn(commons-pool:commons-pool) +BuildRequires: mvn(gnu-getopt:getopt) mvn(io.netty:netty-all) mvn(javax.enterprise:cdi-api) +BuildRequires: mvn(net.jcip:jcip-annotations) mvn(org.antlr:antlr-runtime) +BuildRequires: mvn(org.antlr:antlr3-maven-plugin) mvn(org.apache.ant:ant) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) mvn(org.apache.geronimo.specs:geronimo-jcache_1.0_spec) +BuildRequires: mvn(org.apache.httpcomponents:httpclient) mvn(org.apache.logging.log4j:log4j-core) +BuildRequires: mvn(org.apache.logging.log4j:log4j-jcl) mvn(org.apache.logging.log4j:log4j-slf4j-impl) +BuildRequires: mvn(org.apache.lucene:lucene-core) >= 5.3.1 mvn(org.apache.lucene:lucene-analyzers-common) >= 5.3.1 +BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) mvn(org.apache.maven.plugins:maven-enforcer-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) mvn(org.codehaus.jackson:jackson-mapper-asl) +BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) mvn(org.codehaus.mojo:exec-maven-plugin) +BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi) mvn(org.eclipse.osgi:org.eclipse.osgi.services) +BuildRequires: mvn(org.fusesource.leveldbjni:leveldbjni) mvn(org.hibernate:hibernate-core) +BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api) +BuildRequires: mvn(org.infinispan.protostream:protostream) >= 3.0.4 mvn(org.iq80.leveldb:leveldb) +BuildRequires: mvn(org.javassist:javassist) mvn(org.jboss:jboss-parent:pom:) +BuildRequires: mvn(org.jboss.aesh:aesh) mvn(org.jboss.arquillian:arquillian-bom:pom:) +BuildRequires: mvn(org.jboss.logging:jboss-logging) mvn(org.jboss.logging:jboss-logging-processor:1) +BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling-osgi) mvn(org.jboss.maven.plugins:maven-injection-plugin) +BuildRequires: mvn(org.jboss.remotingjmx:remoting-jmx) mvn(org.jboss.sasl:jboss-sasl) +BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-bom:pom:) +BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-bom:pom:) +BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:) +BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec) +BuildRequires: mvn(org.jboss.xnio:xnio-nio) mvn(org.jgroups:jgroups) >= 3.6.4 +BuildRequires: mvn(org.kohsuke.metainf-services:metainf-services) mvn(org.scala-lang:scala-compiler) +BuildRequires: mvn(org.springframework:spring-context) mvn(org.wildfly.core:wildfly-controller) +BuildRequires: mvn(org.wildfly.core:wildfly-core-parent:pom:) + +# Public Domain: ./commons/src/main/java/org/infinispan/commons/util/Base64.java +Provides: bundled(java-base64) = 4.2 + +BuildArch: noarch + +%description +Infinispan is an extremely scalable, highly available data grid +platform - 100% open source, and written in Java. The purpose of +Infinispan is to expose a data structure that is highly concurrent, +designed ground-up to make the most of modern multi-processor/multi-core +architectures while at the same time providing distributed cache +capabilities. At its core Infinispan exposes a Cache interface which +extends java.util.Map. It is also optionally is backed by a peer-to-peer +network architecture to distribute state efficiently around a data grid. + +%package help +Summary: Help for %{name} +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} + +%description help +This package contains the help documentation for %{name}. + +%prep +%autosetup -n %{name}-%{version}.Final -p1 + +find . -name "*.jar" -or -name "*.class" | xargs rm -rf + +# Rename the license file +cp -pr license/src/main/resources/META-INF/LICENSE.txt.vm LICENSE.txt + +# Checkstyle is unnecessary for RPM builds +%pom_disable_module checkstyle +%pom_remove_plugin -r org.apache.maven.plugins:maven-checkstyle-plugin + +%pom_disable_module all +%pom_disable_module all/cli +%pom_disable_module all/embedded +%pom_disable_module all/embedded-query +%pom_disable_module all/remote +%pom_disable_module as-modules/embedded +%pom_disable_module as-modules/client +%pom_disable_module demos/gui +%pom_disable_module demos/distexec +%pom_disable_module demos/lucene-directory-demo +%pom_disable_module demos/gridfs-webdav +%pom_disable_module demos/nearcache +%pom_disable_module demos/nearcache-client +%pom_disable_module integrationtests +%pom_disable_module integrationtests/as-integration-embedded +%pom_disable_module integrationtests/as-integration-client +%pom_disable_module integrationtests/as-lucene-directory +%pom_disable_module integrationtests/compatibility-mode-it +%pom_disable_module integrationtests/cdi-jcache-it +%pom_disable_module integrationtests/security-it +%pom_disable_module integrationtests/security-manager-it +%pom_disable_module integrationtests/osgi +%pom_disable_module integrationtests/cdi-weld-se-it +%pom_disable_module integrationtests/all-embedded-it +%pom_disable_module integrationtests/all-embedded-query-it +%pom_disable_module integrationtests/all-remote-it +%pom_disable_module javadoc +%pom_disable_module persistence/rest +%pom_disable_module rhq-plugin +%pom_disable_module server/integration +%pom_disable_module server/rest +%pom_disable_module tck-runner jcache + +%pom_disable_module spring/spring4 +%pom_disable_module spring/spring4/spring4-common +%pom_disable_module spring/spring4/spring4-embedded +%pom_disable_module spring/spring4/spring4-remote + +%pom_xpath_set pom:properties/pom:version.jboss.logging.processor 1 parent + +%pom_remove_plugin ":maven-remote-resources-plugin" parent +# org.scala-tools:maven-scala-plugin:2.15.2 used for generate-blueprint task +%pom_remove_plugin -r ":maven-scala-plugin" parent jcache/embedded + +%pom_remove_plugin :jetty-maven-plugin persistence/rest + +%pom_remove_plugin :maven-invoker-plugin jcache/embedded +%pom_remove_plugin :maven-failsafe-plugin parent + +# Use eclipse apis: type ServiceTracker does not take parameters +%pom_change_dep -r org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi commons persistence/jpa osgi bom +%pom_remove_dep -r org.osgi:org.osgi.compendium commons persistence/jpa +%pom_change_dep -r org.osgi:org.osgi.compendium org.eclipse.osgi:org.eclipse.osgi.services osgi bom + +%pom_change_dep -r javax.cache:cache-api org.apache.geronimo.specs:geronimo-jcache_1.0_spec:1.0-alpha-1 jcache/commons jcache/embedded jcache/remote bom core cdi/remote + +%pom_change_dep :leveldbjni-all :leveldbjni persistence/leveldb + +# https://bugs.openjdk.java.net/browse/JDK-8067747 +%pom_xpath_inject "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" ' +false +${version.java} +${version.java}' commons +for p in core server/core persistence/jdbc lucene/lucene-directory \ + query server/hotrod \ + tree client/hotrod-client persistence/remote persistence/leveldb server/memcached \ + server/websocket cli/cli-interpreter cdi/embedded cdi/remote jcache/embedded;do +%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.0 ${p} ' + + false + ${version.java} + ${version.java} + UTF-8 +' +done + +# Compile scala stuff +for p in core \ + hotrod \ + memcached;do +%pom_remove_plugin ":maven-scala-plugin" server/${p} +%pom_add_plugin org.apache.maven.plugins:maven-antrun-plugin:1.7 server/${p} ' + + + compile + process-sources + + + + + + + + + + + + run + + + + + + org.scala-lang + scala-compiler + ${version.scala} + +' +done + +%pom_disable_module lucene/directory-provider +%pom_disable_module object-filter +%pom_disable_module query +%pom_disable_module remote-query/remote-query-server +%pom_disable_module scripting +%pom_disable_module server/hotrod +%pom_disable_module tasks +%pom_disable_module tools + +%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools']/pom:scope" tools +%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools']/pom:systemPath" tools + +# org.hibernate:hibernate-search-engine:tests:5.5.1.Final +%pom_xpath_remove "pom:dependency[pom:groupId = 'org.hibernate']/pom:classifier" lucene/directory-provider + +# This component is now owned and maintained by the Infinispan team +%mvn_alias :infinispan-directory-provider org.hibernate:hibernate-search-infinispan + +%build + +%mvn_build -f + +%install +%mvn_install + +%files -f .mfiles +%doc README.md README-i18n.md +%license LICENSE.txt + +%files help -f .mfiles-javadoc +%license LICENSE.txt + +%changelog +* Tue Mar 10 2020 xuxijian - 8.2.4-7 +- Package init diff --git a/lucene-6.patch b/lucene-6.patch new file mode 100644 index 0000000..bda2557 --- /dev/null +++ b/lucene-6.patch @@ -0,0 +1,29 @@ +--- a/lucene/lucene-directory/src/main/java/org/infinispan/lucene/impl/InfinispanIndexOutput.java.orig 2017-08-17 11:45:29.634976664 +0100 ++++ b/lucene/lucene-directory/src/main/java/org/infinispan/lucene/impl/InfinispanIndexOutput.java 2017-08-17 11:45:52.027718876 +0100 +@@ -52,7 +52,8 @@ + private int currentChunkNumber = 0; + + public InfinispanIndexOutput(final AdvancedCache metadataCache, final AdvancedCache chunksCache, final FileCacheKey fileKey, final int bufferSize, final FileListOperations fileList,final int affinitySegmentId) { +- super("InfinispanIndexOutput{metadataCache=" + metadataCache + ", chunksCache=" + chunksCache + ", fileKey=" + fileKey + ", bufferSize=" + bufferSize + '}'); ++ super("InfinispanIndexOutput{metadataCache=" + metadataCache + ", chunksCache=" + chunksCache + ", fileKey=" + fileKey + ", bufferSize=" + bufferSize + '}', ++ "InfinispanIndexOutput{metadataCache=" + metadataCache + ", chunksCache=" + chunksCache + ", fileKey=" + fileKey + ", bufferSize=" + bufferSize + '}'); + this.metadataCache = metadataCache; + this.chunksCache = chunksCache; + this.affinitySegmentId = affinitySegmentId; +--- a/lucene/lucene-directory/src/main/java/org/infinispan/lucene/impl/DirectoryLucene.java.orig 2017-08-17 11:51:02.271147311 +0100 ++++ b/lucene/lucene-directory/src/main/java/org/infinispan/lucene/impl/DirectoryLucene.java 2017-08-17 12:34:22.778145803 +0100 +@@ -98,6 +98,14 @@ + * {@inheritDoc} + */ + @Override ++ public IndexOutput createTempOutput(final String prefix, final String suffix, final IOContext context) throws IOException { ++ throw new IOException("Unsupported operation"); ++ } ++ ++ /** ++ * {@inheritDoc} ++ */ ++ @Override + public IndexInput openInput(final String name, final IOContext context) throws IOException { + final IndexInputContext indexInputContext = impl.openInput(name); + if (indexInputContext.readLocks == null) {