At the moment, developers work on multiple OSGi Bundles which also use each other via OSGI import/export. Eclipse is used for developing and testing.
Now, we are going to set up a CI-server (Jenkins) which should build all the osgi bundles (from the repo) by using Maven. Consequently, only in the CI-server is a need for maven. That also means, developers neither see nor care about a pom.xml when develop on their workstations because they dont get in touch with maven.
My first Question would be, if it is possible to to so. When developer change imports and exports on the Manifest, maven has to know that to make these dependencies available for the compiler. For example maven wants to build BundleB which imports package a from BundleA. Normally, a pom.xml would include a maven-dependency on Bundle A (which has to be deployed to the local maven repo before). But there is no entry in the pom.xml when developers only change their MANIFEST.MF in their bundles. Is it possible that maven determines correct maven-dependencies from parsing the MANIFESTs ? Or another solution: tell maven a classpath with all pre-built jars?
My second question would be if it is recommended to use maven only on a ci-server but not at the developers.
Regards