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

前几年做那些网站致富wordpress 虚机

前几年做那些网站致富,wordpress 虚机,wordpress福利源码,地产网站建设互动营销maven 插件未找到在多模块Maven项目的子模块上定义Maven插件会给我们一个“未找到插件”错误。 特别是如果我们有一个多模块项目#xff0c;并且只想在一个特定模块中应用Maven插件#xff0c;则此错误会经常发生。 假设我们有一个看起来像这样的多模块root pom。 proj… maven 插件未找到 在多模块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.htmlmaven 插件未找到
http://www.yutouwan.com/news/325331/

相关文章:

  • 东莞自适应网站建设软件开发工程师绩效考核指标
  • 温州门户网站建设html个人源码
  • 网站还能赚钱吗中企动力做网站行吗
  • 上传网站到二级域名设计师网站软件
  • 天津开发区网站上线一个app需要多少钱
  • 网站建设业务活动旅游网站后台管理系统
  • 百度网站建设中的自由容器常州想做个企业的网站找谁做
  • 中通物流企业网站建设书试用网站源码
  • 西安英文网站建设西安网站建设xs029
  • 长沙网站制作公司有哪些石家庄便宜做网站
  • 网站首页 栏目页 内容页公司网站建设费放什么科目
  • 福州网站建设报价seo基础入门
  • 永康新站优化学生怎样建设网站
  • 广州做网站最好的公司深圳 公司网站设计
  • 成都学校网站建设企业做电影网站的成本
  • 专业做网站套餐东营网站的优化
  • 做网站实现登陆功能云匠网怎么接单
  • 想做个电影网站该怎么做四川微信网站建设公
  • 整站seo排名要多少钱线上教育平台推广怎么做
  • 服装 产品展示网站模板运营商大数据精准营销获客
  • 信阳做网站 汉狮网络网络营销方式论文
  • sql 新建网站wordpress最新的编辑器
  • 杭州网站建设长春公司如何加强网站管理的队伍建设
  • 网站目录 index.html十大赚钱小程序
  • 网站维护服务公司拼多多免费推广软件
  • 青岛市做网站简单的网站建设方案
  • 2017网站发展趋势电子网站建设设计
  • 体育馆做网站公司软件技术职业生涯规划书
  • 网站维护费怎么做会计分录自费社保太坑了亏大了
  • 网站前端用什么做dw个人网页制作教程学生