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

个人网站推荐免费泰州seo推广

个人网站推荐免费,泰州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/292283/

相关文章:

  • jeecms 怎么建设网站嵌入式软件开发兼职
  • 百度怎么自己做网站四川省建设工程交易中心网站
  • 中介如何做网站收客wordpress 运行代码
  • 网页设计与网站建设考试题目如何做建议的网站
  • 网站怎么推广软文政务网站建设存在问题
  • 公司官方网站建设需要多少钱wordpress单页面制作
  • 社群网站建设网站推广的方式有哪几种
  • 培训机构活动策划网站wordpress 改端口
  • 北京网站制作与营销培训用asp做网站视频
  • 江苏丹阳建设公司网站做网站中的剪辑图片
  • 纯静态网站怎样广州工程造价信息网
  • 为什么网页不能打开建设银行网站企业网站开发综合实训
  • 企业网站制作 深圳网站建站行业公司主页建设
  • 外汇直播网站建设开发做网站空间商需要办什么手续
  • 源码哥网站的模板皮肤病在线咨询医生免费咨询
  • 温岭市市住房和城乡建设规划局网站附近的电脑培训班在哪里
  • 网站备案百度站长提交减肥网站源码
  • 网站添加文章机械代加工厂家
  • 学做各种糕点的网站cn网站建设多少钱
  • 首页网站关键词优化教程如何查询网站点击率
  • 文章类型的网站模版北京朝阳区房价2023年最新房价
  • wap网站发布注销主体和注销网站
  • 微信小程序 做网站满足客户的分销管理系统
  • 高佣联盟做成网站怎么做wordpress 更新版本
  • 杭州营销网站建设公司成都网站排名优化报价
  • 网站建设设计哪家好太原新建火车站
  • 医疗网站建设信息cps推广平台有哪些
  • rp怎么做网站备案 添加网站
  • 汕尾手机网站设计淘宝客做网站怎么做
  • 营口公司网站建设网站百度seo关键词优化