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

Can the Maven plugin consider supporting the ability to pass parameters such as appToken through the command line? #354

Closed
folochina opened this issue Sep 21, 2022 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@folochina
Copy link

folochina commented Sep 21, 2022

Summary (Description of this PR)

Currently, multi-environment is managed through multiple modules, and deployments are made using Jenkins. The goal is to compile for different environments and specify which module to push to.
Could the Maven plugin be considered to support passing several parameters such as appToken via the command line to achieve this?

Basic example (Use case for the PR)

Running mvn smart-doc:torna-rest -DtornaToken=xxxxx could push the documentation to the specified appToken module. Command line arguments would override the appToken in the plugin's configuration JSON file.

Motivation (Purpose of this PR)

Different code branches need to push to different torna modules.

@folochina folochina added the enhancement New feature or request label Sep 21, 2022
@shalousun
Copy link
Collaborator

shalousun commented Sep 21, 2022

@folochina You can submit a PR to https://github.com/smart-doc-group/smart-doc-maven-plugin. I've been quite busy lately, so contributions to the community are welcome.

https://smart-doc-group.github.io/#/zh-cn/community/contributing

@netdied
Copy link
Collaborator

netdied commented Sep 25, 2022

Fix
Pull the plugin code from here
Repackage and use it, or wait for the new version to be released.

@shalousun shalousun added this to the 2.6.0 milestone Oct 15, 2022
@shalousun shalousun changed the title maven 插件是否能考虑支持appToken等几个参数可以通过命令行传入 Can the Maven plugin consider supporting the ability to pass parameters such as appToken through the command line? Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants