0

我试过这样配置,但是会出现异常!</p>

<build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <skip></skip>
                    <executable>true</executable>
                    <embeddedLaunchScriptProperties>
                        <property>
                            <name>inlinedConfScript</name>
                            <value>/app/knowledge-base.conf</value>
                        </property>
                    </embeddedLaunchScriptProperties>
                </configuration>
            </plugin>
        </plugins>
   </build>

未能在项目知识库:\app\knowledge-base.conf 上执行目标 org.springframework.boot:spring-boot-maven-plugin:2.1.7.RELEASE:repackage (repackage)

4

1 回答 1

0
                        <property>
                            <name>inlinedConfScript</name>
                            <value>${basedir}/app/knowledge-base.conf</value>
                        </property>

${basedir} 项目的根目录。

于 2021-01-09T21:03:47.943 回答