From 72dcdb5159e9b25bb5d4f605a8c139c1e9b627db Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 7 Nov 2022 14:50:06 +0100
Subject: [PATCH] =?UTF-8?q?OZG-3085=20MAven=20license=20plugin=20hinzugef?=
 =?UTF-8?q?=C3=BCgt?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 common/pom.xml                | 30 ++++++++++++++++++++++++++++++
 formsolutions-adapter/pom.xml | 27 +++++++++++++++++++++++++++
 forwarder/pom.xml             | 27 +++++++++++++++++++++++++++
 intelliform-adapter/pom.xml   | 27 ++++++++++++++++++++++++++-
 router/pom.xml                | 30 ++++++++++++++++++++++++++++++
 semantik-adapter/pom.xml      | 30 ++++++++++++++++++++++++++++++
 6 files changed, 170 insertions(+), 1 deletion(-)

diff --git a/common/pom.xml b/common/pom.xml
index e5da210e1..b8deaace1 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -12,6 +12,10 @@
 	</parent>
 	<artifactId>common</artifactId>
 	<name>Eingangs Adapter - Common</name>
+	
+	<properties>
+		<kop.license.version>1.3.0-SNAPSHOT</kop.license.version>
+	</properties>
 
 	<dependencies>
 		<!-- spring -->
@@ -59,6 +63,32 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-failsafe-plugin</artifactId>
 			</plugin>
