From a1233430e8d3611f92e63a18089f5f73ec97cae4 Mon Sep 17 00:00:00 2001 From: jsgrah-spring Date: Tue, 1 Nov 2022 14:05:34 +0100 Subject: [PATCH 1/4] JAVA-14499. Fix: Failed to read artifact descriptor for com.gemstone.gemfire:gemfire:jar:8.1.0: Could not transfer artifact com.gemstone.gemfire:gemfire:pom:8.1.0 from/to gemstone. --- persistence-modules/pom.xml | 2 +- .../spring-data-gemfire/pom.xml | 35 +++---------------- .../function/GemfireConfiguration.java | 6 ++-- .../spring/data/gemfire/model/Employee.java | 2 +- 4 files changed, 9 insertions(+), 36 deletions(-) diff --git a/persistence-modules/pom.xml b/persistence-modules/pom.xml index d549f7e2de..3684efe600 100644 --- a/persistence-modules/pom.xml +++ b/persistence-modules/pom.xml @@ -73,7 +73,7 @@ spring-data-dynamodb spring-data-eclipselink spring-data-elasticsearch - + spring-data-gemfire spring-data-geode spring-data-jpa-annotations spring-data-jpa-crud diff --git a/persistence-modules/spring-data-gemfire/pom.xml b/persistence-modules/spring-data-gemfire/pom.xml index 53ce67fb6d..9b8ee89810 100644 --- a/persistence-modules/spring-data-gemfire/pom.xml +++ b/persistence-modules/spring-data-gemfire/pom.xml @@ -15,14 +15,9 @@ - org.springframework.data - spring-data-gemfire - ${spring-data-gemfire-version} - - - com.gemstone.gemfire - gemfire - ${gemfire-version} + org.springframework.geode + spring-geode-starter + ${spring-geode.version} @@ -30,17 +25,6 @@ google-collections ${google-collections-version} - - org.springframework - spring-context - ${spring-context-version} - - - commons-logging - commons-logging - - - org.springframework spring-test @@ -49,19 +33,10 @@ - - - gemstone - http://dist.gemstone.com.s3.amazonaws.com/maven/release/ - - - - 1.7.4.RELEASE - 7.0.1 + 1.7.4 1.0 - 4.3.0.RELEASE - 4.3.0.RELEASE + 5.3.23 \ No newline at end of file diff --git a/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java b/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java index 0049f82ddc..296516aec5 100644 --- a/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java +++ b/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java @@ -2,8 +2,8 @@ package com.baeldung.spring.data.gemfire.function; import com.baeldung.spring.data.gemfire.model.Employee; import com.baeldung.spring.data.gemfire.repository.EmployeeRepository; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.GemFireCache; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.GemFireCache; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; @@ -39,7 +39,6 @@ public class GemfireConfiguration { } @Bean - @Autowired CacheFactoryBean gemfireCache() { CacheFactoryBean gemfireCache = new CacheFactoryBean(); gemfireCache.setClose(true); @@ -49,7 +48,6 @@ public class GemfireConfiguration { @Bean(name="employee") - @Autowired LocalRegionFactoryBean getEmployee(final GemFireCache cache) { LocalRegionFactoryBean employeeRegion = new LocalRegionFactoryBean(); employeeRegion.setCache(cache); diff --git a/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/model/Employee.java b/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/model/Employee.java index 9c29b28dca..576690ed00 100644 --- a/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/model/Employee.java +++ b/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/model/Employee.java @@ -2,7 +2,7 @@ package com.baeldung.spring.data.gemfire.model; import org.springframework.data.annotation.Id; import org.springframework.data.annotation.PersistenceConstructor; -import org.springframework.data.gemfire.mapping.Region; +import org.springframework.data.gemfire.mapping.annotation.Region; @Region("employee") From 4f4e7afadfd09aaa98b7eebadee68083b09cb038 Mon Sep 17 00:00:00 2001 From: jsgrah-spring Date: Thu, 3 Nov 2022 00:32:37 +0100 Subject: [PATCH 2/4] JAVA-14499. Comment out spring-data-gemfire and point to spring-data-geode for further reference. --- persistence-modules/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persistence-modules/pom.xml b/persistence-modules/pom.xml index 3684efe600..0b39b9ef16 100644 --- a/persistence-modules/pom.xml +++ b/persistence-modules/pom.xml @@ -73,7 +73,7 @@ spring-data-dynamodb spring-data-eclipselink spring-data-elasticsearch - spring-data-gemfire + spring-data-geode spring-data-jpa-annotations spring-data-jpa-crud From bbf928a7c43395d92193850c4a853abb19403c49 Mon Sep 17 00:00:00 2001 From: jsgrah-spring Date: Thu, 3 Nov 2022 20:58:17 +0100 Subject: [PATCH 3/4] JAVA-14499. Revert code changes. --- .../spring-data-gemfire/pom.xml | 35 ++++++++++++++++--- .../function/GemfireConfiguration.java | 6 ++-- 2 files changed, 34 insertions(+), 7 deletions(-) diff --git a/persistence-modules/spring-data-gemfire/pom.xml b/persistence-modules/spring-data-gemfire/pom.xml index 9b8ee89810..53ce67fb6d 100644 --- a/persistence-modules/spring-data-gemfire/pom.xml +++ b/persistence-modules/spring-data-gemfire/pom.xml @@ -15,9 +15,14 @@ - org.springframework.geode - spring-geode-starter - ${spring-geode.version} + org.springframework.data + spring-data-gemfire + ${spring-data-gemfire-version} + + + com.gemstone.gemfire + gemfire + ${gemfire-version} @@ -25,6 +30,17 @@ google-collections ${google-collections-version} + + org.springframework + spring-context + ${spring-context-version} + + + commons-logging + commons-logging + + + org.springframework spring-test @@ -33,10 +49,19 @@ + + + gemstone + http://dist.gemstone.com.s3.amazonaws.com/maven/release/ + + + - 1.7.4 + 1.7.4.RELEASE + 7.0.1 1.0 - 5.3.23 + 4.3.0.RELEASE + 4.3.0.RELEASE \ No newline at end of file diff --git a/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java b/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java index 296516aec5..0049f82ddc 100644 --- a/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java +++ b/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/function/GemfireConfiguration.java @@ -2,8 +2,8 @@ package com.baeldung.spring.data.gemfire.function; import com.baeldung.spring.data.gemfire.model.Employee; import com.baeldung.spring.data.gemfire.repository.EmployeeRepository; -import org.apache.geode.cache.DataPolicy; -import org.apache.geode.cache.GemFireCache; +import com.gemstone.gemfire.cache.DataPolicy; +import com.gemstone.gemfire.cache.GemFireCache; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; @@ -39,6 +39,7 @@ public class GemfireConfiguration { } @Bean + @Autowired CacheFactoryBean gemfireCache() { CacheFactoryBean gemfireCache = new CacheFactoryBean(); gemfireCache.setClose(true); @@ -48,6 +49,7 @@ public class GemfireConfiguration { @Bean(name="employee") + @Autowired LocalRegionFactoryBean getEmployee(final GemFireCache cache) { LocalRegionFactoryBean employeeRegion = new LocalRegionFactoryBean(); employeeRegion.setCache(cache); From 2e646fadfa0732a7272bbdf853b77fa3f92f2610 Mon Sep 17 00:00:00 2001 From: jsgrah-spring Date: Thu, 3 Nov 2022 21:01:55 +0100 Subject: [PATCH 4/4] JAVA-14499. Revert code changes. --- .../java/com/baeldung/spring/data/gemfire/model/Employee.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/model/Employee.java b/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/model/Employee.java index 576690ed00..9c29b28dca 100644 --- a/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/model/Employee.java +++ b/persistence-modules/spring-data-gemfire/src/main/java/com/baeldung/spring/data/gemfire/model/Employee.java @@ -2,7 +2,7 @@ package com.baeldung.spring.data.gemfire.model; import org.springframework.data.annotation.Id; import org.springframework.data.annotation.PersistenceConstructor; -import org.springframework.data.gemfire.mapping.annotation.Region; +import org.springframework.data.gemfire.mapping.Region; @Region("employee")