diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..da0ee205f77b2754b1f33dfbda993466d7b9f5a9 --- /dev/null +++ b/pom.xml @@ -0,0 +1,105 @@ +<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>com.google.net.stubby</groupId> + <artifactId>stubby-parent</artifactId> + <version>0.1.0-SNAPSHOT</version> + </parent> + + <artifactId>grpc-hello-world</artifactId> + <packaging>jar</packaging> + + <name>Hello gRPC World</name> + + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>stubby-core</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>stubby-netty</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>stubby-okhttp</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>stubby-stub</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>stubby-testing</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-core</artifactId> + <scope>compile</scope> + </dependency> + </dependencies> + + <build> + <plugins> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>assemble-all</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + <configuration> + <descriptorRefs> + <descriptorRef>jar-with-dependencies</descriptorRef> + </descriptorRefs> + </configuration> + </plugin> + + <plugin> + <groupId>com.internetitem</groupId> + <artifactId>write-properties-file-maven-plugin</artifactId> + <executions> + <execution> + <id>bootclasspath</id> + <phase>prepare-package</phase> + <goals> + <goal>write-properties-file</goal> + </goals> + <configuration> + <filename>bootclasspath.properties</filename> + <outputDirectory>${project.build.directory}</outputDirectory> + <properties> + <property> + <name>bootclasspath</name> + <value>${argLine.bootcp}</value> + </property> + <property> + <name>jar</name> + <value>${project.build.directory}/${project.artifactId}-${project.version}-jar-with-dependencies.jar</value> + </property> + </properties> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project>