Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
cb5b2572
Commit
cb5b2572
authored
1 year ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
Enhanced documentation
parent
96677a91
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ws/Archetypes/mi-maven-archetype-javafxml/README.md
+21
-17
21 additions, 17 deletions
ws/Archetypes/mi-maven-archetype-javafxml/README.md
with
21 additions
and
17 deletions
ws/Archetypes/mi-maven-archetype-javafxml/README.md
+
21
−
17
View file @
cb5b2572
# Modified Maven archetype
# Modified
JavaFXML
Maven archetype
This archetype has been derived from https://github.com/openjfx/javafx-maven-archetypes /
https://mvnrepository.com/artifact/org.openjfx/javafx-archetype-fxml demonstrating JavaFX application assembly.
There is added java FXML https://docs.oracle.com/javafx/2/get_started/fxml_tutorial.htm support including both the Log4j
and Junit framework.
https://mvnrepository.com/artifact/org.openjfx/javafx-archetype-fxml. The following features have been added:
-
FXML support https://docs.oracle.com/javafx/2/get_started/fxml_tutorial.htm
-
current Log4j and Junit.
## Hosting
Th
is
archetype is
being hosted at
https://maven.mi.hdm-stuttgart.de/nexus/#browse/browse:mi-maven:de%2Fhdm_stuttgart%2Fmi%2Fmi-maven-archetype-javafxml
.
Th
e
archetype is
available from
https://maven.mi.hdm-stuttgart.de/nexus/#browse/browse:mi-maven:de%2Fhdm_stuttgart%2Fmi%2Fmi-maven-archetype-javafxml.
## Getting started
<!-- language-all: bash -->
1.
Follow https://freedocs.mi.hdm-stuttgart.de/sd1_sect_mavenCli.html#sd1_fig_mavenMiRepo to configure the above MI
Maven Nexus Maven repository server.
2.
Create a project by executing:
```
bash
mvn archetype:generate
-DarchetypeCatalog
=
local
-DarchetypeGroupId
=
de.hdm-stuttgart.mi
\
-DarchetypeArtifactId
=
mi-maven-archetype-javafxml
-DarchetypeVersion
=
21.0.1
\
-DgroupId
=
de.mi.hdm_stuttgart
-DartifactId
=
hellojavafx
-DinteractiveMode
=
false
```
3.
Execute
`mvn javafx:run`
. You should see a GUI window popping up. Enter input and see corresponding log entries
in your underlying shell-
Maven Nexus Maven repository server for CLI usage.
2.
Choose your desired archetype version and create a new project by executing:
mvn archetype:generate -DarchetypeCatalog=local -DarchetypeGroupId=de.hdm-stuttgart.mi \
-DarchetypeArtifactId=mi-maven-archetype-javafxml -DarchetypeVersion=21.0.1 \
-DgroupId=de.mi.hdm_stuttgart -DartifactId=hellojavafx -DinteractiveMode=false
4.
Execute
`mvn javafx:run`
. You should see a GUI window popping up. Enter input and see corresponding log entries
in your underlying shell. In case you favour the Idea GUI over terminal commands you may click
`Run -->Edit Configurations`
. Then add a Maven run configuration entering
`javafx:run`
in the Run / Command line
textfield mimicking the previous
`mvn javafx:run`
terminal command.
4.
Optional: Working with IntelliJ IDEA follow
https://freedocs.mi.hdm-stuttgart.de/sd1_sect_idea.html#sd1_fig_mavenIdeaArchetypeCatalogPlugin to configure
the MI Maven Nexus Maven repository server in your IDE as well.
You may add a
`javafx:run`
to your project's
run configurations
.
the MI Maven Nexus Maven repository server in your IDE as well.
This allows for using the current archetype for
creating new JavaFXML projects by virtue of Idea's GUI
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment