2015-06-19 15:26:29 +00:00
|
|
|
# TPQuery Building
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
* java sdk 1.8 or higher.
|
|
|
|
* maven 3 or higher.
|
2015-06-19 17:18:16 +00:00
|
|
|
* Commands are runned in project root folder.
|
2015-06-19 15:26:29 +00:00
|
|
|
|
2015-06-19 17:18:16 +00:00
|
|
|
## Tests
|
|
|
|
|
|
|
|
### Run tests normal
|
|
|
|
mvn clean test
|
2015-06-19 15:26:29 +00:00
|
|
|
|
2015-06-19 17:18:16 +00:00
|
|
|
### Run tests with jacoco
|
2015-06-19 18:30:26 +00:00
|
|
|
mvn -Ptest-jacoco clean test
|
2015-06-19 17:18:16 +00:00
|
|
|
|
|
|
|
## Create build artifacts
|
2015-06-20 15:33:09 +00:00
|
|
|
mvn -Pbuild clean package
|
2015-06-19 15:26:29 +00:00
|
|
|
|
|
|
|
## Change pom.xml versions
|
|
|
|
mvn versions:set -DnewVersion=2.3.4-SNAPSHOT
|
|
|
|
|
|
|
|
## Make release build
|
2015-06-20 15:33:09 +00:00
|
|
|
mvn -Pbuild -Dusername=(scm_username) clean install release:clean release:prepare release:perform
|
2015-06-19 15:26:29 +00:00
|
|
|
|
|
|
|
## Make site
|
2015-06-20 15:21:52 +00:00
|
|
|
mvn -Ptest-jacoco clean install
|
2015-06-19 18:30:26 +00:00
|
|
|
mvn -Pbuild-site site:site
|
2015-06-19 15:26:29 +00:00
|
|
|
|
2015-12-27 14:44:17 +00:00
|
|
|
Optional add -DstagingDirectory=/tmp/fullsite
|
2015-06-19 15:26:29 +00:00
|
|
|
And then manual upload.
|
|
|
|
|
|
|
|
## Check for dependency-updates
|
2015-06-20 15:33:09 +00:00
|
|
|
mvn versions:display-plugin-updates|grep ">"|uniq
|
|
|
|
mvn versions:display-dependency-updates|grep ">"|uniq
|
2015-06-19 15:26:29 +00:00
|
|
|
|