[Engine-devel] build a single maven project with make
Maor Lipchuk
mlipchuk at redhat.com
Wed Jul 3 12:54:22 UTC 2013
Nice one!!!!
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 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
>
More information about the Engine-devel
mailing list