I've been playing around with the maven-assembly-plugin and jdeb plugins in Maven, trying to create a valid .deb (Debian Linux package) file for the project that includes all of the subprojects and dependencies needed to run the simulation. I'm not quite there, but I've made some good progress.
I've modified the pom.xml file in the mars-sim-main subproject to configure the maven-assembly-plugin and jdeb plugins. The maven-assembly-plugin generates a jar containing all classes and resources for the project called "mars-sim-main-[version name]-jar-with-dependencies.jar" in the target directory during the package phase. The jdeb plugin then takes that file and some debian configuration files located in the mars-sim-main/src/deb/ directory and creates a debian package file called "mars-sim-main_[version name]_all.deb".
The deb file, when installed through the package installer on a debian linux computer, will install the jar file along with a simple, one-line shell script I wrote, "mars-sim.sh", in the /usr/share/mars-sim-main/ directory. It also installs a "copyright" text file in the /usr/share/doc/mars-sim-main/ directory referencing the GPL2 license
Unfortunately the /usr/share/mars-sim-main/mars-sim.sh start up script is root permission and non-executable at the moment. I'm not sure how to run the program after it is installed from the .deb file.
The "lintian" command, which checks .deb files for errors, lists only one error at this point:
E: mars-sim-main: changelog-file-missing-in-native-package
I'll need to add a change log to the deb configuration.
I've never created a Debian application before so I'm learning this as I go. There are a lot of configuration standards to deal with. If anyone has experience with this, I would appreciate any help you could give.
Aside from that I've been testing running the simulation at its highest time compression rate, fixing bugs and adding a new Emergency Supply Mission.
I was happy to see that running the simulation at its highest time compression rate seemed to work fine. It was taxing for the computer, but no simulation bugs or problems were apparent. I was concerned that the larger blocks of time in each time pulse would produce bugs or unintended consequences, but it seems to work fine.
I've added a new Emergency Supply mission that can occur when one settlement runs very low on life support (or methane fuel) resources. Another nearby settlement with sufficient supplies can send some supplies to the needy settlement to save its people from starvation/dehydration/asphyxiation, etc. I don't expect it to be used much, but it's there if needed.
I still need to add the Emergency Supply mission to the UI mission tool and mission creation wizard so that users can create a new mission if they want.
Fellow mars-simmers,
I've been playing around with the maven-assembly-plugin and jdeb plugins in Maven, trying to create a valid .deb (Debian Linux package) file for the project that includes all of the subprojects and dependencies needed to run the simulation. I'm not quite there, but I've made some good progress.
I've modified the pom.xml file in the mars-sim-main subproject to configure the maven-assembly-plugin and jdeb plugins. The maven-assembly-plugin generates a jar containing all classes and resources for the project called "mars-sim-main-[version name]-jar-with-dependencies.jar" in the target directory during the package phase. The jdeb plugin then takes that file and some debian configuration files located in the mars-sim-main/src/deb/ directory and creates a debian package file called "mars-sim-main_[version name]_all.deb".
The deb file, when installed through the package installer on a debian linux computer, will install the jar file along with a simple, one-line shell script I wrote, "mars-sim.sh", in the /usr/share/mars-sim-main/ directory. It also installs a "copyright" text file in the /usr/share/doc/mars-sim-main/ directory referencing the GPL2 license
Unfortunately the /usr/share/mars-sim-main/mars-sim.sh start up script is root permission and non-executable at the moment. I'm not sure how to run the program after it is installed from the .deb file.
The "lintian" command, which checks .deb files for errors, lists only one error at this point:
E: mars-sim-main: changelog-file-missing-in-native-package
I'll need to add a change log to the deb configuration.
I've never created a Debian application before so I'm learning this as I go. There are a lot of configuration standards to deal with. If anyone has experience with this, I would appreciate any help you could give.
Aside from that I've been testing running the simulation at its highest time compression rate, fixing bugs and adding a new Emergency Supply Mission.
I was happy to see that running the simulation at its highest time compression rate seemed to work fine. It was taxing for the computer, but no simulation bugs or problems were apparent. I was concerned that the larger blocks of time in each time pulse would produce bugs or unintended consequences, but it seems to work fine.
I've added a new Emergency Supply mission that can occur when one settlement runs very low on life support (or methane fuel) resources. Another nearby settlement with sufficient supplies can send some supplies to the needy settlement to save its people from starvation/dehydration/asphyxiation, etc. I don't expect it to be used much, but it's there if needed.
I still need to add the Emergency Supply mission to the UI mission tool and mission creation wizard so that users can create a new mission if they want.
Take care,
Scott Davis
Mars Simulation Project
http://mars-sim.sourceforge.net
scud1@users.sourceforge.net