|
No solution or even similar issues for somebody ? Ok, after some investigation I found that this problem seems to be caused by two factors: I am thankful for any suggestions I am also hit by this problem. As Benjamin pointed out I also think the problem is on line 415. It should have been if ( config.isPde() && dep.isProvided() && dep.isOsgiBundle() ) i.e, don't add the dependency to the classpath if the dependency is provided AND it is a bundle AND the project is a PDE project. Index: src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseClasspathWriter.java // if the dependency is not provided and the plugin runs in "pde mode", the dependency is
Gopal Oops! Just figured out that the patch doesn't work. needs more work. Any progress on this ? I would try to solve this myself but a "mvn install" on the maven-eclipse-plugin sources keeps stuck at the unit/integration tests with nearly 100 % cpu being used. The build can take 10 minutes or minutes depending of the hardware. If it only were 10 minutes. After 40 minutes I killed the process because my system became totally unresponsive. Seems that the temporary files cause the trouble. Maybe it's an os specific problem, I'll look for that. yes, 40 minutes is too long. You can have a look at surefire reports which store integration tests results to see if something is wrong with your plateform. Is there a resolution for this? It would be nice to not have to download the source and maintain it internally. Does anybody require the current implementation? i.e. is anybody using OSGi bundle dependencies that aren't marked as provided? It seems like most people use provided scope. We are using commons-math as a compile scope dependency, which has been an OSGi bundle since 1.2 (https://issues.apache.org/jira/browse/MATH-180 @Edd Steel: Do you have pde mode enabled in the project where you use the commons-math bundle ? I am working on the same project as Edd Steel (above) - we have pde mode enabled in the project which depends on commons-math. We have got round it by downgrading to 1.1. There appears to be a similar issue with commons-io. I see the same problem. When <pde> is enabled, some bundle dependencies are missing. Maybe plugin's author had reasons for implementing such a skipping Currently there are at least 2 places in src where fixes should be applied: Actually it would be great to have ability to specify whether include osgi bundles or not in plugin configuration options. |
|||||||||||||||||||||||||||||||||||||||||
Mistake: I meant to say [...] jetty versions below 6.1.5 [...].