###crawl remote catalog from remote to local
###mvn archetype:crawl
###mv /home/cuikexi/.m2/repository/archetype-catalog.xml /home/cuikexi/.m2/
###archetypeCatalog:internal|local|remote|file://|http://
###mvn archetype:generate -DarchetypeCatalog=local
###archetypeArtifactId:maven-archetype-quickstart|maven-archetype-webapp|...
mvn工程(项目通用工程, 技术方)
###jar project
###mvn archetype:generate -DgroupId=com.zcs -DartifactId=data-processor -DpackageName=com.zcs.62.data -Dversion=0.1
###cd data-processor
###vi pom.xml
###mvn dependency:tree
###mvn dependency:resolve
###mvn clean compile
###mvn clean javadoc:javadoc site:site
###mvn clean source:jar javadoc:jar site:jar
###mvn clean assembly:assembly
###mvn dependency:copy-dependencies -DdescriptorId=jar-with-dependencies -Dmaven.test.skip=true
###mvn clean install -Dmaven.test.skip=true
###mvn clean compile exec:java -Dexec.mainClass=xxxx.xxxx.YYYY
###run by other vm or program
###mvn clean compile exec:exec -Dexec.executable="java" -Dexec.args="-DsystemProperty1=value1 -classpath %classpath com.zcs.62.data.app.Main arg1 arg2"
###war project
###mvn archetype:generate -DgroupId=com.zcs -DartifactId=terminal-system -DpackageName=com.zcs.data.processor -DarchetypeArtifactId=maven-archetype-webapp -Dversion=0.1
###cd terminal-system
###vi pom.xml
###mvn dependency:tree
###mvn dependency:resolve
###mvn clean compile
###mvn clean javadoc:javadoc site:site
###mvn clean source:jar javadoc:jar site:jar
###mvn clean assembly:assembly
###mvn clean install -Dmaven.test.skip=true
###mvn clean package jetty:run-war -Dmaven.test.skip=true
HTTP协议(项目通用模板, 技术方)
request format:
1.path:url_path(remove the part 'schema://host:port')
2.method:get|post
3.headers:null
4.query string(kv parameters):
type=xx
count=xx
xxx=yyy
5.request body(payload data:json):
xxxxxxxxxxxxxx
response format:
1.headers:null
2.response body(payload data:json):
{
code:
msg:
data:
}
note for resonse:(request url suffix->response data type:)
record->json object
list->josn list
infos-> json dictinary
协议样例:
org index request:
url:/data/index/list
method:get
headers:null
query string:
type=org
count=2
sort=desc
request body(json):
null
org index response:
headers:null
response body(json):
{
code:200200,
msg:ok,
data:[{"name":"zcs","socre":60},
{"name":"hy","score":80}]
}
实施流程(项目通用流程, 技术方)
1.系统架构设计 => 进程图
2.功能模块设计 => 进程/模块功能说明文档
3.数据点评估 => 数据点文档
4.数据库表设计 => 数据库建表代码和说明文档
5.数据流设计 => 数据流图
6.数据流通信协议 => http协议文档
7.系统测试用例 => 待实现进程/模块测试用例文档
8.项目框架工程代码实现 => 代码
9.测试用例代码实现 => 代码
10.业务代码实现 => 代码
11.持续集成/测试/部署/测试/交付 => 自动化脚本和配置文件
12.用户文档设计 => 用户文档
13.运维优化设计 => 运维文档