I need to modify the maven build for a large project 
to skip certain steps during typical development builds (i.e. don't 
build the *-source.jar files).  I've searched for "conditional 
execution" for maven, but haven't found anything.

A dev profile sounds like the intuitive way to do this - but I don't 
know how intuitive maven is.  The docs for profiles show how to set 
different properties (i.e. database connection parameters) for different
 profiles.  I suppose I could set a property and then test if that 
property is set in the maven-source-plugin - executions - execution tag.

Is this the right way to do conditional execution in maven?

What's the "right" way to do this in maven?

Thanks.

            


      

Reply via email to