This repository hosts several application starters to scaffold webforJ applications.
Navigate to the folder where you want to create your new project, then run the following command. Replace ${webforj-archetype-X}
with the desired archetype name, ${webforj.version}
with the version you want to use, and ${flavor}
with your preferred flavor.
Note: If you don't know which version to use, replace
${webforj.version}
withLATEST
.
mvn -B archetype:generate \
-DarchetypeGroupId=com.webforj \
-DarchetypeArtifactId=${webforj-archetype-X} \
-DarchetypeVersion=${webforj.version} \
-DgroupId=org.example \
-DartifactId=my-webapp \
-Dversion=1.0-SNAPSHOT \
-Dflavor=${flavor}
The flavor
parameter allows you to choose between different webforJ project configurations:
Flavor | Description |
---|---|
webforj-spring | Creates a Spring Boot-based webforJ application with Spring framework integration, dependency injection, and web server capabilities. |
webforj | Creates a standard webforJ application without Spring framework dependencies, suitable for traditional webforJ deployments. |
Archetype Name | Description |
---|---|
webforj-archetype-sidemenu | A starting project with a side menu and navigation in the content area. |
webforj-archetype-tabs | A starting project with a simple tabbed interface. |
webforj-archetype-hello-world | A webforJ "Hello World" starter. Use webforj-archetype-hello-world to deploy as standalone WAR and webforj-archetype-bbj-hello-world to deploy as standalone JAR for applications running on BBjServices. |
webforj-archetype-blank | A blank starter project for webforJ applications. |