父子工程maven依赖问题

父工程POM文件中

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.xxx</groupId>    
                <artifactId>yyy</artifactId>    
                <version>1.1</version>         
                <type>jar</type>
                <scope>system</scope>
                <systemPath>${pom.basedir}/lib/yyy-Obfuscated-1.1.jar</systemPath>  
            </dependency>
        </dependencies>
    </dependencyManagement>


子工程希望引用,
子工程中POM文件

        <dependency>
            <groupId>com.xxx</groupId>     
            <artifactId>yyy</artifactId>    
        </dependency>

maven报找不到。问一下错在哪里,如果可以修改,如何修改

子工程的pom可能没有注明父项目?
加没加

<parent>

子工程要继承父工程,才能继承父工程定义的版本

        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.0.RELEASE</version>

的parent是

        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-dependencies</artifactId>
        <version>2.1.0.RELEASE</version>

spring-boot-dependencies定义的dependencyManagement,spring-boot-starter-parent及其子pom在引入时就可以不指定version,指定了version的话,以当前文件版本为准。

建议你看下这篇博客maven父子模块

多层架构设计