-
Notifications
You must be signed in to change notification settings - Fork 0
User Manual
Brage Sebastian Sandli-Løvgren edited this page Apr 24, 2026
·
7 revisions
- Java 21
- Maven 3.9+
If you're testing or developing and want to skip the login screen, set TEST_AUTO_LOGIN_ENABLED to true in Main.java:
private static final boolean TEST_AUTO_LOGIN_ENABLED = true;Open terminal in the file structure where the pom.xml file is visible and run:
mvn clean javafx:run
This will clean and start the application
mvn testmvn -Dtest=UserDatabaseTest test
mvn -Dtest=DonationDatabaseTest test
mvn -Dtest=LandingPageFiltersTest test
mvn -Dtest=DashboardPageViewMetricsTest test
mvn -Dtest=OrganizationRegisterTest test
mvn -Dtest=MainTest testmvn -Dtest=UserDatabaseTest#initializeSeedsUsersWithHashedPasswords test
mvn -Dtest=LandingPageFiltersTest#parseTags_splitsByCommonSeparators testmvn -Dtest=UserDatabaseTest,DonationDatabaseTest testmvn clean packageOutput: target/helpmehelp-1.0-SNAPSHOT.jar
mvn package -DskipTestsThe application uses SQLite databases stored in the data/ directory:
-
users.db— User profiles and authentication -
donations.db— Donation records
These are created automatically on first run.
The application accepts optional arguments:
java -jar target/helpmehelp-1.0-SNAPSHOT.jar [username]Without arguments, uses default user johndoe123.
Ensure JavaFX SDK is available or use Maven wrapper:
./mvnw javafx:runClose the application and try again. Only one instance should access the database at a time.
This is normal for JavaFX tests. The @BeforeAll handles this:
@BeforeAll
static void startToolkit() {
try {
Platform.startup(() -> {});
} catch (IllegalStateException ignored) {}
}| Command | Description |
|---|---|
mvn compile |
Compile source only |
mvn test-compile |
Compile source and tests |
mvn clean |
Clean build directory |
mvn clean package |
Full build |
mvn dependency:tree |
Show dependency tree |
mvn help:effective-pom |
Show resolved POM |
- Import as Maven project
- Add SDK: File → Project Structure → SDKs → Add JDK 21
- Run: Right-click Main.java → Run
- Install Java Extension Pack
- Run:
mvn javafx:runvia terminal
# Run app
mvn javafx:run
# Run tests
mvn test
# Build
mvn clean package