Giter Club home page Giter Club logo

javafx-maven-archetypes's Introduction

Maven Archetypes for JavaFX

Maven archetypes for creating different types of JavaFX application.

Maven Central BSD-3 license

The project is a multi-module Maven project. Each module contains an archetype for creating a JavaFX application.

All projects created via the archetype(s) make use of the JavaFX Maven plugin for compiling and running the JavaFX application.

Prerequisites

  • JDK 11
  • Maven 3

Install archetype locally

To install all the archetypes in your local repository execute the following commands:

git clone https://github.com/openjfx/javafx-maven-archetypes.git
cd javafx-maven-archetypes
mvn clean install

This will install all the javafx archetypes in your local repository.

If you wish to install just one of the archetypes, you can add the name of the project by using -pl:

mvn clean install -pl javafx-archetype-simple

For more information on how to create a project from a local repository, please refer to individual module's README.

javafx-maven-archetypes's People

Contributors

abhinayagarwal avatar andydoddington avatar errael avatar geertjanw avatar gluon-bot avatar jperedadnr avatar tiainen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

javafx-maven-archetypes's Issues

add nbactions

Would be nice to add nbactions.xml, so clicking the run button actually starts the application in NetBeans. Something like this:

<?xml version="1.0" encoding="UTF-8"?>
<actions>
    <action>
        <actionName>run</actionName>
        <displayName>Run</displayName>
        <goals>
            <goal>clean</goal>
            <goal>javafx:run</goal>
        </goals>
    </action>
</actions>

Module is named $package

But it should be named probably based on $artifactId
Also mainClass in the pom should use the module name.

javafx-archetype-simple fails to compile

According to the "Getting Started with JavaFX" documentation, I can use maven to generate a simple JavaFX project with the following command:

mvn archetype:generate \
    -DarchetypeGroupId=org.openjfx \
    -DarchetypeArtifactId=javafx-archetype-simple \
    -DarchetypeVersion=0.0.3 \
    -DgroupId=org.openjfx \
    -DartifactId=sample \
    -Dversion=1.0.0 \
    -Djavafx-version=17

While this command does appear to generate some project files, the resulting project does not compile. Here is the output from the mvn compile command:

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project sample: Compilation failure: Compilation failure:
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[3,26] package javafx.application does not exist
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[4,20] package javafx.scene does not exist
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[5,28] package javafx.scene.control does not exist
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[6,27] package javafx.scene.layout does not exist
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[7,20] package javafx.stage does not exist
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[13,26] cannot find symbol
[ERROR]   symbol: class Application
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[16,23] cannot find symbol
[ERROR]   symbol:   class Stage
[ERROR]   location: class org.openjfx.App
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[15,5] method does not override or implement a method from a supertype
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[20,25] cannot find symbol
[ERROR]   symbol:   class Label
[ERROR]   location: class org.openjfx.App
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[21,25] cannot find symbol
[ERROR]   symbol:   class Scene
[ERROR]   location: class org.openjfx.App
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[21,35] cannot find symbol
[ERROR]   symbol:   class StackPane
[ERROR]   location: class org.openjfx.App
[ERROR] /C:/Users/nobodyman/develop/scratch/sample/src/main/java/org/openjfx/App.java:[27,9] cannot find symbol
[ERROR]   symbol:   method launch()
[ERROR]   location: class org.openjfx.App
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Some environment details:
OS: Windows 10 Home 19043.1237
Maven: v3.8.2
JDK: Amazon Coretto jdk17.0.0_35

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.