Page MenuHomePhabricator

Need mvn build mode that does not build gui
Closed, ResolvedPublic

Description

Right now mvn build also builds GUI, which is great for final package, but sometimes we need a quick build that just builds Java files. There should be some option to skip building GUI in this case.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Turns out -pl \!gui,\!dist works, but I wonder if possible to make some kind of profile that does the same?

We could define the GUI module in a profile and disable that profile as needed (-P !gui). Some ideas: https://stackoverflow.com/questions/13381179/using-profiles-to-control-which-maven-modules-are-built

We could also use mvn -pl -gui which does not require any changes

Change 523905 had a related patch set uploaded (by DCausse; owner: DCausse):
[wikidata/query/rdf@master] Move the gui module to a gui profile

https://gerrit.wikimedia.org/r/523905

Change 523905 merged by jenkins-bot:
[wikidata/query/rdf@master] Move the gui module to a gui profile

https://gerrit.wikimedia.org/r/523905