Contents
本地打包上传依赖的artifact
打包上传xframework-parent
关于此项目
这是所有工程的父项目。主要是dependencyManagement元素,统一管理版本。
版本信息
<groupId>xframework</groupId>
<artifactId>xframework-parent</artifactId>
<version>2.0.2</version>
<packaging>pom</packaging>
<name>xframework-parent</name>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
<relativePath/>
</parent>
依赖
仅依赖官方仓库的一些artifact
打开命令行,进入xframework-parent项目根目录下(应该有此项目的pom文件)
# 执行前面的phase
mvn clean package
# 单独执行deploy阶段的deploy目标
mvn deploy:deploy -X
或者直接
mvn deploy
如有什么问题,可以加下-X
参数,看下详细的deploy过程。
参考: https://maven.apache.org/plugins/maven-deploy-plugin/index.html
参考: https://maven.apache.org/plugins/maven-deploy-plugin/usage.html
参考: https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html
参考: https://stackoverflow.com/questions/6308162/maven-the-packaging-for-this-project-did-not-assign-a-file-to-the-build-artifac
可选操作:
从develop分支创建一个新分支,jtest
gitee新建仓库
向远程仓库推送jtest分支
git remote add jingmin https://gitee.com/ole12138/xframework-parent.git
git push -u jingmin "jtest"
打包上传xframework-core
后台核心的通用组件和工具类都在这个artifact下。
版本信息
<artifactId>xframework-core</artifactId>
<version>2.0.2-RELEASE</version>
<packaging>jar</packaging>
<name>xframework-core</name>
<parent>
<groupId>xframework</groupId>
<artifactId>xframework-parent</artifactId>
<version>2.0.2</version>
</parent>
依赖
依赖官方仓库的一些artifact
依赖xframework:xframework-parent:2.0.2
打开命令行,进入xframework-core项目根目录下(应该有此项目的pom文件)
mvn deploy -X
可选操作:
从master分支创建jtest分支
gitee新建仓库
向远程仓库推送jtest分支
git remote add jingmin https://gitee.com/ole12138/xframework-core.git
git push -u jingmin "jtest"
打包上传xframework-sso-common
提供spring-mvc的controller方法上的User对象注入(使用@InjectCommonUser
注解)
提供NewLoginValidationUtil工具类,可用于登录验证(用于多个zuul项目里)。
提供SSOUtil工具类,操作token
版本信息
<parent>
<groupId>xframework</groupId>
<artifactId>xframework-parent</artifactId>
<version>2.0.2</version>
</parent>
<groupId>com.x.bmp</groupId>
<artifactId>xframework-sso-common</artifactId>
<version>2.0.0-RELEASE</version>
<name>xframework-sso-common</name>
依赖
依赖官方仓库一些artifact
依赖xframework:xframework-parent:2.0.2
隐形的依赖(todo 这些相关的服务,之后也应该有选择的开起来)
http://SERVICE-CHANNEL/agent/authSignature
http://SERVICE-SSO/user/checkToken
http://SERVICE-SSO/user/jwt/logout
http://SERVICE-SSO/user/accessToken
http://SERVICE-SSO/user/refreshToken
http://SERVICE-WLD-V2/get/userinfo/platformcode
打开命令行,进入xframework-sso-common项目根目录下(应该有此项目的pom文件)
mvn deploy -X
可选操作:
从master分支创建jtest分支
gitee新建仓库
向远程仓库推送jtest分支
git remote add jingmin https://gitee.com/ole12138/xframework-sso-common.git
git push -u jingmin "jtest"
打包上传woyun-spring-boot-starter
主要是阿里云日志的接入,以及日志脱敏功能
版本信息
<groupId>com.woyun.common</groupId>
<artifactId>woyun-spring-boot-starter</artifactId>
<version>2.0.0-RELEASE</version>
<parent>
<groupId>xframework</groupId>
<artifactId>xframework-parent</artifactId>
<version>2.0.1</version>
</parent>
<name>woyun-spring-boot-starter</name>
<description>woyun-spring-boot-starter</description>
依赖
依赖官方仓库一些artifact
依赖xframework:xframework-parent:2.0.1
!!!注意,这里依赖的xframework-parent版本是2.0.1,与前面的几个包依赖不一致。前面已经打包上传过xframework:xframework-parent:2.0.1
,与之类似,打包上传一下xframework:xframework-parent:2.0.1
(git提交历史里找下这个版本)不再赘述。
打开命令行,进入woyun-spring-boot-starter项目根目录下(应该有此项目的pom文件)
mvn deploy -X
可选操作:
从master分支创建jtest分支
gitee新建仓库
向远程仓库推送jtest分支
git remote add jingmin https://gitee.com/ole12138/woyun-spring-boot-starter.git
git push -u jingmin "jtest"
发表回复