Skip to content

A Maven archetype for generating a basic JavaFX REST client-server starter project.

Notifications You must be signed in to change notification settings

s17t/javafx-rest-archetype

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

JavaFX REST Archetype

A Maven archetype for generating a basic JavaFX REST client-server starter project.

Usage

 mvn archetype:generate -DarchetypeGroupId=com.zenjava -DarchetypeArtifactId=javafx-rest-archetype -DarchetypeVersion=1.0

This will generate a multi-module Maven project with three modules:

  • client module: a simple JavaFX client that makes REST calls onto the server
  • server module: a simple SpringMVC REST server
  • common module: common classes shared between client and server (such as data beans)

After creating the project you can build it using Maven commands. From the generated base project directory type:

mvn clean install

Run the server from the base directory of the server module using:

mvn jetty:run

Run the client from the base directory of the client module using:

mvn jfx:run

Development and Deployment

This is just a quick starter. You most likely will want to open the base level POM in your favorite IDE and develop your project to your needs.

To build a deployment WAR for your server, run the following from the base project directory:

mvn clean install

And then copy the WAR file from the target directory and deploy this to your web server (e.g. Tomcat).

To build a deployment bundle for your client, run one of the JavaFX distribution mechanisms from the client module base directory, such as:

mvn clean jfx:build-jar

Which will build an executable JAR that you can double click to launch your client application. Alternatively see the JavaFX Maven Plugin for alternate ways to deploy, including Webstart and native installers:

https://github.com/zonski/javafx-maven-plugin/wiki

Licence

The JavaFX Basic Archetype provides a Maven archetype for generating a basic JavaFX starter project.

Copyright (C) 2012 Daniel Zwolenski

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses.

About

A Maven archetype for generating a basic JavaFX REST client-server starter project.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.0%
  • CSS 2.0%