Hello All,

This is my first message to the list, so I hope I am able to ask my
question correctly.

I migrated a project to OSGi using the eclipse PDE tools. This was
handy enough
because I could immediately see the errors, when making changes to the
MANIFEST.MF,
between plugins and run debug the project under the equinox framework.

I then came to the necessity of building my system, and after asking
around the concesous
was to use Maven. So after reading the Sonatype book, I set out to
mavenize my project.

The first hurdle was on how to set up the projects so that I could
keep working with Eclipse,
I read a post somewhere where  they kept saying (There is no spoon),
refering to the fact
that maven and eclipse don't know of each other's existence.

I can't get my head around on how people develop using maven for the
build and eclipse
for the coding.  I am currently using the m2eclipse plugin, and the
pax tools for my
osgi project, along with the eclipse:eclipse plugin to eclipzise my
maven projects. The problem
is that the classpath is all wrong, I have no debug capabilites, each
time I make a change to either
the code  I have to do mvn install, (which for one of the bundles,the
compile time is ridiculous)
 and then run using pax-provision(off-topic but this takes at least
70 seconds) to run the
project in an equinox container. All this on the command-line, outside
of my development
environement. There must be a better way.

Let me just say, that I have tested both setups for my project, a
workspace with a flat layout for
the modules, and a workspace where there is a root project, and the
modules are
underneath, just like maven likes it. This is not a huge project, but
it is 20+ bundles, and
doing all the work of laying it out is not the easiest thing in the
world.

So hoping that some soul in the list is using eclipse with maven to
build osgi
bunldes (Not eclipse plugins), I have several questions.

eclipse:eclipse -
In the website it states that

"Linked Resources
In order for the Eclipse PDE system to build or deploy an Eclipse PDE
project, it requires that dependent jars exist somewhere within the
project itself.

By default, the eclipse:eclipse goal sets up the Eclipse classpath
such that the project depends on jars in the external local maven
repository.

When PDE mode is enabled, dependencies are configured as Eclipse
linked resources instead. Eclipse linked resources work like symbolic
links within

the Eclipse IDE. These linked resources appear in the root directory
of your PDE project, and link the jars within your repository into the
root of your project as required by Eclipse."

But this is not the case for me. "Some" of the libraries do get linked
but not all (specially those comming from the the sprinsource repo).
If this worked properly, I would at least have solved the classpath
problem.



So how do you make it work, is there any special setup needed in my
settings.xml, am I using the wrong

repositories. Does this just doesn't work?



How do you handle transitive dependencies?



Manifest:-

Using the manifest plugin, to generate the manifest with the (maven-
bundle-plugin) is ok but sometime it adds

erroneous new lines which causes PDE to cry. And of course the path to
the jars is wrong, because anything

listed under Bundle-Classpath doesn't exist in the classpath.



So to summarize, I would like if someone can help me out in wiring all
this up, I know that as per the rules of posting,

when it is urgent, it urgent only for me, but this is really urgent.



Best Regards,

Fotis

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to