Kerem, I don't understand what do you mean by "copy-dependencies tries
to find the Require-Bundle dependencies which I do not need."
Take a look at
https://github.com/objectledge/maven-extensions/blob/master/connectors/modules/ckpackager/plugin/META-INF/MANIFEST.MF
https://github.com/objectledge/maven-extensions/blob/master/connectors/modules/ckpackager/plugin/pom.xml
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:
<execution>
<id>copy-dependencies</id>
<phase>validate</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
Then I tried to run mvn validate after checking out the project
sources from SVN.
But I cannot succeed to copy bundle-classpath dependencies from repo
to local lib folder.
copy-dependencies tries to find the Require-Bundle dependencies which
I do not need.
Do you have a solution?
2011/7/8 Rafał Krzewski <[email protected]
<mailto:[email protected]>>
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?
<execution>
<id>copy-dependencies</id>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
Thanks,
Lembas
_______________________________________________
m2e-users mailing list
[email protected] <mailto:[email protected]>
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
[email protected] <mailto:[email protected]>
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users