Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • release
  • OZG-7378_fix_missing_userid
  • 0.7.0
  • 0.6.0
  • 0.5.0
  • 0.4.0
  • 0.3.0
  • 0.2.0
  • 0.1.1
  • 0.1.0
11 results

pom.xml

Blame
  • pom.xml 3.46 KiB
    <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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
    
        <parent>
            <groupId>de.ozgcloud.archive</groupId>
            <artifactId>archive-manager</artifactId>
            <version>0.2.0-SNAPSHOT</version>
        </parent>
    
        <artifactId>archive-manager-interface</artifactId>
        <name>OZG-Cloud Archive Manager Interface</name>
        <description>gRPC Api for Archive Manager</description>
    
        <dependencies>
            <!-- GRPC -->
            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-stub</artifactId>
            </dependency>
            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-protobuf</artifactId>
            </dependency>
    
            <dependency>
                <groupId>jakarta.annotation</groupId>
                <artifactId>jakarta.annotation-api</artifactId>
            </dependency>
        </dependencies>
    
        <build>
            <sourceDirectory>src/main/protobuf</sourceDirectory>
    
            <extensions>
                <extension>
                    <groupId>kr.motd.maven</groupId>
                    <artifactId>os-maven-plugin</artifactId>
                </extension>
            </extensions>
    
            <plugins>
                <plugin>
                    <groupId>com.github.os72</groupId>
                    <artifactId>protoc-jar-maven-plugin</artifactId>
                    <version>${protoc-jar-plugin.version}</version>
                    <executions>
                        <execution>
                            <phase>generate-sources</phase>
                            <goals>
                                <goal>run</goal>
                            </goals>
                            <configuration>
                                <outputTargets>
                                    <outputTarget>
                                        <type>java</type>
                                    </outputTarget>
                                    <outputTarget>
                                        <type>grpc-java</type>
                                        <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.58.0</pluginArtifact>
                                    </outputTarget>
                                </outputTargets>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
    
                <plugin>
                    <groupId>io.github.floverfelt</groupId>
                    <artifactId>find-and-replace-maven-plugin</artifactId>
                    <version>${find-and-replace-maven-plugin.version}</version>
                    <executions>
                        <execution>
                            <id>exec</id>
                            <phase>process-sources</phase>
                            <goals>
                                <goal>find-and-replace</goal>
                            </goals>
                            <configuration>
                                <replacementType>file-contents</replacementType>
                                <baseDir>target/generated-sources/</baseDir>
                                <findRegex>javax</findRegex>
                                <replaceValue>jakarta</replaceValue>
                                <recursive>true</recursive>
                                <fileMask>.java</fileMask>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </project>