javafx-cdi-archetype
JavaFX with CDI Archetype
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
Parameter | Default Value | Description |
---|---|---|
groupId | com.mycompany | Maven 'groupId' of your application |
artifactId | myapp | Maven 'artifactId' of your application |
version | 0.1.0-SNAPSHOT | Maven 'version' of your application |
packagePath | com/mycompany/myapp | The base Java package as path |
description | My cool application | A brief description of your application |
hyphenName | my-cool-app | A short name for your application. Only lower case characters 'a'-'z' and '-' are allowed. |
mainName | MyCoolApp | The 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>