说来恼火,在网上找了半天没找到

  原来插件名称其实不需要定义而是直接想象到的,如下,我尝试过了好几种

  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没有把插件名称用元数据表示呢?

最新文章

  1. myeclipse一直卡在loading workbench解决方法
  2. POJ 2431 Expedition(探险)
  3. WEB前端性能优化:HTML,CSS,JS和服务器端优化
  4. MySQL基础之第15章 MySQL用户管理
  5. (转载)OC学习篇之---类的延展
  6. 在C#中使用WIA获取扫描仪数据
  7. python运行时间计算之timeit
  8. ASP.NETwindows身份验证详细步骤-域验证登录
  9. redis集群主从集群搭建、sentinel(哨兵集群)配置以及Jedis 哨兵模式简要配置
  10. ThreadPoolExecutor线程池参数设置技巧
  11. 浏览器本地数据库 IndexedDB 基础详解
  12. Python进阶1---高阶函数、柯里化
  13. 远程连接centos7 上的mysql报(ERROR 2003 (HY000): Can&#39;t connect to MySQL server on &#39;168.x.x.x&#39; (10060) )
  14. JavaScript中的栈内存和堆内存
  15. stm32 HAL库编程驱动控制文件&lt;stm32f1xx_hal_conf.h&gt;的使能方法
  16. 泡泡一分钟:Towards real-time unsupervised monocular depth estimation on CPU
  17. logminer使用测试库进行挖掘分析,10.2.0.5
  18. libev ev_init分析
  19. Mac下 如何配置虚拟机软件Parallel Desktop--超详细
  20. django模板语言的注释

热门文章

  1. Unity 5.4版本 Application.systemLanguage 失效
  2. 使用cefsharp 浏览器放大
  3. 面试必备:HashMap、Hashtable、ConcurrentHashMap的原理与区别
  4. 处理程序“AllowAccessJavaScripts”在其模块列表中有一个错误模块“ManagedPipelineHandler”
  5. docker安装mongodb并备份
  6. ECMAScript各版本简介及特性
  7. iOS实现图片裁剪功能,基于TKImageView完善与讲解
  8. 解决:Reading table information for completion of table and column names
  9. Effective Java 第三版—— 84. 不要依赖线程调度器
  10. Zabbix 3.4过滤多余的windows网卡监控