Hello everybody, I am wondering what are the best practices on setting up development environment and/or maven project when using OSGi and Maven.
We just started a new big project and we are going to use OSGi and Maven (so we are new to both). It is a multimodule maven project, every module is an OSGi bundle. It seems that the only reliable way to build is to do "mvn clean install". This is fine when you do integration build or if you work on just one module, but if you are developing and work on several modules and frequently change public interfaces between them (as it happens in early stage of development) the time it takes to run "clean install" is too much of an interruption. If it takes several minutes to build it then it won't work for me, it breaks my flow. Sometimes you can do with just "mvn install" (without clean), but more often than not it does not work. For example if I have bundles A & B. B depends on A. If I change some files in A and then run "mvn install" on root project then maven won't recompile B, because no files in B have been changed and apparently maven thinks that it should not recompile B if A has changed. I am suspecting that either I overlooked something in maven (or maven bundle plugin) configuration or I need to build it somehow differently. I just don't believe this is the way it is supposed to work, because the productivity loss as opposed to just hitting make from IntelliJ or Eclipse is too big. Please tell me I am doing something stupid! Thank you! -- Dmitry Skavish