2

在 Maven 中设定 System Property

 2 years ago
source link: https://blog.singee.me/2020/12/08/96452a749ccf485c837e60f4302be56a/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

在 Maven 中设定 System Property

发表于 2020-12-08

方式:在 pom 中引入 properties-maven-plugin

<project>
<!-- 原来的内容 -->
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<goals>
<goal>set-system-properties</goal>
</goals>
<configuration>
<properties>
<property>
<name>org.slf4j.simpleLogger.defaultLogLevel</name>
<value>debug</value>
</property>
<property>
<name>something</name>
<value>hoho</value>
</property>
</properties>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK