单体项目作为jar包变成微服务

背景

有两个项目:

  1. system : 单体spring boot项目,里面包含有api,如localhost:7001/login
  2. cloud-system-starter : 微服务system项目,里面包含有system单体项目的所有api,如localhost:7002/login
问题

我现在将system项目作为依赖,放在了cloud-system-starter项目中,但是在运行cloud-system-starter时,404错误,提示找不到localhost:7002/login;
system: pom.xml

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <!-- 微服务为true,单体项目为false -->
                    <skip>true</skip>
                </configuration>
            </plugin>
        </plugins>
    </build>

cloud-system-starter: pom.xml

    <dependencies>
        <dependency>
            <groupId>com.cloud</groupId>
            <artifactId>system</artifactId>
            <version>1.0.0-SNAPSHOT</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
期望

希望在system单体项目中开发的api可以直接在cloud-system-starter中使用,无需再开发微服务版本的api

把api的依赖写进system pom就行 有啥来问我