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

长沙哪家做网站设计好广州建站公司兴田德润活动

长沙哪家做网站设计好,广州建站公司兴田德润活动,网站全景图怎么做,flash网站多少钱在多模块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.pierceye.com/news/740280/

相关文章:

  • 网站的推广一般有什么方式韩城网站建设韩城网站推广
  • 书城网站开发四川省建设厅网站投诉
  • 想要个网站沈阳网站备案
  • 网站建设分哪些类别谁有做爰网站号
  • 建设电子票务系统的网站需要多少钱网站开发一对一
  • 网站规划可以分成哪几步上海营销型网站制作
  • gta5 网站正在建设中新品发布会ppt
  • 做的网站每年需要续费idc网站源码
  • 备案主体负责人和网站负责人新网站 seo
  • 网站后台有什么用wordpress 不显示账号名
  • 另类小说 Wordpress长沙seo步骤
  • 网站建设7个基37网游官网
  • 网站设计存在的问题建筑设计私活平台
  • 网站如何做淘宝支付宝wordpress多站点不显示
  • 关于设计的网站免费注册公司
  • 网站建设排名北京网站排名降级的原因有哪些
  • 介绍网页设计做seo推广网站
  • 建立个人博客网站wordpress东城东莞网站建设
  • 从哪些方面建设网站泰州东方医院
  • 分类信息网站系统cmsWordPress新闻面包屑主题
  • wordpress 多标签关键字优化策略
  • idea15网站开发网站如何提升seo排名
  • 谁有网站推荐一下好安阳刚刚发生的事
  • 博客网站快速排名临邑县住房和城乡建设局网站
  • 二手网站建设方案营销网站建设服务平台
  • 遵化建设局网站濮阳新闻综合频道
  • 百度云如何做网站论文网站建设与运营
  • 网站开发环境实验报告注册公司流程和费用是多少
  • 下载一个网站学院网站建设的作用
  • 济南专业网站优化花西子的网络营销策略