IDEMPIERE-3136:all stuff relate library of idempiere

update restlet to 2.3 and replace p2 repository for maven repository
This commit is contained in:
hieplq 2016-07-08 23:09:35 +07:00
parent b91df9f899
commit ed63c3fb40
8 changed files with 11 additions and 51 deletions

View File

@ -101,13 +101,6 @@
version="0.0.0" version="0.0.0"
unpack="false"/> unpack="false"/>
<plugin
id="org.restlet.ext.net"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin <plugin
id="org.restlet.ext.servlet" id="org.restlet.ext.servlet"
download-size="0" download-size="0"

View File

@ -9,7 +9,6 @@
<cq:property key="target.ws" value="*"/> <cq:property key="target.ws" value="*"/>
<cq:advisorNode namePattern="^org\.objectweb\.asm(\..+)?" componentType="osgi.bundle" versionOverride="[5.0.1,6.0.0)"/> <cq:advisorNode namePattern="^org\.objectweb\.asm(\..+)?" componentType="osgi.bundle" versionOverride="[5.0.1,6.0.0)"/>
<cq:advisorNode namePattern="^org\.restlet(\..+)?" componentType="osgi.bundle" versionOverride="[2.1.0,2.2.0)"/>
<cq:advisorNode namePattern="^org\.apache\.felix\.webconsole$" useTargetPlatform="false" useWorkspace="false" versionOverride="[4.2.2,4.3.0)"/> <cq:advisorNode namePattern="^org\.apache\.felix\.webconsole$" useTargetPlatform="false" useWorkspace="false" versionOverride="[4.2.2,4.3.0)"/>
<cq:advisorNode namePattern="^org\.apache\.felix\.webconsole\.plugins\.packageadmin$" useTargetPlatform="false" useWorkspace="false" versionOverride="[1.0.0,1.0.0]"/> <cq:advisorNode namePattern="^org\.apache\.felix\.webconsole\.plugins\.packageadmin$" useTargetPlatform="false" useWorkspace="false" versionOverride="[1.0.0,1.0.0]"/>
<cq:advisorNode namePattern="^org\.eclipse\.jetty\.osgi-servlet-api$" useTargetPlatform="false" useWorkspace="false" versionOverride="[0.0.0,9.3.0]"/> <cq:advisorNode namePattern="^org\.eclipse\.jetty\.osgi-servlet-api$" useTargetPlatform="false" useWorkspace="false" versionOverride="[0.0.0,9.3.0]"/>

View File

@ -27,7 +27,7 @@
<rm:locator pattern="^org\.slf4j(\..+)?" searchPathRef="orbit"/> <rm:locator pattern="^org\.slf4j(\..+)?" searchPathRef="orbit"/>
<rm:locator pattern="^org\.apache\.ant(\..+)?" searchPathRef="orbit"/> <rm:locator pattern="^org\.apache\.ant(\..+)?" searchPathRef="orbit"/>
<rm:locator pattern="^org\.apache\.commons(\..+)?" searchPathRef="orbit"/> <rm:locator pattern="^org\.apache\.commons(\..+)?" searchPathRef="orbit"/>
<rm:locator pattern="^org\.restlet(\..+)?" searchPathRef="restlet.maven"/> <rm:locator pattern="^org\.restlet(\..+)?" searchPathRef="restlet.p2"/>
<rm:locator pattern="^zcommon$" searchPathRef="zkoss.osgi"/> <rm:locator pattern="^zcommon$" searchPathRef="zkoss.osgi"/>
<rm:locator pattern="^zel$" searchPathRef="zkoss.osgi"/> <rm:locator pattern="^zel$" searchPathRef="zkoss.osgi"/>
<rm:locator pattern="^zhtml$" searchPathRef="zkoss.osgi"/> <rm:locator pattern="^zhtml$" searchPathRef="zkoss.osgi"/>
@ -88,17 +88,11 @@
<rm:uri format="${url.orbit}"/> <rm:uri format="${url.orbit}"/>
</rm:provider> </rm:provider>
</rm:searchPath> </rm:searchPath>
<rm:searchPath name="restlet.maven"> <rm:searchPath name="restlet.p2">
<rm:provider xsi:type="maven:MavenProvider" componentTypes="osgi.bundle" readerType="maven2" source="false" mutable="false"> <rm:provider componentTypes="osgi.bundle" readerType="p2" source="false" mutable="false">
<rm:property key="buckminster.source" value="false"/> <rm:property key="buckminster.source" value="false"/>
<rm:property key="buckminster.mutable" value="false"/> <rm:property key="buckminster.mutable" value="false"/>
<rm:uri format="${url.maven.restlet}"/> <rm:uri format="${url.restlet.p2}"/>
<maven:mappings>
<maven:entry artifactId="org.restlet" groupId="org.restlet.osgi" name="org.restlet"/>
<maven:entry artifactId="org.restlet.ext.net" groupId="org.restlet.osgi" name="org.restlet.ext.net"/>
<maven:entry artifactId="org.restlet.ext.servlet" groupId="org.restlet.osgi" name="org.restlet.ext.servlet"/>
<maven:entry artifactId="org.restlet.ext.ssl" groupId="org.restlet.osgi" name="org.restlet.ext.ssl"/>
</maven:mappings>
</rm:provider> </rm:provider>
</rm:searchPath> </rm:searchPath>
<rm:searchPath name="bundles.maven"> <rm:searchPath name="bundles.maven">

