Skip to content
Snippets Groups Projects
pom.xml 4.45 KiB
Newer Older
  • Learn to ignore specific revisions
  • <?xml version="1.0"?>
    
    <!--
    
        Copyright (C) 2023 Das Land Schleswig-Holstein vertreten durch den
        Ministerpräsidenten des Landes Schleswig-Holstein
        Staatskanzlei
        Abteilung Digitalisierung und zentrales IT-Management der Landesregierung
    
        Lizenziert unter der EUPL, Version 1.2 oder - sobald
        diese von der Europäischen Kommission genehmigt wurden -
        Folgeversionen der EUPL ("Lizenz");
        Sie dürfen dieses Werk ausschließlich gemäß
        dieser Lizenz nutzen.
        Eine Kopie der Lizenz finden Sie hier:
    
        https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
    
        Sofern nicht durch anwendbare Rechtsvorschriften
        gefordert oder in schriftlicher Form vereinbart, wird
        die unter der Lizenz verbreitete Software "so wie sie
        ist", OHNE JEGLICHE GEWÄHRLEISTUNG ODER BEDINGUNGEN -
        ausdrücklich oder stillschweigend - verbreitet.
        Die sprachspezifischen Genehmigungen und Beschränkungen
        unter der Lizenz sind dem Lizenztext zu entnehmen.
    
    -->
    
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    
    	<modelVersion>4.0.0</modelVersion>
    
    	<parent>
    		<groupId>de.ozgcloud.alfa</groupId>
    		<artifactId>alfa</artifactId>
    
    OZGCloud's avatar
    OZGCloud committed
    		<version>2.17.1</version>
    
    	</parent>
    
    	<artifactId>alfa-server</artifactId>
    	<name>Alfa Server</name>
    
    	<inceptionYear>2020</inceptionYear>
    
    
    	<properties>
    		<maven.compiler.source>${java.version}</maven.compiler.source>
    		<maven.compiler.target>${java.version}</maven.compiler.target>
    
    		<spring-boot.build-image.imageName>docker.ozg-sh.de/alfa:build-latest</spring-boot.build-image.imageName>
    	</properties>
    
    	<dependencies>
    		<dependency>
    			<groupId>de.ozgcloud.alfa</groupId>
    			<artifactId>alfa-service</artifactId>
    			<version>${project.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.boot</groupId>
    			<artifactId>spring-boot-starter</artifactId>
    		</dependency>
    
    		<dependency>
    			<groupId>org.springframework.cloud</groupId>
    			<artifactId>spring-cloud-starter-config</artifactId>
    		</dependency>
    
    		<!-- aspectJ -->
    		<dependency>
    			<groupId>org.aspectj</groupId>
    			<artifactId>aspectjweaver</artifactId>
    		</dependency>
    		<dependency>
    			<groupId>org.aspectj</groupId>
    			<artifactId>aspectjrt</artifactId>
    		</dependency>
    	</dependencies>
    
    	<build>
    		<finalName>${project.artifactId}</finalName>
    		<plugins>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-compiler-plugin</artifactId>
    			</plugin>
    			<plugin>
    				<groupId>org.springframework.boot</groupId>
    				<artifactId>spring-boot-maven-plugin</artifactId>
    				<configuration>
    					<profiles>
    						<profile>local</profile>
    						<profile>remotekc</profile>
    					</profiles>
    					<docker>
    						<publishRegistry>
    							<username>${docker-username}</username>
    							<password>${docker-password}</password>
    							<url>${docker-url}</url>
    						</publishRegistry>
    					</docker>
    				</configuration>
    			</plugin>
    
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-failsafe-plugin</artifactId>
    			</plugin>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-surefire-plugin</artifactId>
    			</plugin>
    			<plugin>
    				<groupId>org.jacoco</groupId>
    				<artifactId>jacoco-maven-plugin</artifactId>
    			</plugin>
    			<plugin>
    				<groupId>io.github.git-commit-id</groupId>
    				<artifactId>git-commit-id-maven-plugin</artifactId>
    			</plugin>
    
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-resources-plugin</artifactId>
    				<executions>
    					<execution>
    						<id>copy-client</id>
    						<phase>compile</phase>
    						<goals>
    							<goal>copy-resources</goal>
    						</goals>
    						<configuration>
    							<outputDirectory>
    
    OZGCloud's avatar
    OZGCloud committed
    								${project.build.directory}/classes/META-INF/resources
    							</outputDirectory>
    
    							<resources>
    								<resource>
    									<directory>
    
    										../${project.parent.artifactId}-client/dist/apps/alfa/
    
    OZGCloud's avatar
    OZGCloud committed
    									</directory>
    
    								</resource>
    							</resources>
    						</configuration>
    					</execution>
    				</executions>
    			</plugin>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-jar-plugin</artifactId>
    				<executions>
    					<execution>
    						<id>Jar Tests Package</id>
    						<phase>package</phase>
    						<goals>
    							<goal>test-jar</goal>
    						</goals>
    					</execution>
    				</executions>
    			</plugin>
    		</plugins>
    	</build>
    
    
    OZGCloud's avatar
    OZGCloud committed
    </project>