Skip to content
Philippe edited this page Nov 16, 2015 · 6 revisions

This page is ment to keep some commonly used commands by project members to be copy/pasted.

Create a new local copy of the master

git clone git@github.com:taconaut/ums-mlx.git
cd ums-mlx
mvn external:install
mvn package

Package

Linux: mvn -P linux -P osx package

Reset branch to head of ums master

Select the branch you want to reset to the head of ums and perform following:

git fetch ums
git reset --hard ums/master
git push --force origin <branch_name> 

Merge UniversalMediaServer master into ums-mlx

Configure the remote once

git remote add ums git://github.com/UniversalMediaServer/UniversalMediaServer.git

Do the merge

git fetch ums
git merge ums/master

Deploy

mvn javadoc:jar source:jar deploy [-Dgpg.passphrase=pass_phrase]

Prerequisits

Sonatype Credentials

Credentials have to be set in order to deploy artifacts to Sonatype. These are being set in the maven settings.xml file. If a new settings.xml file has to be created, this one can be used:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <servers>
        <server>
            <id>sonatype-nexus-snapshots</id>
            <username>your-jira-id</username>
            <password>your-jira-pwd</password>
        </server>
        <server>
            <id>sonatype-nexus-staging</id>
            <username>your-jira-id</username>
            <password>your-jira-pwd</password>
        </server>
    </servers>
</settings>

GPG

It is not required to sign files when deploying them to Sonatype, but it is, when they are being released. This is being done when setting '-Dgpg.passphrase=pass_phrase'. Previously, a key has to be generated and made available.

  1. Download the gpg key manager (Gpg4Win, OSX GPGTools)
  2. Generate a key and upload the public key to one of those sites (TODO: add links)

Reset HEAD of branch to HEAD of UMS

git fetch ums
git reset --hard ums/master

View DB

Create a new connection in DbVisualizer using following configuration:

  • Database driver='h2 embedded'
  • URL='jdbc:h2:C:\ProgramData\ums-mlx\db/ums-mlx'
  • User='sa'
  • Pwd=''