+			
+			<plugin>
+				<groupId>com.mycila</groupId>
+				<artifactId>license-maven-plugin</artifactId>
+				<version>4.1</version>
+				<configuration>
+					<licenseSets>
+						<licenseSet>
+							<header>license/eupl_v1_2_de/header.txt</header>
+							<excludes>
+								<exclude>**/README</exclude>
+								<exclude>src/test/resources/**</exclude>
+								<exclude>src/main/resources/**</exclude>
+								<exclude>pom.xml</exclude>
+							</excludes>
+						</licenseSet>
+					</licenseSets>
+				</configuration>
+				<dependencies>
+                    <dependency>
+                        <groupId>de.itvsh.kop.common</groupId>
+                        <artifactId>kop-common-license</artifactId>
+                        <version>${kop.license.version}</version>
+                    </dependency>
+                </dependencies>
+			</plugin>
 		</plugins>
 	</build>
 </project>
\ No newline at end of file
diff --git a/formsolutions-adapter/pom.xml b/formsolutions-adapter/pom.xml
index 33af8d5f9..1a3f4f011 100644
--- a/formsolutions-adapter/pom.xml
+++ b/formsolutions-adapter/pom.xml
@@ -16,6 +16,7 @@
 
 	<properties>
 		<spring-boot.build-image.imageName>docker.ozg-sh.de/formsolutions-adapter:build-latest</spring-boot.build-image.imageName>
+		<kop.license.version>1.3.0-SNAPSHOT</kop.license.version>
 	</properties>
 
 	<dependencies>
@@ -160,6 +161,32 @@
 				<groupId>org.jacoco</groupId>
 				<artifactId>jacoco-maven-plugin</artifactId>
 			</plugin>
+			
+			<plugin>
+				<groupId>com.mycila</groupId>
+				<artifactId>license-maven-plugin</artifactId>
+				<version>4.1</version>
+				<configuration>
+					<licenseSets>
+						<licenseSet>
+							<header>license/eupl_v1_2_de/header.txt</header>
+							<excludes>
+								<exclude>**/README</exclude>
+								<exclude>src/test/resources/**</exclude>
+								<exclude>src/main/resources/**</exclude>
+								<exclude>pom.xml</exclude>
+							</excludes>
+						</licenseSet>
+					</licenseSets>
+				</configuration>
+				<dependencies>
+                    <dependency>
+                        <groupId>de.itvsh.kop.common</groupId>
+                        <artifactId>kop-common-license</artifactId>
+                        <version>${kop.license.version}</version>
+                    </dependency>
+                </dependencies>
+			</plugin>
 		</plugins>
 	</build>
 
diff --git a/forwarder/pom.xml b/forwarder/pom.xml
index 0688a659a..50fd5d2e0 100644
--- a/forwarder/pom.xml
+++ b/forwarder/pom.xml
@@ -15,6 +15,7 @@
 
 	<properties>
 		<spring-boot.build-image.imageName>docker.ozg-sh.de/forwarder:build-latest</spring-boot.build-image.imageName>
+		<kop.license.version>1.3.0-SNAPSHOT</kop.license.version>
 	</properties>
 
 	<dependencies>
@@ -73,6 +74,32 @@
 				<groupId>org.jacoco</groupId>
 				<artifactId>jacoco-maven-plugin</artifactId>
 			</plugin>
+			
+			<plugin>
+				<groupId>com.mycila</groupId>
+				<artifactId>license-maven-plugin</artifactId>
+				<version>4.1</version>
+				<configuration>
+					<licenseSets>
+						<licenseSet>
+							<header>license/eupl_v1_2_de/header.txt</header>
+							<excludes>
+								<exclude>**/README</exclude>
+								<exclude>src/test/resources/**</exclude>
+								<exclude>src/main/resources/**</exclude>
+								<exclude>pom.xml</exclude>
+							</excludes>
+						</licenseSet>
+					</licenseSets>
+				</configuration>
+				<dependencies>
+                    <dependency>
+                        <groupId>de.itvsh.kop.common</groupId>
+                        <artifactId>kop-common-license</artifactId>
+                        <version>${kop.license.version}</version>
+                    </dependency>
+                </dependencies>
+			</plugin>
 		</plugins>
 	</build>
 </project>
\ No newline at end of file
diff --git a/intelliform-adapter/pom.xml b/intelliform-adapter/pom.xml
index 7da575683..ee6c72397 100644
--- a/intelliform-adapter/pom.xml
+++ b/intelliform-adapter/pom.xml
@@ -18,6 +18,7 @@
 
 	<properties>
 		<spring-boot.build-image.imageName>docker.ozg-sh.de/intelliform-adapter:build-latest</spring-boot.build-image.imageName>
+		<kop.license.version>1.3.0-SNAPSHOT</kop.license.version>
 	</properties>
 
 
@@ -200,7 +201,31 @@
 				<groupId>pl.project13.maven</groupId>
 				<artifactId>git-commit-id-plugin</artifactId>
 			</plugin>
-
+			<plugin>
+				<groupId>com.mycila</groupId>
+				<artifactId>license-maven-plugin</artifactId>
+				<version>4.1</version>
+				<configuration>
+					<licenseSets>
+						<licenseSet>
+							<header>license/eupl_v1_2_de/header.txt</header>
+							<excludes>
+								<exclude>**/README</exclude>
+								<exclude>src/test/resources/**</exclude>
+								<exclude>src/main/resources/**</exclude>
+								<exclude>pom.xml</exclude>
+							</excludes>
+						</licenseSet>
+					</licenseSets>
+				</configuration>
+				<dependencies>
+                    <dependency>
+                        <groupId>de.itvsh.kop.common</groupId>
+                        <artifactId>kop-common-license</artifactId>
+                        <version>${kop.license.version}</version>
+                    </dependency>
+                </dependencies>
+			</plugin>
 		</plugins>
 	</build>
 
diff --git a/router/pom.xml b/router/pom.xml
index 35a5c132c..54aa542cb 100644
--- a/router/pom.xml
+++ b/router/pom.xml
@@ -9,6 +9,10 @@
 
 	<artifactId>router</artifactId>
 	<name>Eingangs Adapter - Router</name>
+	
+	<properties>
+		<kop.license.version>1.3.0-SNAPSHOT</kop.license.version>
+	</properties>
 
 	<dependencies>
 		<!-- own Projects -->
@@ -74,6 +78,32 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-failsafe-plugin</artifactId>
 			</plugin>
+			
+			<plugin>
+				<groupId>com.mycila</groupId>
+				<artifactId>license-maven-plugin</artifactId>
+				<version>4.1</version>
+				<configuration>
+					<licenseSets>
+						<licenseSet>
+							<header>license/eupl_v1_2_de/header.txt</header>
+							<excludes>
+								<exclude>**/README</exclude>
+								<exclude>src/test/resources/**</exclude>
+								<exclude>src/main/resources/**</exclude>
+								<exclude>pom.xml</exclude>
+							</excludes>
+						</licenseSet>
+					</licenseSets>
+				</configuration>
+				<dependencies>
+                    <dependency>
+                        <groupId>de.itvsh.kop.common</groupId>
+                        <artifactId>kop-common-license</artifactId>
+                        <version>${kop.license.version}</version>
+                    </dependency>
+                </dependencies>
+			</plugin>
 		</plugins>
 	</build>
 </project>
\ No newline at end of file
diff --git a/semantik-adapter/pom.xml b/semantik-adapter/pom.xml
index 9448a4c4e..8cc9cedf0 100644
--- a/semantik-adapter/pom.xml
+++ b/semantik-adapter/pom.xml
@@ -12,6 +12,10 @@
 	<artifactId>semantik-adapter</artifactId>
 	<name>Eingangs Adapter - Semantik</name>
 	
+	<properties>
+		<kop.license.version>1.3.0-SNAPSHOT</kop.license.version>
+	</properties>
+	
 	<dependencies>
 		<!-- own projects -->	
 		<dependency>
@@ -56,6 +60,32 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-failsafe-plugin</artifactId>
 			</plugin>
+			
+			<plugin>
+				<groupId>com.mycila</groupId>
+				<artifactId>license-maven-plugin</artifactId>
+				<version>4.1</version>
+				<configuration>
+					<licenseSets>
+						<licenseSet>
+							<header>license/eupl_v1_2_de/header.txt</header>
+							<excludes>
+								<exclude>**/README</exclude>
+								<exclude>src/test/resources/**</exclude>
+								<exclude>src/main/resources/**</exclude>
+								<exclude>pom.xml</exclude>
+							</excludes>
+						</licenseSet>
+					</licenseSets>
+				</configuration>
+				<dependencies>
+                    <dependency>
+                        <groupId>de.itvsh.kop.common</groupId>
+                        <artifactId>kop-common-license</artifactId>
+                        <version>${kop.license.version}</version>
+                    </dependency>
+                </dependencies>
+			</plugin>
 		</plugins>
 	</build>
 </project>
\ No newline at end of file
-- 
GitLab