This guide will help you to run the Apache Rat tool on service-center source code. For running the tool please follow the below guidelines.
Clone the Servcice-Center code and download Apache Rat tool.
git clone https://github.com/apache/servicecomb-service-center
wget http://mirrors.hust.edu.cn/apache//creadur/apache-rat-0.13/apache-rat-0.13-bin.tar.gz # Untar the release tar -xvf apache-rat-0.13-bin.tar.gz # Copy the jar in the root directory cp apache-rat-0.13/apache-rat-0.13.jar ./
Run the Rat tool using the below command
java -jar apache-rat-0.13.jar -a -d servicecomb-service-center/ -e '(.+(\.svg|\.md|\.MD|\.gitignore|\.gitmodules|\.cer|\.tpl))|(vendor|licenses|bower.json|cert_pwd|glide.yaml|go.mod|go.sum)'
Below is the list of the files which has been excluded from the list of RAT tool.
You can access the latest RAT report here
See here
Execute script, archive source code and generate summary and signature
bash scripts/release/archive.sh apache-servicecomb-service-center 2.0.0 littlecui@apache.org
list current directory
-rw-rw-r-- 1 ubuntu ubuntu 3.1M Jun 8 20:35 apache-servicecomb-service-center-2.0.0-src.tar.gz -rw-rw-r-- 1 ubuntu ubuntu 862 Jun 8 20:35 apache-servicecomb-service-center-2.0.0-src.tar.gz.asc -rw-rw-r-- 1 ubuntu ubuntu 181 Jun 8 20:35 apache-servicecomb-service-center-2.0.0-src.tar.gz.sha512
PUSH to apache dev repo
svn co https://dist.apache.org/repos/dist/dev/servicecomb/ cd servicecomb/ mkdir -p 2.0.0 cp apache-servicecomb-service-center-* 2.0.0/ svn add . svn ci --username xxx --password xxx -m "Add the Service-Center 2.0.0 version"