Hi Marc,

features can't be upgraded till version 4 of Karaf, as you don't upgrade a
feature but the bundle-set with a feature. So actually this is half true.
Another possibility though, is to combine a Karaf instance (including the
OBR feature) and an OBR server, cave for example. With this scenario you
just install your initial set of bundles through a feature set and do an
update on bundle level through the OBR, this will make sure the bundles are
properly
resolved.

regards, Achim

2015-07-21 16:57 GMT+02:00 Marc Durand <[email protected]>:

> Thanks for the suggestion.  I do use features for core bundles that I do
> not expect to have to change in production.  I chose to use the deploy
> folder for bundles that may need to be updated quickly.  I've read
> somewhere that features cannot be upgraded in Karaf 3.0.x.  Is my
> understanding correct?  Is there another way to quickly update bundles?
>
> Marc
>
> On Tue, Jul 21, 2015 at 10:14 AM, James Carman <[email protected]
> > wrote:
>
>> I would recommend using features for this. If you do, you can make your
>> assembly project dependent (use runtime scope) on the feature and it will
>> pull it into the system repo of your distribution. Then you can include it
>> as a boot feature.
>>
>> On Tue, Jul 21, 2015 at 9:55 AM Marc Durand <[email protected]>
>> wrote:
>>
>>> Thanks you JB and James.  For anyone else trying to do this in the
>>> future, this worked for me:
>>>
>>>          <plugin>
>>>             <groupId>org.apache.maven.plugins</groupId>
>>>             <artifactId>maven-dependency-plugin</artifactId>
>>>             <executions>
>>>                <execution>
>>>                   <id>copy</id>
>>>                   <phase>generate-resources</phase>
>>>                   <goals>
>>>                      <goal>copy</goal>
>>>                   </goals>
>>>                   <configuration>
>>>                      <artifactItems>
>>>                         <artifactItem>
>>>                            <groupId>...</groupId>
>>>                            <artifactId>...</artifactId>
>>>                            <version>...</version>
>>>                         </artifactItem>
>>>                      </artifactItems>
>>>
>>> <outputDirectory>${project.build.directory}/assembly/deploy</outputDirectory>
>>>                   </configuration>
>>>                </execution>
>>>             </executions>
>>>          </plugin>
>>>
>>> Marc
>>>
>>> On Tue, Jul 21, 2015 at 9:00 AM, Jean-Baptiste Onofré <[email protected]>
>>> wrote:
>>>
>>>> It should be possible using dependency plugin execution, in
>>>> generate-resources phase, and after using the resource plugin.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 07/21/2015 02:54 PM, Marc Durand wrote:
>>>>
>>>>> Thanks for your response James.  I would like to get artifacts from a
>>>>> maven repository and include them in the deploy folder.  From what I
>>>>> understand, the resources configuration cannot pull from a maven repo.
>>>>>
>>>>> Marc
>>>>>
>>>>> On Tue, Jul 21, 2015 at 8:10 AM, James Carman
>>>>> <[email protected] <mailto:[email protected]>>
>>>>> wrote:
>>>>>
>>>>>     You can use resources in your project.
>>>>>
>>>>>     On Tue, Jul 21, 2015 at 7:07 AM Marc Durand <[email protected]
>>>>>     <mailto:[email protected]>> wrote:
>>>>>
>>>>>         Hi JB, sorry it wasn't clear.  I want to create a custom
>>>>>         distribution and include some files in the deploy folder.
>>>>>         Thanks,
>>>>>         Marc
>>>>>
>>>>>         On Jul 21, 2015 2:05 AM, "Jean-Baptiste Onofré" <
>>>>> [email protected]
>>>>>         <mailto:[email protected]>> wrote:
>>>>>
>>>>>             Hi Marc,
>>>>>
>>>>>             Not sure to follow you: did you drop jar file in the deploy
>>>>>             folder ?
>>>>>             Or do you want to create a custom distribution including
>>>>>             some file in the deploy folder ?
>>>>>
>>>>>             Regards
>>>>>             JB
>>>>>
>>>>>             On 07/20/2015 06:02 PM, Marc Durand wrote:
>>>>>
>>>>>                 I have a Karaf custom distribution and I am unable to
>>>>>                 figure out how to add
>>>>>                 files into the "deploy" folder which is possible
>>>>>                 according to:
>>>>>
>>>>> http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html
>>>>>
>>>>>                 I have tried to add my bundles as dependancies in the
>>>>>                 pom.xml but there was
>>>>>                 no effect.  How would I go about doing this?
>>>>>
>>>>>                 Thanks in advance,
>>>>>                 Marc
>>>>>
>>>>>
>>>>>
>>>>>                 --
>>>>>                 View this message in context:
>>>>>
>>>>> http://karaf.922171.n3.nabble.com/Karaf-Custom-Distribution-and-the-deploy-folder-tp4041510.html
>>>>>                 Sent from the Karaf - User mailing list archive at
>>>>>                 Nabble.com.
>>>>>
>>>>>
>>>>>             --
>>>>>             Jean-Baptiste Onofré
>>>>>             [email protected] <mailto:[email protected]>
>>>>>             http://blog.nanthrax.net
>>>>>             Talend - http://www.talend.com
>>>>>
>>>>>
>>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> [email protected]
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to