123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <?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/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>pgv-java</artifactId>
- <groupId>io.envoyproxy.protoc-gen-validate</groupId>
- <version>0.6.2-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>pgv-java-validation</artifactId>
- <name>PGV-Java Validation Harness</name>
- <properties>
- <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
- </properties>
- <dependencies>
- <dependency>
- <groupId>io.envoyproxy.protoc-gen-validate</groupId>
- <artifactId>pgv-java-stub</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.protobuf</groupId>
- <artifactId>protobuf-java</artifactId>
- <version>${google.protobuf.version}</version>
- </dependency>
- <!-- Depend on artifacts to ensure they are built before this module -->
- <dependency>
- <groupId>io.envoyproxy.protoc-gen-validate</groupId>
- <artifactId>protoc-gen-validate</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- </dependency>
- </dependencies>
- <build>
- <extensions>
- <extension>
- <groupId>kr.motd.maven</groupId>
- <artifactId>os-maven-plugin</artifactId>
- <version>1.4.1.Final</version>
- </extension>
- </extensions>
- <plugins>
- <plugin>
- <groupId>org.xolstice.maven.plugins</groupId>
- <artifactId>protobuf-maven-plugin</artifactId>
- <version>0.5.0</version>
- <configuration>
- <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
- </configuration>
- <executions>
- <!-- Generate PGV harness protos -->
- <execution>
- <id>protoc-java</id>
- <goals>
- <goal>compile</goal>
- </goals>
- <configuration>
- <protoSourceRoot>../../</protoSourceRoot>
- <includes>
- <include>tests/harness/harness.proto</include>
- <include>tests/harness/cases/*.proto</include>
- <include>tests/harness/cases/other_package/*.proto</include>
- </includes>
- </configuration>
- </execution>
- <execution>
- <id>protoc-java-pgv</id>
- <goals>
- <goal>compile-custom</goal>
- </goals>
- <configuration>
- <protoSourceRoot>../../</protoSourceRoot>
- <pluginParameter>lang=java</pluginParameter>
- <includes>
- <include>tests/harness/cases/*.proto</include>
- <include>tests/harness/cases/other_package/*.proto</include>
- </includes>
- <pluginId>java-pgv</pluginId>
- <pluginArtifact>io.envoyproxy.protoc-gen-validate:protoc-gen-validate:${project.version}:exe:${os.detected.classifier}</pluginArtifact>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>3.2.0</version>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <finalName>java-harness</finalName>
- <transformers>
- <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
- <manifestEntries>
- <Main-Class>io.envoyproxy.pgv.validation.JavaHarness</Main-Class>
- </manifestEntries>
- </transformer>
- </transformers>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|