I have tried <excludeGroupIds>p2.osgi.bundle</excludeGroupIds> but does not
work.
It gives me the error below. (I have also
tried <excludeGroupIds>Tycho.KSM_SOS</excludeGroupIds> it does not work
either.)

*Could not resolve dependencies for project
Tycho.KSM_SOS:SOSPlugin:eclipse-plugin:1.0.0-SNAPSHOT: *
*The following artifacts could not be resolved:
Tycho.KSM_SOS:GLToolkit:jar:1.0.0-SNAPSHOT,
Tycho.KSM_SOS:ReportViewer:jar:1.0.0-SNAPSHOT: *
*Could not find artifact Tycho.KSM_SOS:GLToolkit:jar:1.0.0-SNAPSHOT in
repo-public (http://os229:8081/nexus/content/groups/public)*

It still searches for OSGI dependencies. Any ideas?



2011/7/8 Rafał Krzewski <[email protected]>

> **
> 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."
>
> 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]>
>
>>  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 
>> [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 
> [email protected]https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>
>
> _______________________________________________
> m2e-users mailing 
> [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

Reply via email to