This is an automated email from the ASF dual-hosted git repository. wpaetzold pushed a commit to branch release18.12 in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release18.12 by this push: new a8f50c5 Fixed: Builds fail due to unauthorized access to repo.spring.io/plugins-release (OFBIZ-12351) a8f50c5 is described below commit a8f50c57592496048b6e5be42912c5ad40fc954b Author: Wiebke Pätzold <wiebke.paetz...@ecomify.de> AuthorDate: Wed Nov 3 14:02:53 2021 +0100 Fixed: Builds fail due to unauthorized access to repo.spring.io/plugins-release (OFBIZ-12351) Replaces repository syndication by rometools Thanks Mart Naum for report --- .../java/org/apache/ofbiz/content/blog/BlogRssServices.java | 12 ++++++------ build.gradle | 7 ++----- framework/common/servicedef/services.xml | 2 +- .../java/org/apache/ofbiz/webapp/event/RomeEventHandler.java | 6 +++--- 4 files changed, 12 insertions(+), 15 deletions(-) diff --git a/applications/content/src/main/java/org/apache/ofbiz/content/blog/BlogRssServices.java b/applications/content/src/main/java/org/apache/ofbiz/content/blog/BlogRssServices.java index 81065d6..c110223 100644 --- a/applications/content/src/main/java/org/apache/ofbiz/content/blog/BlogRssServices.java +++ b/applications/content/src/main/java/org/apache/ofbiz/content/blog/BlogRssServices.java @@ -39,12 +39,12 @@ import org.apache.ofbiz.service.DispatchContext; import org.apache.ofbiz.service.LocalDispatcher; import org.apache.ofbiz.service.ServiceUtil; -import com.sun.syndication.feed.synd.SyndContent; -import com.sun.syndication.feed.synd.SyndContentImpl; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.feed.synd.SyndEntryImpl; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.feed.synd.SyndFeedImpl; +import com.rometools.rome.feed.synd.SyndContent; +import com.rometools.rome.feed.synd.SyndContentImpl; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndEntryImpl; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.feed.synd.SyndFeedImpl; /** * BlogRssServices diff --git a/build.gradle b/build.gradle index 9acfc43..c58c300 100644 --- a/build.gradle +++ b/build.gradle @@ -134,10 +134,6 @@ allprojects { artifact() } } - maven { - // com.springsource.com.sun.syndication - url "https://repo.spring.io/plugins-release" - } } } @@ -173,7 +169,7 @@ dependencies { compile 'com.ibm.icu:icu4j:63.1' compile 'com.lowagie:itext:2.1.7' // Don't update due to license change in newer versions, see OFBIZ-10455 compile 'com.sun.mail:javax.mail:1.6.2' - compile 'com.sun.syndication:com.springsource.com.sun.syndication:1.0.0' + compile 'com.rometools:rome:1.16.0' compile 'com.thoughtworks.xstream:xstream:1.4.11.1' compile 'commons-cli:commons-cli:1.4' compile 'commons-net:commons-net:3.6' @@ -218,6 +214,7 @@ dependencies { compile 'wsdl4j:wsdl4j:1.6.3' compile 'org.jsoup:jsoup:1.11.3' compile 'com.auth0:java-jwt:3.8.2' + compile 'org.jdom:jdom:1.1.3' // don't upgrade above 1.1.3, makes a lot of not obvious and useless complications, see last commits of OFBIZ-12092 for more compile 'net.lingala.zip4j:zip4j:2.6.4' compile 'org.apache.commons:commons-imaging:1.0-alpha2' // Alpha but OK, "Imaging was working and was used by a number of projects in production even before reaching its initial release as an Apache Commons component." compile 'batik:batik-svg-dom:1.6-1' diff --git a/framework/common/servicedef/services.xml b/framework/common/servicedef/services.xml index c5c2941..cc7f4a3 100644 --- a/framework/common/servicedef/services.xml +++ b/framework/common/servicedef/services.xml @@ -450,7 +450,7 @@ under the License. <attribute name="feedType" type="String" mode="IN" optional="false"/> <attribute name="mainLink" type="String" mode="IN" optional="false"/> <attribute name="entryLink" type="String" mode="IN" optional="false"/> - <attribute name="wireFeed" type="com.sun.syndication.feed.WireFeed" mode="OUT" optional="false"/> + <attribute name="wireFeed" type="com.rometools.rome.feed.WireFeed" mode="OUT" optional="false"/> </service> <!-- User preferences services --> diff --git a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/RomeEventHandler.java b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/RomeEventHandler.java index 66a9802..440580d 100644 --- a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/RomeEventHandler.java +++ b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/event/RomeEventHandler.java @@ -30,9 +30,9 @@ import org.apache.ofbiz.webapp.control.ConfigXMLReader.Event; import org.apache.ofbiz.webapp.control.ConfigXMLReader.RequestMap; import org.apache.ofbiz.webapp.control.RequestHandler; -import com.sun.syndication.feed.WireFeed; -import com.sun.syndication.io.FeedException; -import com.sun.syndication.io.WireFeedOutput; +import com.rometools.rome.feed.WireFeed; +import com.rometools.rome.io.FeedException; +import com.rometools.rome.io.WireFeedOutput; /** * RomeEventHandler