Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以给一份打包部署的方案吗? #49

Closed
kevin-wang001 opened this issue Apr 3, 2018 · 3 comments
Closed

可以给一份打包部署的方案吗? #49

kevin-wang001 opened this issue Apr 3, 2018 · 3 comments

Comments

@kevin-wang001
Copy link

可以给一份打包部署的方案吗?
比如,子模块怎么打包动态发布会比较便捷?

@kiral
Copy link
Contributor

kiral commented Apr 3, 2018 via email

@kevin-wang001
Copy link
Author

那么本地测试的话,都只能用拷贝jar的形式来运行吗?
有没有更加简单的方式呢?

例如:
mod-main是主模块,mod1、mod2是jarslink子模块
我现在做测试,都是将mod1.jar和mod2.jar拷贝到mod-main的resources目录下来进行的。
有没有更简单的方式呢?不需要人为的拷贝?

├─mod-main
│ └─src
│ └─main
│ ├─java
│ │ └─com
│ │ ├─alipay
│ │ │ └─jarslink
│ │ │ └─api
│ │ │ └─impl
│ │ └─kvn
│ │ └─main
│ │ └─controller
│ ├─resources
│ ├─mod1-1.0-SNAPSHOT.jar // 将mod1拷贝到mod-main的resources目录下
│ └─mod2-1.0-SNAPSHOT.jar // 将mod2拷贝到mod-main的resources目录下
├─mod1
│ └─src
│ ├─main
│ │ ├─java
│ │ │ └─com
│ │ │ └─kvn
│ │ │ └─mod1
│ │ └─resources
│ │ └─META-INF
│ │ └─spring
│ └─test
│ └─java
├─mod2
└─src
├─main
│ ├─java
│ │ └─com
│ │ └─kvn
│ │ └─mod2
│ └─resources
│ └─META-INF
│ └─spring
└─test
└─java

@kevin-wang001
Copy link
Author

我用maven-antrun-plugin解决了

@kiral kiral closed this as completed May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants