美文网首页
SpringCloudAlibaba Module依赖程序包找不

SpringCloudAlibaba Module依赖程序包找不

作者: 圈圈_Emily | 来源:发表于2021-03-27 18:17 被阅读0次

项目使用了SpringCloudAlibaba, 在Module中使用了feign调用其他的服务.打包的时候报程序包找不到.

加上配置

<build>

        <finalName>服务名</finalName>

        <plugins>

            <plugin>

                <groupId>org.springframework.boot</groupId>

                <artifactId>spring-boot-maven-plugin</artifactId>

                <executions>

                    <execution>

                        <goals>

                            <goal>repackage</goal>

                        </goals>

                    </execution>

                </executions>

                <configuration>

                    <classifier>exe</classifier>

                </configuration>

            </plugin>

        </plugins>

    </build>

本服务会被打成两个包, 一个是 服务名.jar, 可以被依赖, 服务名-exe.jar,可执行

相关文章

网友评论

      本文标题:SpringCloudAlibaba Module依赖程序包找不

      本文链接:https://www.haomeiwen.com/subject/clpyhltx.html