Ah, OK. I've re-read your message and not I get it. Sorry.
You are using copy-depdendencies and I am using copy goal, that's a
difference.
copy-dependencies is picking up ALL dependencies of your project,
both OSGi and Maven ones.
I think you can prevent copying of OSGi dependencies by adding the
following part to maven-dependency-plugin configuration:
<excludeGroupIds>p2.osgi.bundle</excludeGroupIds>
I have a limited knowledge of Tycho, so I don't know if it will
actually work :) Give it a try and see.
cheers,
Rafał
On 07/08/2011 04:38 PM, Rafał Krzewski wrote:
Kerem, I don't understand what do you mean by "copy-dependencies
tries to find the Require-Bundle dependencies which I do not
need."
At this point the project builds fine under commandline Maven, but
I am getting incomplete classpath errors in Eclipse.
There's a problem on project initial checkout, because m2e JDT
configurator does not "see" the jars copied into the workspace by
maven-dependency-plugin. This can be fixed by refreshing the
project and running Maven > Update project configuration again.
But there's a another more serious issue. When I have the project
that produces one of the required jars in my workspace,
maven-dependency-plugin execution fails because it is trying to
copy target/classes directory in the said project as if it was a
file. I don't know a workaround for that at this point.
I'll going to try to write a connector that fixes both of these
problems.
regards,
Rafał
On 07/08/2011 04:26 PM, Kerem Onal wrote:
Thanks Ralph. I need to know more if you succeed what I
want.
m2e does not support maven-dependency-plugin. So I put the
copy-dependencies into validate phase:
I think you are
right, I'm doing the same thing with Eclipse plugins
that need dependencies that are not OSGi bundles, and
I've learned the technique from m2e-core :)
Thing is that maven-dependency-plugin is not supported
by m2e out of the box. It is on my radar for the
further work on m2e connectors, after I publish the
first batch.
regards,
Rafał
On 07/08/2011 11:41 AM, Kerem Onal wrote:
Hi,
I wonder if I use m2e in correct manner.
I am developing an Eclipse RCP application
with ~10 plugins so I use tycho.
I think the correct usage is that I check
out projects from SVN then "update
dependencies" via m2e when setting up a fresh
development environment. Am I right?
We have two types of
dependencies: bundle-classpath
and require-bundle.
For the "update dependencies" phase I need
m2e to put my bundle-classpath dependencies to
my local lib folder. Else my projects will not
compile. For this purpose I should use the
pom.xml below to achive this. Am I right?