Release methodology

How to release application

Project structure is following:

mvn clean package

then grab release artifacts in following places:

/spacewar-game/target/Space war.app
/spacewar-dist/target/space-war.exe
/spacewar-dist/target/space-war.jar

Manually upload files to sourceforge files section.

How to publish this documentation

This documentation is published at https://space-war-2.sourceforge.io.

Here is described how to propagate changes in documentation to sourceforge site. procedure required shell account at sourceforge with access to project space-war-2. Replace [user] with correct user name.

  1. Verify settings.xml

    In your home directory is file ~/.m2/settings.xml. If file doesn't exist crate new one. Edit server section:

    <servers>
            ...
            <server>
                    <id>spacewar.sf.net</id>
                    <username>[user]</username>
                    <password>s!cr!t</password>
            </server>
            ...
    </servers>

    This setting provide user name and password for ssh account at sourceforge server. New site documentation will be uploaded to this server.

  2. Delete previous version of documentation
    ssh -t [user],space-war-2@shell.sourceforge.net create
    cd /home/project-web/space-war-2/htdocs/
    rm -rf *
    exit
  3. Generate new version of documentation

    following command upload documentation to /home/project-web/space-war-2/htdocs/spacewar-site

    mvn clean site-deploy
  4. Move documentation

    Documentation was generate to directory spacewar-site. It have to be moved to root directory.

    ssh -t [user],space-war-2@shell.sourceforge.net
    cd /home/project-web/space-war-2/htdocs/
    mv spacewar-site/* .
    exit
  5. Verify results

    Verify that new documentation version is at space-war-2.sourceforge.io.