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

Roy Golan rgolan at redhat.com
Wed Jul 3 12:02:38 UTC 2013


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 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20130703/8fae5c92/attachment-0001.html>


More information about the Devel mailing list