maven如何单独启动插件目标
2024-10-12 19:35:44
说来恼火,在网上找了半天没找到
原来插件名称其实不需要定义而是直接想象到的,如下,我尝试过了好几种
mvn plugin:goal 都没成功;从代码看goal已经没啥疑问了,就是compile,但哪个是plugin呢?
protobuf
protobuf
protobuf
protobuf
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.5.1-1:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.11.0:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
所以只需要执行 mvn protobuf : compile 就行了
但为什么maven没有把插件名称用元数据表示呢?
最新文章
- myeclipse一直卡在loading workbench解决方法
- POJ 2431 Expedition(探险)
- WEB前端性能优化:HTML,CSS,JS和服务器端优化
- MySQL基础之第15章 MySQL用户管理
- (转载)OC学习篇之---类的延展
- 在C#中使用WIA获取扫描仪数据
- python运行时间计算之timeit
- ASP.NETwindows身份验证详细步骤-域验证登录
- redis集群主从集群搭建、sentinel(哨兵集群)配置以及Jedis 哨兵模式简要配置
- ThreadPoolExecutor线程池参数设置技巧
- 浏览器本地数据库 IndexedDB 基础详解
- Python进阶1---高阶函数、柯里化
- 远程连接centos7 上的mysql报(ERROR 2003 (HY000): Can&#39;t connect to MySQL server on &#39;168.x.x.x&#39; (10060) )
- JavaScript中的栈内存和堆内存
- stm32 HAL库编程驱动控制文件<;stm32f1xx_hal_conf.h>;的使能方法
- 泡泡一分钟:Towards real-time unsupervised monocular depth estimation on CPU
- logminer使用测试库进行挖掘分析,10.2.0.5
- libev ev_init分析
- Mac下 如何配置虚拟机软件Parallel Desktop--超详细
- django模板语言的注释
热门文章
- Unity 5.4版本 Application.systemLanguage 失效
- 使用cefsharp 浏览器放大
- 面试必备:HashMap、Hashtable、ConcurrentHashMap的原理与区别
- 处理程序“AllowAccessJavaScripts”在其模块列表中有一个错误模块“ManagedPipelineHandler”
- docker安装mongodb并备份
- ECMAScript各版本简介及特性
- iOS实现图片裁剪功能,基于TKImageView完善与讲解
- 解决:Reading table information for completion of table and column names
- Effective Java 第三版—— 84. 不要依赖线程调度器
- Zabbix 3.4过滤多余的windows网卡监控