Skip to content

Commit 066c9c0

Browse files
committed
add maven property switch for disabling running mavenLicensePlugin
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
1 parent 248c01c commit 066c9c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@
248248
</ditto.thirdPartyLicences.excludedGroups>
249249

250250
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
251+
252+
<skipLicenseMavenPlugin>false</skipLicenseMavenPlugin>
251253
</properties>
252254

253255
<build>
@@ -654,6 +656,7 @@
654656
<artifactId>license-maven-plugin</artifactId>
655657
<inherited>false</inherited>
656658
<configuration>
659+
<skip>${skipLicenseMavenPlugin}</skip>
657660
<header>../legal/headers/license-header.txt</header>
658661
<validHeaders>
659662
<header>../legal/headers/license-header-2019.txt</header>
@@ -701,6 +704,7 @@
701704
<goal>add-third-party</goal>
702705
</goals>
703706
<configuration>
707+
<skipAddThirdParty>${skipLicenseMavenPlugin}</skipAddThirdParty>
704708
<outputDirectory>${project.build.outputDirectory}/META-INF</outputDirectory>
705709
<excludedGroups>${ditto.thirdPartyLicences.excludedGroups}</excludedGroups>
706710
<includedScopes>compile</includedScopes>

0 commit comments

Comments
 (0)