带有子项目的Maven项目的配置,以访问所有Java设施

问题描述 投票:0回答:1

我在Eclipse中使用微服务有一个mavent父项目和一个maven子项目。但是我没有访问所有Java工具和信息的权限。例如,编译器和Java库的类型或JRE信息不可用。其他示例,我无法右键单击一种方法并转到其实现。当我右键单击该项目并转到属性时,我有以下图像。

enter image description here

编辑

。project文件

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>immobilier</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.m2e.core.maven2Builder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.m2e.core.maven2Nature</nature>
    </natures>
</projectDescription>
java eclipse maven configuration
1个回答
0
投票

我是在新的工作区中完成的

enter image description here

enter image description here

对于所有子模块都可以,而且我已经没有父模块了(这是正常的吗?)。此外,我还没有模块用户服务,这是我在开发期间添加的模块,尚未保存在git

© www.soinside.com 2019 - 2024. All rights reserved.