Andrei486 / uml-diagram-collab

0 stars 0 forks source link

Make JAR file run correctly #123

Closed Andrei486 closed 5 months ago

Andrei486 commented 5 months ago

How to generate the JAR file: In IntelliJ, open the Maven tool window (View -> Tool Windows -> Maven if not already up). Toggle the "Skip Tests" mode to true to avoid failing UI tests, then double click the package target under "Lifecycle". Some output should be printed to the terminal. If successful, the target subfolder should be created under the project root. This folder should be gitignored so keeping it around is fine. In that folder, several JARs will be created - the one we are looking for is uml-diagram-collab-1.0-SNAPSHOT.jar. DO NOT double click it to run from IntelliJ!

How to run the JAR file:

Warnings:

This PR fixes a major issue that affected the JAR version but not the version run via IntelliJ, in which the ElementCreator incorrectly accessed a file. The file access has been fixed to work on both. The error caused a failure when opening any diagram.

During my quick tests, I did not find any other outstanding issues with the JAR version, with 2 instances running on my machine. I briefly tested that the following work as they do in our IntelliJ runs: