How to use inlinedConfScript to configure JAVA_OPTS with maven?

820 views Asked by At

I have tried to configure it like this but there will be an exception!

<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>

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.7.RELEASE:repackage (repackage) on project knowledge-base: \app\knowledge-base.conf

1

There are 1 answers

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

${basedir} the root directory of your project.