简体   繁体   English

如何通过 IntelliJ 导出运行配置,例如 maven 配置

[英]How to export by IntelliJ the run configuration e.g. maven configuration

I'm looking in IntelliJ for something like launcher by Eclipse?我正在 IntelliJ 中寻找类似 Eclipse 启动器的东西?

However, is it possible to export the configuration in IntelliJ to file.但是,是否可以将 IntelliJ 中的配置导出到文件。

在此处输入图片说明

I would like to add the configuration to repo, to share it for the team.我想将配置添加到 repo,为团队共享。

Create and edit script launcher over Run/Debug Configuration - (1)通过运行/调试配置创建和编辑脚本启动器 - (1)

Check the share option (2),检查共享选项(2),

so the script will be stored under $projectDir/.idea/runConfigurations (3)所以脚本将存储在 $projectDir/.idea/runConfigurations (3) 下

By new projects modify .gitignore to add the configurations:通过新项目修改.gitignore添加配置:

!.idea
.idea/*
!.idea/runConfigurations

在此处输入图片说明

You can do this by pressing the "Share" checkbox in the upper right corner inside the "Run/debug configurations".您可以通过点击“运行/调试配置”内右上角的“共享”复选框来实现。 A file with configurations will be generated.将生成带有配置的文件。

well, that requires vcs and that repo has been closed.好吧,这需要 vcs 并且该 repo 已关闭。 i need to move them from the closed repo to the new one.我需要将它们从封闭的回购移动到新的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM