JPetStore 6 is a full web application built on top of MyBatis 3, Spring 4 and Stripes.
- JPetstore on top of Spring, Spring MVC, MyBatis 3, and Spring Security https://github.com/making/spring-jpetstore
- JPetstore with Vaadin and Spring Boot with Java Config https://github.com/igor-baiborodine/jpetstore-6-vaadin-spring-boot
- with maven:
mvn clean install
- with gradle:
gradle clean build
Running JPetStore sample under Tomcat (using maven).
- Clone this repository
- Open command prompt/shell and change to cloned directory
- Issue following command to run project using Tomcat
mvn clean tomcat:run
- Run application in browser http://localhost:8080/jpetstore/
- Press Ctrl-C to stop the server.
gradle jettyRun
pybot -d target -x target/xunit.xml -v SERVER:<IP:PORT> src/test
WiseCloud配置注意事项:
WiseCloud 构建命令写法如下(实际中请将192.168.9.10换成正确的maven私服地址,对于WiseCloud,它就是artifactory容器所在的宿主机IP,需暴露32778端口):
gradle clean build -PMavenRepoServerIP=192.168.9.10 -PMavenRepoServerPort=32778
构建环境选择:
dgroup/java8-gradle
归档文件写法:
./docker/*.war
Dockerfile路径:
docker/Dockerfile
镜像标签格式示例:
192.168.9.11/wisebuild-demo/jpetstore:${BUILD_NUMBER}
代码扫描 对于SonarQube7版本的参数
-Dsonar.java.binaries=build
如果是选maven编译器,这里的路径是target/classes 如果是gradle编译器,路径则是build
测试环境选择:
rocketcity/robotframework-docker
构建命令写法(这里的192.168.9.10:9092请更换为实际部署JPetStoreDemo的访问入口):
pybot -d target -x target/xunit.xml -v SERVER:192.168.9.10:9292 src/test