/javafx-cdi-archetype

JavaFX with CDI Project Maven Archetype

Primary LanguageJavaGNU Lesser General Public License v3.0LGPL-3.0

javafx-cdi-archetype

JavaFX with CDI Archetype

Build Maven Central LGPLv3 License Java Development Kit 11

Use this archetype to bootstrap your own project based on the javafx-cdi-example.

⚠️ There is currently a bug with the .gitignore during archetype generation. You need to manually copy the provided to the root of the newly generated project.

Generate your project

Mandatory Parameters

mvn archetype:generate \
     -DarchetypeGroupId=org.fuin.archetypes \
     -DarchetypeArtifactId=javafx-cdi-archetype \
     -DarchetypeVersion=0.1.0

All Parameters

mvn archetype:generate \
    -DarchetypeGroupId=org.fuin.archetypes \
    -DarchetypeArtifactId=javafx-cdi-archetype \
    -DarchetypeVersion=0.1.0 \
    -DgroupId="com.mycompany" \
    -DartifactId="myapp" \
    -Dversion="0.1.0-SNAPSHOT" \
    -DpkgPath="com/mycompany/myapp" \
    -Ddescription="My cool application" \
    -DhyphenName="my-cool-app" \
    -DmainName="MyCoolApp"

Explanation

ParameterDefault ValueDescription
groupIdcom.mycompanyMaven 'groupId' of your application
artifactIdmyappMaven 'artifactId' of your application
version0.1.0-SNAPSHOTMaven 'version' of your application
packagePathcom/mycompany/myappThe base Java package as path
descriptionMy cool applicationA brief description of your application
hyphenNamemy-cool-appA short name for your application. Only lower case characters 'a'-'z' and '-' are allowed.
mainNameMyCoolAppThe main class name of your application. Must be a valid Java class name. Most likely the 'hyphenName' as Camel Case.

Snapshots

Snapshots of this archetype can be found in the OSS Sonatype Snapshots Repository.

Add the following to your .m2/settings.xml to enable snapshots in your Maven build:

<repository>
    <id>sonatype.oss.snapshots</id>
    <name>Sonatype OSS Snapshot Repository</name>
    <url>http://oss.sonatype.org/content/repositories/snapshots</url>
    <releases>
        <enabled>false</enabled>
    </releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>