diff --git a/pom.xml b/pom.xml
index e303359bc..5cfd82c60 100644
--- a/pom.xml
+++ b/pom.xml
@@ -31,7 +31,7 @@
com.microsoft.ews-java-api
ews-java-api
- 2.1-SNAPSHOT
+ 2.2.0
Exchange Web Services Java API
Exchange Web Services (EWS) Java API
@@ -76,7 +76,7 @@
UTF-8
- 1.6
+ 17
@@ -86,12 +86,12 @@
3.3
1.6.5
2.4
- 1.14
+ 1.24
1.1
3.4
- 2.8
- 2.2
+ 2.9
+ 2.18.0
2.5
2.18.1
0.7.5.201505241946
@@ -102,6 +102,7 @@
2.8
3.4
2.4
+ 3.0.1
4.12
1.3
@@ -249,6 +250,18 @@
${joda-time.version}
+
+ jakarta.xml.bind
+ jakarta.xml.bind-api
+ ${jakarta-xml.version}
+
+
+
+ jakarta.xml.ws
+ jakarta.xml.ws-api
+ ${jakarta-xml.version}
+
+
junit
junit
diff --git a/readme.md b/readme.md
index 6101807c8..b9c82f9d7 100644
--- a/readme.md
+++ b/readme.md
@@ -9,6 +9,8 @@ By using the EWS Java API, you can access almost all the information stored in a
## Support statement
+support JDK 17 since 2.2
+
Starting July 19th 2018, Exchange Web Services (EWS) will no longer receive feature updates. While the service will continue to receive security updates and certain non-security updates, product design and features will remain unchanged. This change also applies to the EWS SDKs for Java and .NET. More information here: https://developer.microsoft.com/en-us/graph/blogs/upcoming-changes-to-exchange-web-services-ews-api-for-office-365/
diff --git a/src/main/java/microsoft/exchange/webservices/data/core/request/ServiceRequestBase.java b/src/main/java/microsoft/exchange/webservices/data/core/request/ServiceRequestBase.java
index aafd48cf6..0c2f7ad9e 100644
--- a/src/main/java/microsoft/exchange/webservices/data/core/request/ServiceRequestBase.java
+++ b/src/main/java/microsoft/exchange/webservices/data/core/request/ServiceRequestBase.java
@@ -51,7 +51,7 @@
import org.apache.commons.logging.LogFactory;
import javax.xml.stream.XMLStreamException;
-import javax.xml.ws.http.HTTPException;
+import jakarta.xml.ws.http.HTTPException;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
diff --git a/src/main/java/microsoft/exchange/webservices/data/core/response/ExecuteDiagnosticMethodResponse.java b/src/main/java/microsoft/exchange/webservices/data/core/response/ExecuteDiagnosticMethodResponse.java
index f67322ab0..134aaff44 100644
--- a/src/main/java/microsoft/exchange/webservices/data/core/response/ExecuteDiagnosticMethodResponse.java
+++ b/src/main/java/microsoft/exchange/webservices/data/core/response/ExecuteDiagnosticMethodResponse.java
@@ -125,9 +125,9 @@ public Document retriveDocument(XMLEventReader xmlEventReader)
}
String xmlns = EwsUtilities.WSTrustFebruary2005Namespace;//"http://schemas.xmlsoap.org/wsdl/";
- ite = ele.getNamespaces();
- while (ite.hasNext()) {
- Namespace ns = (Namespace) ite.next();
+ Iterator ite2 = ele.getNamespaces();
+ while (ite2.hasNext()) {
+ Namespace ns = (Namespace) ite2.next();
String name = ns.getPrefix();
if (!name.isEmpty()) {
element.setAttributeNS(xmlns, name,
diff --git a/src/main/java/microsoft/exchange/webservices/data/property/complex/TimeChange.java b/src/main/java/microsoft/exchange/webservices/data/property/complex/TimeChange.java
index b1186cf73..b38d19a27 100644
--- a/src/main/java/microsoft/exchange/webservices/data/property/complex/TimeChange.java
+++ b/src/main/java/microsoft/exchange/webservices/data/property/complex/TimeChange.java
@@ -40,7 +40,7 @@
import java.util.Date;
import java.util.TimeZone;
-import javax.xml.bind.DatatypeConverter;
+import jakarta.xml.bind.DatatypeConverter;
/**
* Represents a change of time for a time zone.
diff --git a/src/test/java/microsoft/exchange/webservices/data/property/complex/TimeChangeTest.java b/src/test/java/microsoft/exchange/webservices/data/property/complex/TimeChangeTest.java
index 6346bacf6..829cc4683 100644
--- a/src/test/java/microsoft/exchange/webservices/data/property/complex/TimeChangeTest.java
+++ b/src/test/java/microsoft/exchange/webservices/data/property/complex/TimeChangeTest.java
@@ -23,7 +23,7 @@
import java.util.Calendar;
import java.util.TimeZone;
-import javax.xml.bind.DatatypeConverter;
+import jakarta.xml.bind.DatatypeConverter;
import microsoft.exchange.webservices.data.core.EwsUtilities;
import microsoft.exchange.webservices.data.misc.Time;