简体   繁体   English

如何使Eclipse兑现完整的pom.xml模块

[英]How do I get Eclipse to honor a pom.xml full of modules

Using Eclipse Neon 1a Release 4.6.1, Eclipse m2e Version 1.7.0.20160603 使用Eclipse Neon 1a版本4.6.1,Eclipse m2e版本1.7.0.20160603

Top level pom looks like this: 顶级pom看起来像这样:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>BORA-WFM</groupId>
    <artifactId>BORA-WFM-aggregator</artifactId>
    <version>1.0.1</version>
    <packaging>pom</packaging>

    <modules>
        <module>Mike</module>
        <module>ike</module>
        <module>bike</module>
    </modules>
</project>

I've run Project Context Menu Maven => Update Project... but Eclipse / maven refuses to recognize and compile the modules. 我已经运行了项目上下文菜单Maven =>更新项目...,但是Eclipse / maven拒绝识别和编译模块。

How do I make this work? 我该如何工作?

Eclipse is unable to honor them as IntelliJ can. Eclipse无法像IntelliJ那样兑现它们。 You can create like a bunch of new (dependent with eachother) projects that are actually Your submodules. 您可以创建实际上是您的子模块的一堆新项目(彼此依赖)。

There are two ways: 有两种方法:

1.File --> Import --> General/Existing Projects into Workspace Then You select a path being Your root project, and eclipse will detect subprojects, You can checkbox them and they will be imported 1.File-> Import-> General / Existing Projects into Workspace然后您选择一个路径作为您的根项目,eclipse将检测到子项目,您可以选中它们并将其导入

2.You can right click on a project and do Configure-->Detect Nested Projects 2.您可以右键单击一个项目并执行配置->检测嵌套项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM