java - Maven project for both WAR and standalone server/client -


i have pom-based java project. contains number of servlets deployment in war. however, in addition this, have classes launch application standalone using embedded servlet , database environments (for turnkey development environment). additionally, there command-line client application.

i have ability build project both war , 2 separate executable jars (one server, 1 client). i'm not concerned jars/war containing unnecessary code or deps- want 3 work.

what's "correct" way maven?

multiple projects way this. put common code in first project along standalone support. make second war packaging depends on first.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -