karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (KARAF-3634) Wrong system works lifting components (features)
Date Thu, 16 Apr 2015 09:51:59 GMT

    [ https://issues.apache.org/jira/browse/KARAF-3634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497850#comment-14497850
] 

Freeman Fang edited comment on KARAF-3634 at 4/16/15 9:51 AM:
--------------------------------------------------------------

I can't reproduce it.

>From my test, I added

<bundle dependency='true'>mvn:http://maven.restlet.org!org.restlet.osgi/org.restlet/2.2.3</bundle>
in features.xml and disconnect my internet connection

 if the local repo has all required jars, the features-maven-plugin won't try to download
it from remote server which is the expected behavior. 



was (Author: ffang):
I can't reproduce it.

>From my test, I added

<bundle dependency='true'>mvn:http://maven.restlet.org!org.restlet.osgi/org.restlet/2.2.3</bundle>
in features.xml and disconnect my internet connection

 if the local repo has all required jars, the features-maven-plugin won't try to download
it from remote server. 


> Wrong system works lifting components (features)
> ------------------------------------------------
>
>                 Key: KARAF-3634
>                 URL: https://issues.apache.org/jira/browse/KARAF-3634
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 2.4.1
>            Reporter: Aleksey Sushko
>            Assignee: Freeman Fang
>            Priority: Minor
>
> Take for example the file apache-camel-2.15.0-features.xml.
> The file has the following contents:
> {code}
> <feature name='camel-restlet' version='2.15.0' resolver='(obr)' start-level='50'>
>   <feature version='2.15.0'>camel-core</feature>
>   <bundle dependency='true'>mvn:http://maven.restlet.org!org.restlet.osgi/org.restlet/2.2.3</bundle>
>   <bundle dependency='true'>mvn:commons-codec/commons-codec/1.9</bundle>
>   ...
>   <bundle dependency='true'>mvn:http://maven.restlet.org!org.restlet.osgi/org.restlet.ext.httpclient/2.2.3</bundle>
> </feature>
> {code}
> Work maven plugin mvn:org.apache.karaf.tooling/features-maven-plugin/2.4.1
> In the local repository already has all the ingredients. As evidenced by the string "INFO".
> Next comes the call to an external server. Component is not loaded (0 B at 0.0 KB/sec).
> {code}
> [INFO] Copying bundle: org.restlet.osgi:org.restlet:jar:2.2.3
> Downloading: http://maven.restlet.org/org/restlet/osgi/org.restlet/2.2.3/org.restlet-2.2.3.jar
> Downloaded: http://maven.restlet.org/org/restlet/osgi/org.restlet/2.2.3/org.restlet-2.2.3.jar
(0 B at 0.0 KB/sec)
> [INFO] Copying bundle: org.restlet.osgi:org.restlet.ext.httpclient:jar:2.2.3
> Downloading: http://maven.restlet.org/org/restlet/osgi/org.restlet.ext.httpclient/2.2.3/org.restlet.ext.httpclient-2.2.3.jar
> Downloaded: http://maven.restlet.org/org/restlet/osgi/org.restlet.ext.httpclient/2.2.3/org.restlet.ext.httpclient-2.2.3.jar
(0 B at 0.0 KB/sec)
> {code}
> If it works maven plugin, and then in the karaf have recourse to an external server.
But karaf can stand in the DMZ zone and do not have access to the Internet.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message