Details
-
Question
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.5
-
None
-
None
Description
The karaf-maven-plugin registers its own URLStreamHandlerFactory for the protocol mvn see here.
InstallKarsMojo.java
static { URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory() { public URLStreamHandler createURLStreamHandler(String protocol) { if ("wrap".equals(protocol)) { return new org.ops4j.pax.url.wrap.Handler(); } if ("mvn".equals(protocol)) { return new org.ops4j.pax.url.mvn.Handler(); } return null; } }); }
1. Why is this necessary?
2. Why not using the system property java.protocol.handler.pkgs?
I tried to set the URLStreamHandlerFactory in a project where I use the karaf-maven-plugin which leads to the exception 'factory already set....'
3. Is it possible to implement a check whether the protocol mvn is already?
Attachments
Issue Links
- relates to
-
KARAF-3611 karaf-maven-plugin fails for startupFeatures + "wrap:"
- Resolved