当前位置: 首页 > news >正文

江西住房和城乡建设网站重庆市建设工程信息网登录入口

江西住房和城乡建设网站,重庆市建设工程信息网登录入口,seo快速排名百度首页,汕头建站程序在多模块Maven项目的子模块上定义Maven插件会给我们“找不到插件”错误。 尤其是如果我们有一个多模块项目#xff0c;并且只想在一个特定模块中应用Maven插件#xff0c;则此错误会经常发生。 假设我们有一个看起来像这样的多模块root pom。 project xmlnshttp:… 在多模块Maven项目的子模块上定义Maven插件会给我们“找不到插件”错误。 尤其是如果我们有一个多模块项目并且只想在一个特定模块中应用Maven插件则此错误会经常发生。 假设我们有一个看起来像这样的多模块root pom。 project xmlnshttp://maven.apache.org/POM/4.0.0xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsdmodelVersion4.0.0/modelVersiongroupIdcom.jdriven.blog/groupIdartifactIdmaven-plugin-multimodule/artifactIdversion0.1-SNAPSHOT/versionpackagingpom/packagingmodulesmodulemodule1/module !-- Module1 is a regular jar --modulemodule2/module !-- Module2 has tomcat7 plugin configured --/modules /project 本能地将插件例如tomcat7添加到此特定模块module2 就像这样。 project xmlnshttp://maven.apache.org/POM/4.0.0xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsdmodelVersion4.0.0/modelVersionartifactIdmaven-plugin-multimodule-module2/artifactIdpackagingwar/packagingparentgroupIdcom.jdriven.blog/groupIdartifactIdmaven-plugin-multimodule/artifactIdversion0.1-SNAPSHOT/versionrelativePath..//relativePath/parentbuildpluginsplugingroupIdorg.apache.tomcat.maven/groupIdartifactIdtomcat7-maven-plugin/artifactIdversion2.2/versionconfiguration!-- This is where our specific configuration goes --/configuration/plugin/plugins/build /project 在多模块root pom上运行命令mvn tomcat7:help时出现以下错误 [ERROR] No plugin found for prefix tomcat7 in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories 解决方案非常简单我们在多模块root pom的pluginManagement部分中指定插件。 project xmlnshttp://maven.apache.org/POM/4.0.0xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsdmodelVersion4.0.0/modelVersiongroupIdcom.jdriven.blog/groupIdartifactIdmaven-plugin-multimodule/artifactIdversion0.1-SNAPSHOT/versionpackagingpom/packagingmodulesmodulemodule1/module !-- Module1 is a regular jar --modulemodule2/module !-- Module2 has tomcat7 plugin configured --/modulesbuild!-- In the multi-module root pom, use the pluginManagement to define the version of the maven-plugin --pluginManagementpluginsplugingroupIdorg.apache.tomcat.maven/groupIdartifactIdtomcat7-maven-plugin/artifactIdversion2.2/version/plugin/plugins/pluginManagement/build/project 并且在我们特定的模块module2我们清除了插件的版本因为它已在多模块root pom父代中定义。 project xmlnshttp://maven.apache.org/POM/4.0.0xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsdmodelVersion4.0.0/modelVersionartifactIdmaven-plugin-multimodule-module2/artifactIdpackagingwar/packagingparentgroupIdcom.jdriven.blog/groupIdartifactIdmaven-plugin-multimodule/artifactIdversion0.1-SNAPSHOT/versionrelativePath..//relativePath/parentbuildpluginsplugingroupIdorg.apache.tomcat.maven/groupIdartifactIdtomcat7-maven-plugin/artifactId!-- No version needed here, it is already defined in the multi-module root pom --configuration!-- This is where our specific configuration goes --/configuration/plugin/plugins/build/project 现在何时可以运行命令mvn tomcat7:help而不会出现任何错误。 我们准备在子模块上配置插件。 翻译自: https://www.javacodegeeks.com/2015/03/prevent-no-plugin-found-in-multi-module-maven.html
http://www.zqtcl.cn/news/943300/

相关文章:

  • 美文分享网站源码互联网网站建设
  • 做网站用php还是python建设网站价格
  • 平台网站怎么做诱导网站怎么做
  • 网站建设人员构成网址申请域名
  • 微网站建设找哪家公司好郑州一凡网站建设
  • 江阴网站制作公司泉州网站建设论坛
  • 最新章节 62.一起来做网站吧时钟插件+wordpress
  • 惠州市建设规划局网站网页设计实训报告word
  • 大众汽车网站建设鳌江网站建设
  • 佛山外贸网站建设公司网站与网页区别
  • HTML网站建设课程微商怎么做网站
  • 专业数据分析网站wordpress 很差
  • 请人做个网站多少钱google推广妙招
  • 郑州销售网站开一个设计公司
  • 建筑公司网站常用长尾词网页设计实训总结100字
  • 网站开发项目业务要求wordpress前台注册登陆
  • 上海人才网官网招聘人力资源专业wordpress seo title
  • 简单html网站网页设计培训学费多少
  • 麻城网站建设投标网招标网
  • 网站建设行业细分专业动漫如何制作
  • 做地方网站数据哪里来模板网站建设教程视频
  • 株洲建设网站制作网络怎么推广自己的产品
  • dtu网站开发赣县网站制作
  • 东莞旅游网站建设微网站怎么做
  • 网站怎么没有排名做义工旅行有哪些网站
  • 阳江房地产信息网官方网站创业网站开发要多少钱
  • 工业设计招聘信息网站常用的seo网站优化排名
  • 温岭市建设规划局网站网站规划与建设ppt
  • 龙岩网站建设较好的公司做网站销售的换工作
  • 潞城建设局网站建设网站服务器自营方式的特点