Skip to content

Build Deploy commands

Yongjoo Park edited this page Nov 11, 2018 · 6 revisions

VerdictDB (Java)

Run Tests

Running this command requires the access to the private resource repository, thus not directly applicable to the general public.

mvn clean test

Package

This command generates two jar files: the one with dependencies and the other without dependencies. The first one can be used as a standalone JDBC driver.

mvn -DskipTests -DtestPhase=false -DpackagePhase=true clean package

Deploy

This command deploys the packaged jar (without dependencies) to the sonatype repository, which is then released to the maven central repository. This command will also deploy Java source and Javadoc.

mvn -DskipTests -DtestPhase=false -DdeployPhase=true clean deploy

Local Install

mvn -DskipTests -DtestPhase=false -DdeployPhase=false clean install

How variables affect profiles

The variable names are in the header row. The profile IDs are in the first column.

Profile ID testPhase (default) packagePhase deployPhase
spark-compile on off off
spark-provided off on on
assemble-dependencies off on off
sonatype-release off off on

PyVerdict

Development

Install miniconda or anaconda from https://conda.io/docs/user-guide/install/linux.html

Install some test dependencies. The first line is needed for presto-python-client.

sudo apt-get install libkrb5-dev
pip install PyMySQL presto-python-client

Deploy

See this page for general instructions.

Some requirements.

pip install --upgrade setuptools wheel twine

This will generate the dist folder.

python setup.py sdist bdist_wheel

This will upload the project to pypi.

twine upload dist/*