如何在Eclipse中将概要文件添加到默认的Maven目标? [英] How to add profiles to default maven goals in Eclipse?

查看:85
本文介绍了如何在Eclipse中将概要文件添加到默认的Maven目标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Eclipse中使用Maven来构建和部署代码.

I am using Maven inside Eclipse to build and deploy code.

选择 {上下文菜单}>运行方式,几个Maven目标如下所示:

When choosing {Context Menu} > Run As, several Maven goals appear as follows:

我了解,如果要创建自定义构建配置,请单击运行配置..."以创建自定义配置.

I understand that if I want to create a custom build configuration, I would click "Run Configurations..." to create a custom configuration.

但是,似乎没有办法修改菜单上方便显示的配置.例如,您不能将配置文件添加到#7"Maven安装"中.结果很乏味,因为您单击了大约5次以启动构建.

However, there seems to be no way to modify the configurations that appear conveniently on the menu. For instance, you can't add a profile to #7 "Maven install". The result is tedious, because you have click about 5 times to launch the build.

是否可以将配置文件或其他目标添加到#7"Maven安装"构建中或将自定义配置添加到上下文菜单中?

Is there any way to add profiles or additional goals to #7 "Maven install" build or add custom configurations to the context menu?

是否可以使用键盘组合启动特定的构建配置?

Is there a way to launch a specific build configuration with a keyboard combination?

我已经尝试了IntelliJ和NetBeans,并且试图区分Maven基本目标和目标与配置文件的更现实的自定义组合,这两者之间的Maven集成似乎令人困惑.

I have tried IntelliJ and NetBeans and the Maven integration in all of them seems confusing trying to differentiate between basic Maven goals and the more realistic custom combination of goals and profiles.

推荐答案

  1. 从菜单中选择"Maven build ..."并创建配置

  1. 将其添加到收藏夹以供以后使用/启动构建

这篇关于如何在Eclipse中将概要文件添加到默认的Maven目标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