- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将一组不相交的 Maven 项目链接到一个标准的多模块项目中。
有趣的是,模块目前没有按自然层次结构排列。如果我与父 pom 链接在一起,那么在我添加 relativePaths
之前 react 器不会启动到子 pom XML 文件中的父节。
如果 GAV 详细信息在父版本与子版本中是正确的,并且子模块都链接在父 pom 中 - 这还不够吗?
简单来说 - 对于非标准目录结构,relativePath
多模块Maven项目绝对必要?
谢谢,艾斯
最佳答案
in simple terms - for a non-standard directory structure, is the relativePath strictly necessary for a multi module maven project?
.
|-- my-module
| `-- pom.xml
`-- parent
`-- pom.xml
<relativePath>
,子模块无法继承其父 POM 的 groupId/版本。元素。
关于maven多模块项目: is relativepath necessary?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21125358/
当父 pom 的版本不同但相对路径相同时,我得到两个不同的结果。根据我对 relativePath 标签的有限理解,relativePath 压倒了版本,但看起来版本优先于 relativePath。
我正在尝试将一组不相交的 Maven 项目链接到一个标准的多模块项目中。 有趣的是,模块目前没有按自然层次结构排列。如果我与父 pom 链接在一起,那么在我添加 relativePaths 之前 re
我有一个引用模块(子项目)的 Maven 项目,该子项目的父部分的 relativePath 指定为 ../pom.xml 并且当我从我的开发机器构建时一切正常. 在我的 SVN 上,文件夹结构有点不
我正在尝试使用 maven Spring 库并遵循 this 为 java (eclipse) 中的微服务构建概念证明教程。 下面是我的 POM 文件,它显示了一个我无法解决的错误: 4.0.0
内部.vcproj files您的项目中有一个所有源文件的列表。 我们如何使用宏来指定源文件的路径?如果我们这样做: 编译器找不到文件夹: qmfcapp.cpp c1xx : fatal err
我正在使用 maven 3 运行应用程序,但出现以下错误: [ERROR] The build could not read 1 project -> [Help 1] org.apache.mave
我是 Maven 新手。 我有一个项目,我尝试使用 maven3 构建。 当我运行命令 mvn -X clean install 时出现错误。 [root@localhost]# mvn -X cle
我遇到了有关 Jenkins 构建的问题。正如标题所描述的,这是一个“无法解析的父 POM 无法找到 Artifact ,并且'parent.relativePath'指向错误的本地 POM” 问题,
事实是,Solr 项目目录位于 MyProject 父目录内(但两者之间没有模块或任何 Maven 关系,只是 FS 方便)。我必须把它拿出来吗? $ mvn -DskipTests clean in
我是 Maven 和 Spring 的新手。 该项目在我的本地测试环境中运行,但不在部署的系统上运行。在已部署的系统上:我新安装了 Ubuntu,带有 OpenSDK 10.0.1、Maven 3.5
我是一名优秀的程序员,十分优秀!