Hi Eike, Thanks for your response, that documentation and code is exactly what I was looking for!
I think my mistake was mixing paradigms of WAR semantics (where everything is contained in one file) and those of OSGi, where there is no hierarchical artifact root that can bootstrap everything (i.e. via WEB-INF/web.xml). How OSGi or Felix operates isn't a mystery, but I guess I had the knowledge of how all these pieces work and was expecting things to work as they used to out of habits. A little like switching from SVN to Git maybe! If you try that plugin, I'd be keen on getting your feedback on it. The configuration window has a deployment tab with panes for "available bundles" and "deployed bundles". I don't really see anything in these, but it may be because I don't have the execution tab configured correctly. Anyway, if you end up loving the plugin and update your docs, I'd love to hear about it! Ok, off to noodle this some more. Thanks again! Brian p.s. for what it's worth to those that may read this later, my rig is IDEA Ultimate 10.5.1, Felix 3.2.2, Maven 2.2.1. On Jul 30, 2011, at 5:45 PM, Eike Kettner wrote: > Hi Brian > > I'm developing wiht IJ and OSGi and I have no special setup. I'm not > sure if I understand you correctly. Are you saying you cannot > compile/build the project or you can't run/debug it? I assumed from your > previous mail that building fails in IJ.. As for building the project, I > have just a very normal setup - I only disabled the osmorc plugin. I'll > attach my settings.jars anyways... maybe it helps... > > For running/debugging, you could use pax:runner with maven and create a > maven run/debug configuration in IJ. This should startup the container > with your project deployed. In this case, you would have to > re-mvn-install on any change in the sources (afaik!). > > Since this is not much desirable, I created some homegrown bootstrapping > app some while ago, because I couldn't find something that would help me > there. All plugins for OSGi I found were targeted at creating manifest > entries, which the m-bundle-p already does really well. If you're > interested, I created some doc at > http://projects.eknet.org/projects/alainn/wiki/BootHowto . I reuse this > in some of my pet projects since and while working fine for me there > might be something better by now as I haven't looked around again. I'd > be curious if someone can give recommendations on this. > > The plugin for idea you mentioned sounds quite good. I didn't know about > it, thanks for bringin it up. If working, this would seem to be really a > good help...I gonna try it out if I find some time. > > Ah, I'm using IDEA Ultimate 10.5 and felix 3.2.2. > > Regards > Eike > > On [Sat, 30.07.2011 15:46], Brian Topping wrote: >> Hi Elke, >> >> Well, I've been trying to get this to work since you sent it and have been >> having absolutely no success. I'm starting to figure I must be missing >> something very important! >> >> Are you actively developing with IJ and OSGi? If so, could I beg you to >> describe your setup please? What version of IJ, which container you are >> running with, and what runtime configuration you are using. >> >> I ran across a plugin for IJ at http://plugins.intellij.net/plugin/?id=5910 >> that seems to have recent development activity, but unfortunately there is >> no documentation, no source code, and the author hasn't been available to >> return emails. It seems like I should also be able to launch Felix as a >> "java application", but that has a different set of problems (like deploying >> bundles). >> >> Can't give up on this, but it's been a good part of the week spent so far >> trying to get something working. Feels like what it was like to get WARs >> set up for IDE debugging in 2002! >> >> Thanks and cheers, Brian >> >> On Jul 29, 2011, at 1:24 PM, Eike Kettner wrote: >> >>> Hi Brian >>> >>> I'm using Idea with osgi and it works quite good for me. But what I did >>> back with Idea 9 was disabling the osmorc plugin because it caused some >>> trouble (like what you're describing) and I wanted to have the >>> mave-bundle-plugin create the osgi headers anyways (and not idea). >>> This might have improved by now, I haven't tried it yet. So I cannot >>> help you with the osgi facets. But I just don't use the osmorc plugin >>> and it works fine so far:) >>> >>> hth >>> regards >>> Eike >>> >>> >>> On [Fri, 29.07.2011 11:03], Brian Topping wrote: >>>> Hi all, >>>> >>>> Apologies if this is totally off-topic. Is anyone here using IntelliJ for >>>> OSGi development? I know it's not a natural fit because Eclipse is built >>>> on OSGi, but I otherwise really enjoy using IJ and want to stick with it. >>>> >>>> The problem I am currently having is getting a build set up to run within >>>> the IDE. It appears that I am not configuring my OSGi facets for the >>>> modules I am working on correctly. Is it true that the facet cannot read >>>> the configuration from the Maven bundle plugin and must be configured >>>> manually? Is this why people move configuration for the plugin outside >>>> the POM? >>>> >>>> If anyone knows of Maven projects online that "load right up" as OSGi >>>> projects in IDEA, link(s) to them would be really kindly appreciated. I >>>> can do the digging from there. Of course, any helpful tips are also >>>> appreciated (such as IRC channels or mailing lists where IJ OSGi users >>>> congregate, etc.) >>>> >>>> Thanks! Brian >>>> _______________________________________________ >>>> general mailing list >>>> [email protected] >>>> http://lists.ops4j.org/mailman/listinfo/general >>>> >>> >>> -- >>> email: [email protected] https://www.eknet.org pgp: 481161A0 >>> >>> _______________________________________________ >>> general mailing list >>> [email protected] >>> http://lists.ops4j.org/mailman/listinfo/general >>> >> >> >> _______________________________________________ >> general mailing list >> [email protected] >> http://lists.ops4j.org/mailman/listinfo/general >> > > -- > email: [email protected] https://www.eknet.org pgp: 481161A0 > <settings.jar>_______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
