Eclipse 复合应用程序项目POM编辑器不';不显示某些maven项目的依赖关系

Eclipse 复合应用程序项目POM编辑器不';不显示某些maven项目的依赖关系,eclipse,maven,wso2,wso2carbon,Eclipse,Maven,Wso2,Wso2carbon,在WSO2企业集成工具(也称为EclipseMars.2 4.5.2版及其插件)中,我有两个项目: 复合应用项目(CAP) 注册资源项目(RRP) 复合应用程序项目POM编辑器的设计视图不显示RRP或其他项目的资源 有人知道为什么吗?经过大量研究,我发现如果在注册表资源项目的pom.xml中设置一个父项,并删除标记groupId和pom.xml的版本,因为它不必要,因为它位于pom父项上,那么,复合应用程序项目POM编辑器不会显示此项目的工件 在行动中看到它: 在资源注册项目中: <

在WSO2企业集成工具(也称为EclipseMars.2 4.5.2版及其插件)中,我有两个项目:

  • 复合应用项目(CAP)
  • 注册资源项目(RRP)
复合应用程序项目POM编辑器的设计视图不显示RRP或其他项目的资源


有人知道为什么吗?

经过大量研究,我发现如果在注册表资源项目的pom.xml中设置一个父项,并删除标记groupId和pom.xml的版本,因为它不必要,因为它位于pom父项上,那么,复合应用程序项目POM编辑器不会显示此项目的工件

在行动中看到它:

在资源注册项目中:

  <parent>
    <groupId>com.example</groupId>
    <artifactId>padre</artifactId>
    <version>1.0.0</version>
  </parent>

  <groupId>com.example.recursos</groupId>
  <artifactId>recursos</artifactId>
  <version>1.0.0</version>
 <parent>
    <groupId>com.example</groupId>
    <artifactId>padre</artifactId>
    <version>1.0.0</version>
 </parent>
 <artifactId>recursos</artifactId>

com.example

在资源注册项目中:

  <parent>
    <groupId>com.example</groupId>
    <artifactId>padre</artifactId>
    <version>1.0.0</version>
  </parent>

  <groupId>com.example.recursos</groupId>
  <artifactId>recursos</artifactId>
  <version>1.0.0</version>
 <parent>
    <groupId>com.example</groupId>
    <artifactId>padre</artifactId>
    <version>1.0.0</version>
 </parent>
 <artifactId>recursos</artifactId>

com.example

Maven甚至鼓励您避免在子项目中设置groupId和版本

其他提示: 当您在CompositeApplication项目pom编辑器中打开CAP的pom.xml时,在保存它时,它始终会设置de groupId和version。即使您已经设置了父项并同时删除了这两个项