[Engine-devel] build a single maven project with make

Roy Golan rgolan at redhat.com
Thu Jul 11 11:49:49 UTC 2013


On 07/03/2013 03:02 PM, Roy Golan wrote:
> For those of us of dream of clean install a single project like maven 
> please note that
> mvn has a flag which enables you to build a specific artifact even if 
> your not at that directory
>
>   mvn -pl groupID:artifactId
>
> so say you modified a single class in vdsbroker do this:
>
> /make clean install-dev PREFIX=$HOME/ovirt-engine 
> DEV_EXTRA_BUILD_FLAGS="-pl org.ovirt.engine.core:vdsbroker" 
> EXTRA_BUILD_FLAGS="-pl org.ovirt.engine.core:vdsbroker"/
>
> note: the usage of DEV_EXTRA_BUILD_FLAGS and EXTRA_BUILD_FLAGS is not 
> a mistake. the "clean" target uses EXTRA_BUILD_FLAGS - please review
> http://gerrit.ovirt.org/16395 to rectify that.
>
now its working cleaner. a one liner to re-build the frontend and the 
server ear which its dependent on:
/    make clean install-dev PREFIX=$HOME/ovirt-engine 
EXTRA_BUILD_FLAGS="-pl org.ovirt.engine.ui:frontend-all -amd"/
> now make the ear:
>
> /make clean install-dev PREFIX=$HOME/ovirt-engine 
> DEV_EXTRA_BUILD_FLAGS="-pl org.ovirt.engine:engine-server-ear" 
> EXTRA_BUILD_FLAGS="-pl org.ovirt.engine:engine-server-ear"/
>
>
> now your updated artifact is in place.
>
> Thanks,
> Roy

>
>
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20130711/9211a479/attachment-0001.html>


More information about the Devel mailing list