Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ABD0317E70 for ; Tue, 30 Sep 2014 09:55:44 +0000 (UTC) Received: (qmail 653 invoked by uid 500); 30 Sep 2014 09:55:43 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 572 invoked by uid 500); 30 Sep 2014 09:55:43 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 560 invoked by uid 99); 30 Sep 2014 09:55:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2014 09:55:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of t.cservenak@gmail.com designates 209.85.217.175 as permitted sender) Received: from [209.85.217.175] (HELO mail-lb0-f175.google.com) (209.85.217.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2014 09:55:38 +0000 Received: by mail-lb0-f175.google.com with SMTP id u10so3976571lbd.6 for ; Tue, 30 Sep 2014 02:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=uoC9nrXC8QeTpNcmfwSDc2LfbIqUZj1JIo4zbeYyK9Y=; b=UG3N3MIFAMgwm8CWHbOsAk3R3dBc7JUCp2uOO2ya/OT/ukPxPfiDvdB5G5dtSUpBbl pd8Nf+Zp3yfovDVyAH3oKrD6aUdNrV7rK74+9KvPYIm+DLGrlfxOjeBxSTK4pCsTF9oR It4aMUpJGDUx64C+uAfks6JTCF9Du5VUUQBfALntCfJFuqfR5VRdLqCaZkvM74M7qNQw hg78oeHoQ5jRK/pJaAKtR0N0J01UuV6syg0gOaUMxw5CBH6DvWvaY48JJ/0cEmEVXvhr sOhu+trn2gX8ALxtWJhBq7vE4JcMHjek93p6uK7cO06b4ooWgjqafQnf0VJMHtfbMMpc tKMw== X-Received: by 10.112.25.65 with SMTP id a1mr43673749lbg.85.1412070917100; Tue, 30 Sep 2014 02:55:17 -0700 (PDT) MIME-Version: 1.0 Sender: t.cservenak@gmail.com Received: by 10.112.76.41 with HTTP; Tue, 30 Sep 2014 02:54:57 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?B?VGFtw6FzIENzZXJ2ZW7DoWs=?= Date: Tue, 30 Sep 2014 11:54:57 +0200 X-Google-Sender-Auth: qrjbnleiW5zCNNQrbG_VEumZZ3s Message-ID: Subject: Re: Can I alter packaging with Maven? To: Maven Users List Content-Type: multipart/alternative; boundary=001a11c3e920695b860504456109 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3e920695b860504456109 Content-Type: text/plain; charset=UTF-8 ... just don't end up as maj. Kong https://www.youtube.com/watch?v=JlSQAZEp3PA On Tue, Sep 30, 2014 at 11:38 AM, Stephen Connolly < stephen.alan.connolly@gmail.com> wrote: > In general, if you are building different things, you should have multiple > modules. > > Do not fear having more than one module. > > The common code goes in a common module > > Then the other two modules build the desktop app and the web app with a > dependency on the common module. > > To paraphrase a movie title: > > > Dr. Mavenlove or: How I Learned to Stop Worrying and Love the Modules > > modules are your friend > > On 30 September 2014 10:33, Anders Hammar wrote: > > > It is possible. > > One way is to use a generic packaging plugin like the > > maven-assembly-plugin. If that doesn't fit your desires, or you want a > > "nicer solution", writting your own plugin is a different way. For > example, > > have a look at the Android Maven Plugin which creates android archives. > > > > That being said, the web app you're talking about should be a standard > war > > projekt (which uses the maven-war-plugin to produce the war archive). The > > desktop app could possibly be a standard jar project. So I don't think > you > > need any special packaging plugins, but your question is rather how to > > handle these two flavors of your application. Something that you should > try > > to solve, as it will significantly simplify things, is to have only one > > package/archive. Have a look at how, for example, the Jenkins projekt has > > solved this. They produce a war file that is possible to deploy to a web > > container (web app) as well as start from command line (application). > When > > looking at that topic you're in pure Java land and shouldn't worry about > > Maven. > > If you need different config files it could be tricky to solve this way > > though. > > > > /Anders > > > > On Mon, Sep 29, 2014 at 7:17 PM, Les Hartzman > wrote: > > > > > Hi, > > > > > > I'm a fairly basic maven user and would like to know if it is possible > to > > > have maven support multiple type of packaging or if I need to look at a > > > different mechanism. > > > > > > What I want to do is to build a JavaFX application that depending on > how > > it > > > is packaged is either a desktop app or a web app. > > > > > > There would potentially be some different configuration files that > would > > > pertain to the different packaging options. > > > > > > Can I use maven in this way or does someone know of another means of > > > accomplishing the same thing? > > > > > > Thanks. > > > > > > Les > > > > > > --001a11c3e920695b860504456109--