Use 1.4 API

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@682123 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java b/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java
index 2ac3bfa..bf25f00 100644
--- a/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java
+++ b/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java
@@ -239,7 +239,7 @@
                 URI bundleJar = ObrUtils.getArtifactURI( localRepository, project.getArtifact() );
                 String relative = ObrUtils.getRelativeURI( ObrUtils.toFileURI( mavenRepository ),  bundleJar).toASCIIString();
                 URL resourceURL = new URL( new URL( prefixUrl + '/' ), relative );
-                userConfig.setRemoteBundle( resourceURL.toURI() );
+                userConfig.setRemoteBundle( URI.create( resourceURL.toString() ) );
             }
 
             update = new ObrUpdate( repositoryXml, obrXmlFile, project, mavenRepository, userConfig, log );