Re: What are the best practices developing bundles for Sling in Eclipse?

2009-04-21 Thread Bertrand Delacretaz
Hi Mike, On Mon, Apr 20, 2009 at 9:31 PM, Mike Müller wrote: > ...I tried your setup and it doesn't feel (as it seems on a first view) that > unproductive Sure, it kind of works ;-) > ...You haven't to turn off the Java Builder needfully. Let it turned > on, you get all the compiling warnin

AW: What are the best practices developing bundles for Sling in Eclipse?

2009-04-20 Thread Mike Müller
Hi Bertrand > I learned programming back when waiting for a compilation meant going > out for a coffee (or lunch if you still had floppy disks ;-), and > still appreciate some effort before compiling, to try and be a bit > careful...YMMV of course. I come from this ancient long past time as well

Re: AW: What are the best practices developing bundles for Sling in Eclipse?

2009-04-20 Thread Michael Dürig
Mike, I use basically the same setup like Bertrand. However, I don't disable the Java builder. This way I can directly jump to errors and warnings by point and click. The only problem I noticed with this setup recently is that the OSGi foundation bundle sometimes gets into the way. I fixed t

Re: What are the best practices developing bundles for Sling in Eclipse?

2009-04-20 Thread Bertrand Delacretaz
Hi Mike, On Mon, Apr 20, 2009 at 1:38 PM, Mike Müller wrote: > ...If I get you right, that means, that you do not compile in Eclipse. > So you do not get errros and warnings in Eclipse. Does that mean > you use Eclipse only as editor, or do I get things wrong?... Correct, I compile with maven at

AW: What are the best practices developing bundles for Sling in Eclipse?

2009-04-20 Thread Mike Müller
Hi Bertrand If I get you right, that means, that you do not compile in Eclipse. So you do not get errros and warnings in Eclipse. Does that mean you use Eclipse only as editor, or do I get things wrong? (I must admit, that I do not have deep knowledge of maven...) I do hesitate to use maven as cen

Re: What are the best practices developing bundles for Sling in Eclipse?

2009-04-20 Thread Bertrand Delacretaz
Hi Dominik, 2009/4/20 Dominik Süß : > ...The espblogsample may be a > good start for your pom ( but doesn't use the maven-sling-plugin yet)... It does use it in fact, because the espblog's parent pom is the one found in parent/pom.xml, so for example mvn -P autoInstallBundle clean install -Dsli

Re: What are the best practices developing bundles for Sling in Eclipse?

2009-04-20 Thread Dominik Süß
Hi Mike, I currently try several ways of a simple projectsetup myself and for me the way Bertrand sets up his projects works pretty good for me. I additionally use maven-sling-plugin [1] to enrich the install-phase by direct deployment into a running sling instance. The espblogsample may be a good

Re: What are the best practices developing bundles for Sling in Eclipse?

2009-04-20 Thread Bertrand Delacretaz
On Mon, Apr 20, 2009 at 9:45 AM, Mike Müller wrote: > ...How are you guys developing/testing bigger projects for Sling? > (including packaging the jar with the correct manifest) forgot about that one - I just use mvn install, and the mvn-bundle-plugin does the rest. -Bertrand

Re: What are the best practices developing bundles for Sling in Eclipse?

2009-04-20 Thread Bertrand Delacretaz
Hi Mike, On Mon, Apr 20, 2009 at 9:45 AM, Mike Müller wrote: > ...So what are the best pracices to develop an OSGi bundle for Sling in > Eclipse? > How are you guys developing/testing bigger projects for Sling? > (including packaging the jar with the correct manifest) The way I do it might

What are the best practices developing bundles for Sling in Eclipse?

2009-04-20 Thread Mike Müller
Hi I tried different ways to develop OSGi bundles for Sling in Eclipse, but neither was very productive. I tried the Eclipse PDE-stuff, but run into several problems: Eclipse does not recognise the Sling bundles even if they are in the same workspace. I had to install the bundle jars into the OSGi