Skip to content

Latest commit

 

History

History
71 lines (37 loc) · 1.96 KB

BUILDING.md

File metadata and controls

71 lines (37 loc) · 1.96 KB

building queryon

Dependencies: java 1.6+ ; maven 3+

Building

mvn install

Important: QueryOn usually depends on the latest version of sqldump, so it will be pulled from sonatype snapshot repository - or you may build it first (and publish it to your local maven repo)

Deploy (local/sonatype), see: doc/mvn-deploy.md

Testing

mvn clean package && mvn -P hardness test

see also: demo/qon-demo-dbn/TESTING.md, demo/qon-demo-minimal/TESTING.md

Upgrading version

mvn versions:set -DnewVersion=<new-version> - ex: mvn versions:set -DnewVersion=0.8-SNAPSHOT

maven profiles

  • release - release profile (sign artifacts)

  • hardness - extra tests - currently this profile must be called after a initial build (eg: mvn clean package && mvn -P hardness test && mvn clean )

  • thorntail - package thorntail demos

other useful maven goals

  • mvn enforcer:display-info

  • mvn buildplan:list-phase

  • mvn versions:display-plugin-updates -DallowAnyUpdates=false -DallowMajorUpdates=false

  • mvn versions:display-dependency-updates -DallowAnyUpdates=false -DallowMajorUpdates=false

  • mvn javadoc:test-javadoc

  • mvn org.owasp:dependency-check-maven:check / mvn org.owasp:dependency-check-maven:aggregate

  • mvn se.kth.castor:depclean-maven-plugin:1.1.0:depclean -Dcreate.pom.debloated=true -Dcreate.result.json=true -Dignore.scopes=test (see https://castor-software.github.io/depclean/)

see also: https://github.com/rfichtner/maven-survival-guide

maven goals that need external services