code54 / buildversion-plugin

A maven plugin that extracts current build information from git projects
34 stars 9 forks source link

Build fails when there is no git repo #10

Open ojawel opened 10 years ago

ojawel commented 10 years ago

Hi it would be nice if the plugin does not fail when there is no git repo to be found. [ERROR] Failed to execute goal com.code54.mojo:buildversion-plugin:1.0.3:set-properties (default) on project search-package: Execution default of goal com.code54.mojo:buildversion-plugin:1.0.3:set-properties failed: Execution of Git command failed: fatal: Not a git repository (or any parent up to mount point /mnt/data) 11-Jul-2014 16:43:50 [ERROR] Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). 11-Jul-2014 16:43:50 [ERROR] -> [Help 1]

That would be nice when using it with build servers which are sharing output and only need to run maven for a specific task eg deployment

dobladez commented 10 years ago

Thanks. So, may be we could add a new failOnError property to the plugin?

I've not used maven for a long time, so not sure when/if I'll find the time to add this (even if minor) change :-(

ojawel commented 10 years ago

That would be great :)

On Fri, Jul 11, 2014 at 5:33 PM, Fernando Dobladez <notifications@github.com

wrote:

Thanks. So, may be we could add a new failOnError property to the plugin?

I've not used maven for a long time, so not sure when/if I'll find the time to add this (even if minor) change :-(

— Reply to this email directly or view it on GitHub https://github.com/code54/buildversion-plugin/issues/10#issuecomment-48745467 .

Joel Tomasoa | Leliestraat 4D | 1621HL Hoorn