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-stub</artifactId>
- <name>PGV-Java Stubs</name>
- <dependencies>
- <dependency>
- <groupId>com.google.re2j</groupId>
- <artifactId>re2j</artifactId>
- <version>${re2j.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-validator</groupId>
- <artifactId>commons-validator</artifactId>
- <version>${commons.validator.version}</version>
- <exclusions>
- <exclusion>
- <groupId>*</groupId>
- <artifactId>*</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.google.protobuf</groupId>
- <artifactId>protobuf-java</artifactId>
- <version>${google.protobuf.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.protobuf</groupId>
- <artifactId>protobuf-java-util</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>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <resources>
- <resource>
- <directory>../..</directory>
- <includes>
- <include>validate/validate.proto</include>
- </includes>
- </resource>
- </resources>
- <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>
- <!--
- ~ Embed generated validate.proto classes for all Protobuf 3.x versions. This is safe because
- ~ Protobuf guarantees API stability for all 3.x version.
- ~ https://github.com/protocolbuffers/protobuf/blob/17cc42a45aeab0f78a137fa6be6c36095db32e58/CHANGES.txt#L107-L122
- -->
- <protocArtifact>com.google.protobuf:protoc:3.0.0:exe:${os.detected.classifier}</protocArtifact>
- </configuration>
- <executions>
- <execution>
- <id>protoc-java-pgv</id>
- <goals>
- <goal>compile</goal>
- </goals>
- <configuration>
- <protoSourceRoot>../../</protoSourceRoot>
- <includes>
- <include>validate/*.proto</include>
- </includes>
- </configuration>
- </execution>
- <execution>
- <id>protoc-java</id>
- <goals>
- <goal>test-compile</goal>
- </goals>
- </execution>
- <execution>
- <id>test-protoc-java-pgv</id>
- <goals>
- <goal>test-compile-custom</goal>
- </goals>
- <configuration>
- <pluginParameter>lang=java</pluginParameter>
- <pluginId>java-pgv</pluginId>
- <pluginArtifact>io.envoyproxy.protoc-gen-validate:protoc-gen-validate:${project.version}:exe:${os.detected.classifier}</pluginArtifact>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|