Hi,

Can you check your internet connection ?

Are you using a proxy to access the maven repository :

http://repo1.maven.org/maven2/

François


Le 02/02/2018 à 15:39, anynamus a écrit :
> Hello.
>
> I am new to the OSGi architecture and to Karaf. So I am into exploration
> mode...
>
> With Karaf versions 4.1.4 and 4.2.0.M2, I am not able to install http bundle
> using this command:
>
> feature:install http.
>
> On every try, I get the following message :
> Error executing command: Error:
>         Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12
>
> In the logs, I get the following stack:
>
> 2018-02-01T06:49:19,250 | WARN  | pool-26-thread-1 | AetherBasedResolver      
>        
> | 4 - org.ops4j.pax.url.mvn - 2.5.3 | Error resolving artifact
> org.apache.felix:org.apache.felix.scr:jar:2.0.12: [Could not transfer
> artifact org.apache.felix:org.apache.felix.scr:jar:2.0.12 from/to central
> (http://repo1.maven.org/maven2/):
> C:\Users\anynamus\.m2\repository\org\apache\felix\org.apache.felix.scr\2.0.12\org.apache.felix.scr-2.0.12.jar.part.lock
> (The system cannot find the path specified)]
> java.io.IOException: Error resolving artifact
> org.apache.felix:org.apache.felix.scr:jar:2.0.12: [Could not transfer
> artifact org.apache.felix:org.apache.felix.scr:jar:2.0.12 from/to central
> (http://repo1.maven.org/maven2/):
> C:\Users\anynamus\.m2\repository\org\apache\felix\org.apache.felix.scr\2.0.12\org.apache.felix.scr-2.0.12.jar.part.lock
> (The system cannot find the path specified)]
>
> Please, note that it works very well with Karaf version 4.0.10
>
> I noticed that there is a difference in the repository declaration between
> version 4.0.10 and the others. The 4.0.10 version I can see this:
>
> enterprise=mvn:org.apache.karaf.features/enterprise/LATEST/xml/features
> spring=mvn:org.apache.karaf.features/spring/LATEST/xml/features
>
> and for the others, I can see this:
>
> enterprise=mvn:org.apache.karaf.features/enterprise/*${karaf.version}*/xml/features
> enterprise-legacy=mvn:org.apache.karaf.features/enterprise-legacy/*${karaf.version}*/xml/features
> spring=mvn:org.apache.karaf.features/spring/*${karaf.version}*/xml/features
> spring-legacy=mvn:org.apache.karaf.features/spring-legacy/*${karaf.version}*/xml/features
>
> I tried to replace *${karaf.version}* with *LATEST* but nothing changed even
> after restarting Karaf.
>
> Does anybody knows why I get this behaviour?
>
> Note : I installed Karaf on my Windows 10 PC and I have administrator access
> to it. 
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to