diff --git a/pom.xml b/pom.xml
index 212e62e31..476d8af81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
org.springframework.cloud
spring-cloud-build
- 2.2.4.BUILD-SNAPSHOT
+ 2.3.0.RELEASE
diff --git a/spring-cloud-function-deployer/src/main/java/org/springframework/cloud/function/deployer/FunctionArchiveDeployer.java b/spring-cloud-function-deployer/src/main/java/org/springframework/cloud/function/deployer/FunctionArchiveDeployer.java
index 6322bad32..edc76d9cf 100644
--- a/spring-cloud-function-deployer/src/main/java/org/springframework/cloud/function/deployer/FunctionArchiveDeployer.java
+++ b/spring-cloud-function-deployer/src/main/java/org/springframework/cloud/function/deployer/FunctionArchiveDeployer.java
@@ -20,7 +20,9 @@ import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.net.URL;
+import java.util.ArrayList;
import java.util.HashMap;
+import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
@@ -195,7 +197,12 @@ class FunctionArchiveDeployer extends JarLauncher {
}
private List discoverClassPathAcrhives() throws Exception {
- List classPathArchives = getClassPathArchives();
+ Iterator iter = getClassPathArchivesIterator();
+ List classPathArchives = new ArrayList<>();
+ while (iter.hasNext()) {
+ classPathArchives.add(iter.next());
+ }
+// List classPathArchives = getClassPathArchives();
if (CollectionUtils.isEmpty(classPathArchives)) {
classPathArchives.add(this.getArchive());
}