View File

@ -23,3 +23,5 @@ url.jetty=http://download.eclipse.org/jetty/updates/jetty-bundles-9.x
url.orbit=http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository url.orbit=http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository
url.file.srv=http://downloads.sourceforge.net/project/idempiere/binary.file url.file.srv=http://downloads.sourceforge.net/project/idempiere/binary.file
url.restlet.p2=http://p2.restlet.com/2.3

View File

@ -33,20 +33,6 @@
install-size="0" install-size="0"
version="0.0.0"/> version="0.0.0"/>
<plugin
id="org.restlet.ext.net"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.restlet.ext.ssl"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin <plugin
id="org.restlet.ext.servlet" id="org.restlet.ext.servlet"
download-size="0" download-size="0"

View File

@ -71,9 +71,7 @@ Export-Package: com.jgoodies.looks,
Require-Bundle: org.adempiere.base;bundle-version="0.0.0", Require-Bundle: org.adempiere.base;bundle-version="0.0.0",
org.adempiere.ui;bundle-version="0.0.0", org.adempiere.ui;bundle-version="0.0.0",
org.restlet;bundle-version="0.0.0", org.restlet;bundle-version="0.0.0",
org.restlet.ext.net;bundle-version="0.0.0", org.restlet.ext.servlet;bundle-version="0.0.0"
org.restlet.ext.servlet;bundle-version="0.0.0",
org.restlet.ext.ssl;bundle-version="0.0.0"
Eclipse-ExtensibleAPI: true Eclipse-ExtensibleAPI: true
Eclipse-RegisterBuddy: org.adempiere.base Eclipse-RegisterBuddy: org.adempiere.base
Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Bundle-RequiredExecutionEnvironment: JavaSE-1.8
@ -85,18 +83,6 @@ Import-Package: javax.net.ssl,
org.compiere.css, org.compiere.css,
org.eclipse.core.runtime;version="3.4.0", org.eclipse.core.runtime;version="3.4.0",
org.eclipse.equinox.app, org.eclipse.equinox.app,
org.osgi.framework;version="1.5.0", org.osgi.framework;version="1.5.0"
org.restlet,
org.restlet.data,
org.restlet.engine,
org.restlet.engine.connector,
org.restlet.engine.security,
org.restlet.ext.net,
org.restlet.ext.ssl,
org.restlet.representation,
org.restlet.resource,
org.restlet.security,
org.restlet.service,
org.restlet.util
Service-Component: OSGI-INF/*.xml Service-Component: OSGI-INF/*.xml
Bundle-ActivationPolicy: lazy Bundle-ActivationPolicy: lazy

View File

@ -8,13 +8,12 @@ import javax.net.ssl.SSLSession;
import org.compiere.Adempiere; import org.compiere.Adempiere;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
import org.eclipse.equinox.app.IApplication; import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext; import org.eclipse.equinox.app.IApplicationContext;
import org.restlet.Client; import org.restlet.Client;
import org.restlet.Context; import org.restlet.Context;
import org.restlet.data.Protocol; import org.restlet.data.Protocol;
import org.restlet.ext.net.HttpClientHelper; import org.restlet.engine.connector.HttpClientHelper;
public class Application implements IApplication { public class Application implements IApplication {
private static CLogger log = CLogger.getCLogger(Application.class); private static CLogger log = CLogger.getCLogger(Application.class);

View File

@ -22,7 +22,8 @@ import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory; import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager; import javax.net.ssl.X509TrustManager;
import org.restlet.ext.ssl.DefaultSslContextFactory; import org.restlet.engine.ssl.DefaultSslContextFactory;
/** /**
* Temporary workaround to support ssl connection to server with self signed certificate. * Temporary workaround to support ssl connection to server with self signed certificate.