argouml-tigris-org / argouml

Main project of argouml. Some information in the wiki. Some old releases in releases. (depends on parentpom, testmodels)
246 stars 92 forks source link

Self-contained jar doesn’t open properties panel #34

Open simonjwright opened 3 years ago

simonjwright commented 3 years ago

Having created a self-contained jar file as in #21,

mvn package -DskipTests=true

and then running using

java -jar src/argouml-build/target/argouml-jar-with-dependencies.jar

the properties panel at the bottom of the window (see attached) fails to open except when browsing to a diagram. Log:

SEVERE: Failed to create a prop panel for: Model$Impl  ID: -64--88-1-93--74d54626:174e3a72d54:-8000:0000000000000B7D  MID: -64--88-1-93--74d54626:174e3a72d54:-8000:000000000000060D  OPCKG: -64--88-1-93--74d54626:174e3a72d54:-8000:0000000000000622

This works as I expected with

java -jar src/argouml-build/build/argouml.jar

Macbook Pro 13" early 2015 macOS Catalina 10.15.7 java version "1.8.0_152" Java(TM) SE Runtime Environment (build 1.8.0_152-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode) 2322d07

image
stcarrez commented 3 years ago

To launch ArgoUML with the jar, I'm using the following:

DIR=<installation-dir>
java -Dargouml.profiles.directory=$DIR/uml/ \
 -Dlog4j.configuration=org/argouml/resource/full_console.lcf \
 -Djava.util.logging.config.file=$DIR/argouml.properties \
 -Dargouml.modules=org.argouml.activity2.ActivityDiagramModule;org.argouml.sequence2.SequenceDiagramModule;org.argouml.core.propertypanels.module.XmlPropertyPanelsModule;org.argouml.transformer.TransformerModule \
 -jar argouml.jar

I guess what is important is the definition of -Dargouml.modules.

simonjwright commented 3 years ago

I don’t understand, according to #21 this was supposed to be "a single jar with dependencies that we can use to distribute and launch ArgoUML", to launch with

java -jar argouml-jar-with-dependencies.jar
linustolke commented 3 years ago

The loading of modules is a mess. We need to work with it.