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

This is a multi-part message in MIME format. --------------020804090700040200030704 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------020804090700040200030704 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> For those of us of dream of clean install a single project like maven please note that<br> mvn has a flag which enables you to build a specific artifact even if your not at that directory<br> <br> mvn -pl groupID:artifactId<br> <br> so say you modified a single class in vdsbroker do this:<br> <br> <i>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"</i><br> <br> 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 <br> <a class="moz-txt-link-freetext" href="http://gerrit.ovirt.org/16395">http://gerrit.ovirt.org/16395</a> to rectify that.<br> <br> now make the ear:<br> <br> <i>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"</i><br> <br> <br> now your updated artifact is in place.<br> <br> Thanks,<br> Roy<br> </body> </html> --------------020804090700040200030704--

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@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

This is a multi-part message in MIME format. --------------000001020805000907070506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
--------------000001020805000907070506 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#FFFFFF"> <div class="moz-cite-prefix">On 07/03/2013 03:02 PM, Roy Golan wrote:<br> </div> <blockquote cite="mid:51D412DE.8000406@redhat.com" type="cite"> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> For those of us of dream of clean install a single project like maven please note that<br> mvn has a flag which enables you to build a specific artifact even if your not at that directory<br> <br> mvn -pl groupID:artifactId<br> <br> so say you modified a single class in vdsbroker do this:<br> <br> <i>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"</i><br> <br> 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 <br> <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://gerrit.ovirt.org/16395">http://gerrit.ovirt.org/16395</a> to rectify that.<br> <br> </blockquote> now its working cleaner. a one liner to re-build the frontend and the server ear which its dependent on:<br> <i> make clean install-dev PREFIX=$HOME/ovirt-engine EXTRA_BUILD_FLAGS="-pl org.ovirt.engine.ui:frontend-all -amd"</i><br> <blockquote cite="mid:51D412DE.8000406@redhat.com" type="cite"> now make the ear:<br> <br> <i>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"</i><br> <br> <br> now your updated artifact is in place.<br> <br> Thanks,<br> Roy<br> </blockquote> <br> <blockquote cite="mid:51D412DE.8000406@redhat.com" type="cite"> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Engine-devel mailing list <a class="moz-txt-link-abbreviated" href="mailto:Engine-devel@ovirt.org">Engine-devel@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/engine-devel">http://lists.ovirt.org/mailman/listinfo/engine-devel</a> </pre> </blockquote> <br> </body> </html> --------------000001020805000907070506--
participants (2)
-
Maor Lipchuk
-
Roy Golan