Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread Jean-Baptiste Onofré
As said in another e-mail, I don't think the problem is about the download by itself. It's more the caching of the artifact in the Karaf folder. I would dig on a antivirus scanner or any other process that lock the folders. Regards JB On 02/02/2018 22:15, anynamus wrote: Hi François, This

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread Jean-Baptiste Onofré
Hi, don't you have a process running on your machine (like antivirus scanner), which lock the folders ? I already saw that on Windows machine, I was hugely impacting the performance and speed on download. Regards JB On 02/02/2018 18:52, anynamus wrote: Hi Jean-Baptiste, Actually, you were

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread François Papon
Sorry I made a mistake on the URL it should be : http://repo1.maven.apache.org/maven2 Could you try again with this one on the settings.xml ? François Le 3 févr. 2018 1:15 AM, anynamus a écrit : > > Hi François, > > This configuration was not set because we use an internal instance of > Arti

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread anynamus
Hi François, This configuration was not set because we use an internal instance of Artifactory. I configured my settings.xml to bypass Artifactory and configured the mirror you specified and I got almost the same error: 2018-02-02T16:08:47,582 | WARN | pool-26-thread-4 | AetherBasedResolver

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread Francois Papon
Ok, so what about your $HOME/.m2/settings.xml ?       US    US Central    http://repo.maven.apache.org/maven2    central    Which mirror you are using ? François Le 02/02/2018 à 22:01, anynamus a écrit : > Hi, > > I get the exact same issue when trying this one too: > > featu

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread anynamus
Hi, I get the exact same issue when trying this one too: feature:install war Note: I succeeded to install the bundle with this command: bundle:install http://repo1.maven.org/maven2/org/apache/felix/org.apache.felix.scr/2.0.12/org.apache.felix.scr-2.0.12.jar But I am still unable to install th

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread anynamus
Hi Jean-Baptiste, Actually, you were wright: there is an issue. I have read/write access to the target folder "C:\Users\anynamus\.m2\repository\org\apache\felix\" and I can manually create, rename or delete any folder but, when I try to create specifically a folder named *org.apache.felix.scr* in

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread Francois Papon
Hi, It's only append when installing http feature or with others features ? Could you try to download one ? François Le 02/02/2018 à 21:35, anynamus a écrit : > Hi Jean-Baptiste, > > This path exists and, since I am administrator of my PC, I have read/write > access to it. > > Note: I also tri

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread anynamus
Hi Jean-Baptiste, This path exists and, since I am administrator of my PC, I have read/write access to it. Note: I also tried on a Windows 7 machine as well as on Ubuntu running on Windows (with sudo access) and I get exactly the same error. Regards PES -- Sent from: http://karaf.922171.n3.n

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread Jean-Baptiste Onofré
Can you check some issue on the filesystem: 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)] part.lock is part of the download. Regards JB On 02/02/2018 03:40 PM, anynamus wrote:

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread anynamus
Hi, As already expressed in my original post: > Please, note that it works very well with Karaf version 4.0.10 So I doubt that my internet connection is in cause. Thanks -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread anynamus
Hi, As already expressed in my original post: > Please, note that it works very well with Karaf version 4.0.10 Thanks -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread Jean-Baptiste Onofré
Hi, Maybe you access Internet via a proxy ? As these bundles are optional, they are not part of the system folder and downloaded when you install the feature. Regards JB On 02/02/2018 12:39 PM, anynamus wrote: > Hello. > > I am new to the OSGi architecture and to Karaf. So I am into exploration

Re: [karaf 4.2] Config files, karaf assembly, feature.xml etc

2018-02-02 Thread Francois Papon
Hi Nino, For me, this work in assembly project structure : putting configuration files in etc assembly source folder : *assembly/src/main/resources/etc* all files under this directory will be include by the karaf-maven-plugin. François Le 02/02/2018 à 14:11, nino martinez wael a écrit : > Hi

Re: Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread Francois Papon
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

Error downloading mvn:org.apache.felix/org.apache.felix.scr/2.0.12

2018-02-02 Thread anynamus
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: Erro

Re: [karaf 4.2] Config files, karaf assembly, feature.xml etc

2018-02-02 Thread Francois Papon
For approach 2, it's explain in the documentation : http://karaf.apache.org/manual/latest/#_maven_assembly under the Minimal Dirstribution Example : src/main/resources false **/*

Re: [karaf 4.2] Config files, karaf assembly, feature.xml etc

2018-02-02 Thread Jean-Baptiste Onofré
Agree with François ;) I spent time on the user guide to describe this. Now, we are working on a way better dev guide. Regards JB On 02/02/2018 12:03 PM, Francois Papon wrote: > For approach 2, it's explain in the documentation : > http://karaf.apache.org/manual/latest/#_maven_assembly > > und

Re: [karaf 4.2] Config files, karaf assembly, feature.xml etc

2018-02-02 Thread nino martinez wael
Hi Jean I cannot share the project.. But I can give you some fragments: Project structure (assembly) https://imgur.com/a/c8RUG C:. └───main ├───distribution │ └───text │ └───etc │ | -> dk.netdesign.dialer.cfg this is the config file I want in etc fold

Re: [karaf 4.2] Config files, karaf assembly, feature.xml etc

2018-02-02 Thread Jean-Baptiste Onofré
For a custom distro, you have two approaches: - using the resource approach, where you have cfg file in a project resource folder. For this you have to use the resources or assembly plugins for instance (as execution step). - using in features.xml used for the assembly, using the karaf plugin If

Re: [karaf 4.2] Config files, karaf assembly, feature.xml etc

2018-02-02 Thread nino martinez wael
Yeah so I must be doing something wrong, I know that.. And of course the maven properties are parsed so project.version are replaced with the correct stuff.. What about Approach 2 ? Are there any special steps needed? When putting the config files into the etc folder for a custom distribtion? O

Re: [karaf 4.2] Config files, karaf assembly, feature.xml etc

2018-02-02 Thread Jean-Baptiste Onofré
Hi, I confirm it works as it's what we are using in Decanter or Cellar, or even Karaf itself. 1. configfile: https://github.com/jbonofre/karaf-decanter/blob/master/assembly/src/main/feature/feature.xml#L48 Here the files will end into the etc folder when you feature is installed. Of course, th

[karaf 4.2] Config files, karaf assembly, feature.xml etc

2018-02-02 Thread nino martinez wael
Hi fellow karaflings I want to either prepackage or install my configuration files into the etc folder of karaf when my feature installs. I've tried a couple of different approaches, which all fails :( They fail in the way that the configuration gets bound to the bundles mvn coordinates and are