Skip to content
Snippets Groups Projects
Commit f60654c1 authored by Goik Martin's avatar Goik Martin
Browse files

Cosmetics

parent cb5b2572
No related branches found
No related tags found
No related merge requests found
...@@ -13,21 +13,22 @@ https://maven.mi.hdm-stuttgart.de/nexus/#browse/browse:mi-maven:de%2Fhdm_stuttga ...@@ -13,21 +13,22 @@ https://maven.mi.hdm-stuttgart.de/nexus/#browse/browse:mi-maven:de%2Fhdm_stuttga
<!-- language-all: bash --> <!-- language-all: bash -->
1. Follow https://freedocs.mi.hdm-stuttgart.de/sd1_sect_mavenCli.html#sd1_fig_mavenMiRepo to configure the above MI 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 for CLI usage. Maven Nexus Maven repository server for CLI usage in your `~/.m2/settings.xml` configuration.
2. Choose your desired archetype version and create a new project by executing: 1. Choose your desired archetype version and create a new project by executing:
mvn archetype:generate -DarchetypeCatalog=local -DarchetypeGroupId=de.hdm-stuttgart.mi \ mvn archetype:generate -DarchetypeCatalog=local -DarchetypeGroupId=de.hdm-stuttgart.mi \
-DarchetypeArtifactId=mi-maven-archetype-javafxml -DarchetypeVersion=21.0.1 \ -DarchetypeArtifactId=mi-maven-archetype-javafxml -DarchetypeVersion=21.0.1 \
-DgroupId=de.mi.hdm_stuttgart -DartifactId=hellojavafx -DinteractiveMode=false -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 1. 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 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 `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. textfield mimicking the previous `mvn javafx:run` terminal command.
4. Optional: Working with IntelliJ IDEA follow 1. Optional: Working with Idea follow
https://freedocs.mi.hdm-stuttgart.de/sd1_sect_idea.html#sd1_fig_mavenIdeaArchetypeCatalogPlugin to configure 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. This allows for using the current archetype for 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. creating new JavaFXML projects by virtue of Idea's GUI.
> Note: You still need `~/.m2/settings.xml` as a prerequisite.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment