maven 3 - How to skip building of the pom in multi-module project -
i'm trying optimize build process (in development) in term of time build whole tree of maven multi-module project. of pom aggregation of sources/libraries rarelly (and typically) never change. specific sub-questions are
is possible somehow configure maven not build pom if there no changes in sources specified in pom:project/build/sourcedirectory attribute?
or possible (at least) conditionally disable maven-bundle-plugin? - takes of time.
google not find relevant q#1. typical solution not work #2 - when try specify 'executions' maven-bundle-plugin (like this)
<plugin> <groupid>org.apache.felix</groupid> <artifactid>maven-bundle-plugin</artifactid> <version>${maven-bundle-plugin.version}</version> <extensions>true</extensions> <executions> <execution> <id>osgi-bundle</id> <phase>bundle</phase> <goals> <goal>bundle</goal> </goals> i receive error in output
[bundle:bundle] bundle artifact-id:bundle-id:bundle:0.1.0-snapshot : jar empty: dot error(s) found in bundle configuration any appreciated. i'm aware following:
* disable maven plugin defined in parent pom (maven-bundle-plugin can't work 'executions' tag)
* skip execution of maven plugin if file not exist (maven-bundle-plugin not have skip confiuration option)
* how skip lifecycle phase in multi maven module (the same previous)
* if entire maven-bundle-plugin moved profile, maven not recognize packaging=bundle.
finally have admit (c) eugene kuleshov - "maven don't track sources/changes, full build."
but, returning java after 5+ on .net , 5+ years erlier on c++, looks weird me such common feature incremental build not support used tool having history of 10+ years. not spend time on waiting rebuild each , every unchanged module in multi-module project , decided make customized version of maven 3.0.4 :)
feel free grab here http://code.google.com/p/maven-onchange-activator/, try , report issues.
Comments
Post a Comment