Admin Panel

<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>de.bb.git</groupId>
    <artifactId>git</artifactId>
    <version>0.1.0</version>
    <packaging>war</packaging>


    <repositories>
        <repository>
            <id>bebbosoft</id>
            <url>https://www.bebbosoft.de/repo</url>
        </repository>
        <repository>
            <id>maven-central</id>
            <url>https://repo1.maven.org/maven2/</url>
        </repository>
    </repositories>

    <properties>
        <!-- Plugin Versions -->
        <version.maven.liquibase>4.21.1</version.maven.liquibase>
        <version.maven.compiler>3.8.1</version.maven.compiler>
        <version.maven.surefire>3.2.2</version.maven.surefire>
        <version.maven.war>3.3.1</version.maven.war>
        <version.maven.assembly>3.4.2</version.maven.assembly>
        <version.maven.dependency>3.6.0</version.maven.dependency>
        <version.maven.jacoco>0.8.11</version.maven.jacoco>
        <version.mavon.sonar>3.10.0.2594</version.mavon.sonar>


		<version.log>1.0.4</version.log>

        <!-- Misc -->
        <sonar.projectKey>git</sonar.projectKey>
        <sonar.host.url>http://localhost:9000</sonar.host.url>
        
        <!-- surefire -->
		<argLine></argLine>
		<surefireArgLine></surefireArgLine>
    </properties>

    <dependencies>
            <!-- Jakarta APIs & JSTL -->
        <dependency>
            <groupId>jakarta.servlet</groupId>
            <artifactId>jakarta.servlet-api</artifactId>
            <version>6.0.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.servlet.jsp</groupId>
            <artifactId>jakarta.servlet.jsp-api</artifactId>
            <version>3.1.1</version>
            <scope>provided</scope>
        </dependency>
		<dependency>
		  <groupId>jakarta.servlet.jsp.jstl</groupId>
		  <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
		  <version>3.0.0</version>
		</dependency>
		<dependency>
		  <groupId>org.glassfish.web</groupId>
		  <artifactId>jakarta.servlet.jsp.jstl</artifactId>
		  <version>3.0.0</version>
		</dependency>
	    <dependency>
		    <groupId>org.eclipse.jgit</groupId>
		    <artifactId>org.eclipse.jgit</artifactId>
		    <version>6.8.0.202311291450-r</version>
		</dependency>
		<dependency>
		  <groupId>de.bb</groupId>
		  <artifactId>log</artifactId>
		  <version>${version.log}</version>
		</dependency>
    </dependencies>

	<build>
	  <sourceDirectory>src/main/java</sourceDirectory>
	  <testSourceDirectory>src/test/java</testSourceDirectory>
	
	  <resources>
	    <resource>
	      <directory>src/main/resources</directory>
	      <includes>
	        <include>**</include>
	      </includes>
	    </resource>
	    <resource>
	      <directory>${project.basedir}</directory>
	      <includes>
	        <include>pom.xml</include>
	      </includes>
	      <targetPath>META-INF</targetPath>
	    </resource>	    
	  </resources>
	
	  <testResources>
	    <testResource>
	      <directory>src/test/resources</directory>
	      <includes>
	        <include>**</include>
	      </includes>
	    </testResource>
	  </testResources>
	
	  <plugins>
	      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-dependency-plugin</artifactId>
      <version>3.6.0</version>
      <executions>
        <execution>
          <id>copy-war-dependencies</id>
          <phase>prepare-package</phase>
          <goals>
            <goal>copy-dependencies</goal>
          </goals>
          <configuration>
            <excludeGroupIds>jakarta</excludeGroupIds>
            <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib</outputDirectory>            
            <stripVersion>false</stripVersion>
            <useRepositoryLayout>false</useRepositoryLayout>
          </configuration>
        </execution>
      </executions>
    </plugin>

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-resources-plugin</artifactId>
      <version>3.3.1</version>
      <executions>
        <execution>
          <id>copy-compiled-classes</id>
          <phase>prepare-package</phase>
          <goals>
            <goal>copy-resources</goal>
          </goals>
          <configuration>
            <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
            <resources>
              <resource>
                <directory>${project.build.outputDirectory}</directory>
                <filtering>false</filtering>
              </resource>
            </resources>
          </configuration>
        </execution>
      </executions>
    </plugin>
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-resources-plugin</artifactId>
  <executions>
    <execution>
      <id>copy-webapp-resources</id>
      <phase>prepare-package</phase>
      <goals>
        <goal>copy-resources</goal>
      </goals>
      <configuration>
        <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
        <resources>
          <resource>
            <directory>src/main/webapp</directory>
            <filtering>false</filtering>
          </resource>
        </resources>
      </configuration>
    </execution>
  </executions>
</plugin>    
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-war-plugin</artifactId>
  <configuration>
    <warSourceDirectory>${project.build.directory}/${project.build.finalName}</warSourceDirectory>
<!--    <packagingExcludes>WEB-INF/lib/**,WEB-INF/classes/**</packagingExcludes>-->
    <attachClasses>false</attachClasses>
   <failOnMissingWebXml>false</failOnMissingWebXml>
  </configuration>
</plugin>
    
	  </plugins>
	
	  <pluginManagement>
	    <plugins>
	      <plugin>
	        <groupId>org.liquibase</groupId>
	        <artifactId>liquibase-maven-plugin</artifactId>
	        <version>${version.maven.liquibase}</version>
	        <configuration>
	          <propertyFile>src/main/sql/liquibase.properties</propertyFile>
	        </configuration>
	        <dependencies>
	          <dependency>
	            <groupId>org.postgresql</groupId>
	            <artifactId>postgresql</artifactId>
	            <version>${version.postgresql}</version>
	          </dependency>
	        </dependencies>
	      </plugin>
	
	      <plugin>
	        <groupId>org.apache.maven.plugins</groupId>
	        <artifactId>maven-war-plugin</artifactId>
	        <version>${version.maven.war}</version>        
	      </plugin>
	
	      <plugin>
	        <groupId>org.apache.maven.plugins</groupId>
	        <artifactId>maven-compiler-plugin</artifactId>
	        <version>${version.maven.compiler}</version>
          <configuration>
            <source>17</source>
            <target>17</target>
          </configuration>
	      </plugin>
	
	      <plugin>
	        <groupId>org.apache.maven.plugins</groupId>
	        <artifactId>maven-surefire-plugin</artifactId>
	        <version>${version.maven.surefire}</version>
	        <configuration>
	          <argLine>@{argLine} ${surefireArgLine}</argLine>
	        </configuration>
	      </plugin>
	        
	      <plugin>
	        <groupId>org.apache.maven.plugins</groupId>
	        <artifactId>maven-eclipse-plugin</artifactId>
	        <configuration>
	          <additionalProjectFacets>
	            <jst.web>5.0</jst.web>
	          </additionalProjectFacets>
	        </configuration>
	      </plugin>
	
	      <plugin>
	        <groupId>org.jacoco</groupId>
	        <artifactId>jacoco-maven-plugin</artifactId>
	        <version>${version.maven.jacoco}</version>
	        <executions>
	          <execution>
	            <id>default-prepare-agent</id>
	            <goals>
	              <goal>prepare-agent</goal>
	              <goal>report</goal>
	            </goals>
	          </execution>
	        </executions>
	      </plugin>
	
<!--	      <plugin>
	        <groupId>org.sonarsource.scanner.maven</groupId>
	        <artifactId>sonar-maven-plugin</artifactId>
	        <version>${version.mavon.sonar}</version>
	      </plugin>
-->	    </plugins>
	  </pluginManagement>
	</build>
</project>