Eclipse + Maven + Git + Multi-Module projects = Unhappiness

前端 未结 4 2230
别跟我提以往
别跟我提以往 2021-02-19 23:21

We\'ve got a multi-module project using Eclipse and Maven. The only way I could get it to work in the past was to use a flat layout for the projects, where the parent module was

4条回答
  •  悲哀的现实
    2021-02-19 23:29

    You can put your modules in Git with hierarchical layout. And build those modules by Maven. If those modules are projects(whatever java, c++ or php project) recognized by Eclipse, they can be imported into workspace as flat layout in workspace.

    -- the root of Git working directory
      -- moudule1
        -- project1(a java project)
          -- .project(a project file recognized by eclipse JDT)
          -- pom.xml
        -- project2(a java project)
          -- .project
          -- pom.xml
      -- module2
        -- projectA(a java project)
          -- .project(a project file recognized by eclipse JDT)
          -- pom.xml
        -- projectB(a c++ project)
          -- .project(a project file recognized by CDT)
          -- pom.xml 
    

提交回复
热议问题