Can maven projects have multiple parents?

后端 未结 6 721
我在风中等你
我在风中等你 2020-12-01 04:06

We have Java and Flex projects. We currently have 1 base pom that contains the configurations we want to use for both projects. Problem with this is: Flex projects inherit c

6条回答
  •  無奈伤痛
    2020-12-01 04:47

    The only way is to have base-pom as parent of java-base-pom and flex-base-pom.

    I have similar structure for my spring projects:

    base-pom (basic configuration - eclipse, reports, repositories, etc)
    |
    + spring-base-pom (spring definitions)
      |
      + spring-jar-base-pom (jar specific definitions)
      |
      + spring-war-base-pom (spring web and servlet dependencies)
        |
        + spring-webapp-base_pom (spring web mvc dependencies)
    

提交回复
热议问题