-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello. I have a problem using maven for compiling osgi bundles. I have a mud game server project based on osgi. It's startup application and modules use features specific to osgi release 4.3, like generic types and the adapt method of Framework and Bundle classes. Now, the problem: Including the newest org.apache.felix.framework, org.apache.felix.log and org.apache.felix.utils artifacts as dependencies brought up transitive dependencies org.osgi:org.osgi.core and org.osgi:org.osgi.compendium, but it's version is 4.1.0. I have used the dependencyManagement thing to override the version to 4.3.0. The problem was that it didn't help very much. Even that felix had 4.3 api in itself and I had included osgi 4.3 artifacts that actually duplicate api classes, maven fails to compile the project, the compiler says that it can't find symbols in the line that uses osgi 4.3 features like adapt, so it seems like it somehow tried to compile the project against osgi 4.1. Running mvn with -X didn't report 4.1 in the class path, only 4.3 was reported. Also, if I tried to use eclipse to compile the module's classes, they were compiled successfully and then using maven to complete the build procedure by executing the package or install phase was successful. What is the problem? Ahh, and why it says cannot find symbol but it does not say what symbol/etc? Like why does it only display one line from the compiler output? -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJQAyZPAAoJEIm05B02l8E6sn8P+wVUzyRbCkikX36fjNUpC+G6 Q6pL7DHvJ2lb8jmNCAquqhKtYVOQ5lp/2ZoVG5OX9MUKCJvK/vZ+GQ4/EqAL6pS4 hIGu0eT+xYa/5SHoKTO9RWTOoV0Hvj8crw8jII3Seo7V1NdXYTf7xYnkMKkuskGn u0YMUatd9EsVmDJrWt/uUzDuDq+GNJi7iZlo6Q6kKzzNqX2roxvUdFR0qZ/jVuhi 4wESkLJQcYKAzZZSHyidlGcZhTt2twWl2AXg0f1DiU98XY9IltS0zmRH700kQL/5 kU7MFZE3gF7uDfnPyO8SjIJcekLAsvFPONKv0uVeD87joxnn7wTUzU08317YNI1A zN4QGFaE1Yo893wFD3F21mgW6vh6ha+ZJ4HQ5rIUsdGvPvxmUEPucgWywWZW2n0K wbhLI/jSh0o3XJkCQS01BXTVZNgWrStI6m53m0lbW/GwFgI1/KqPfLXJeYWTCjKF iQbQSvd9gaQj3tFFgiX9niM/eeZb5B9dDd83V9u9ndE1LpQVTWItKP1Ya0Tl8PVm Bop9VoOzPICVNG/RKSrNOn/cPGoUldAy+ib/qVHtGJZhaWoAI5WABh+OgzVPbGx+ uYMiPCTKzpC6gc9PeUmye+KJGJ/TjRCDV/Foo6wI7qkCQvULnFIiHbBlyf5y1CPj hArZCKGTGr7LxjSxhbZb =6HEe -----END PGP SIGNATURE-----
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
