-
Notifications
You must be signed in to change notification settings - Fork 66
Build Deploy commands
Running this command requires the access to the private resource repository, thus not directly applicable to the general public.
mvn clean test
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
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
mvn -DskipTests -DtestPhase=false -DdeployPhase=false clean install
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 |
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
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/*