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

Attachment: settings.jar
Description: application/java-archive

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to