Spring boot application as dependency

前端 未结 1 1382
星月不相逢
星月不相逢 2021-02-20 10:49

My problem is that I have a multi module maven build where one part is generated by swagger as a spring boot application. The second module should extend on the code generated a

相关标签:
1条回答
  • 2021-02-20 11:34

    As stated here:

    https://happilyblogging.wordpress.com/2017/07/31/using-spring-boot-application-as-dependency-in-another-spring-boot-application-project/

    The problem is in the generated pom.xml.

    If I add the configuration part to the project1-api spring-boot plugin part, it works.

        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <executions>
                <execution>
                    <goals>
                        <goal>repackage</goal>
                    </goals>
                    <configuration>
                        <classifier>exec</classifier>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    
    0 讨论(0)
提交回复
热议问题