Cute :-) I was thinking about this as well. I'm dealing with people that don't know what maven is (or spring or svn or git ...), so I'm looking for what options I can present.
On Tue, Sep 30, 2014 at 2:38 AM, Stephen Connolly < [email protected]> 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 <[email protected]> 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 <[email protected]> > 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 > > > > > >
