1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 3 <modelVersion>4.0.0</modelVersion> 4 <groupId>io.opencensus</groupId> 5 <artifactId>opencensus-examples</artifactId> 6 <packaging>jar</packaging> 7 <version>0.17.0-SNAPSHOT</version><!-- CURRENT_OPENCENSUS_VERSION --> 8 <name>opencensus-examples</name> 9 <url>http://maven.apache.org</url> 10 <properties> 11 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 12 <!-- change to the version you want to use. --> 13 <opencensus.version>0.16.1</opencensus.version><!-- LATEST_OPENCENSUS_RELEASE_VERSION --> 14 <grpc.version>1.13.1</grpc.version><!-- CURRENT_GRPC_VERSION --> 15 </properties> 16 <dependencies> 17 <dependency> 18 <groupId>io.opencensus</groupId> 19 <artifactId>opencensus-api</artifactId> 20 <version>${opencensus.version}</version> 21 </dependency> 22 <dependency> 23 <groupId>io.opencensus</groupId> 24 <artifactId>opencensus-contrib-grpc-metrics</artifactId> 25 <version>${opencensus.version}</version> 26 </dependency> 27 <dependency> 28 <groupId>io.opencensus</groupId> 29 <artifactId>opencensus-contrib-zpages</artifactId> 30 <version>${opencensus.version}</version> 31 </dependency> 32 <dependency> 33 <groupId>io.opencensus</groupId> 34 <artifactId>opencensus-exporter-stats-stackdriver</artifactId> 35 <version>${opencensus.version}</version> 36 </dependency> 37 <dependency> 38 <groupId>io.opencensus</groupId> 39 <artifactId>opencensus-exporter-stats-prometheus</artifactId> 40 <version>${opencensus.version}</version> 41 </dependency> 42 <dependency> 43 <groupId>io.opencensus</groupId> 44 <artifactId>opencensus-exporter-trace-stackdriver</artifactId> 45 <version>${opencensus.version}</version> 46 </dependency> 47 <dependency> 48 <groupId>io.opencensus</groupId> 49 <artifactId>opencensus-exporter-trace-logging</artifactId> 50 <version>${opencensus.version}</version> 51 </dependency> 52 <dependency> 53 <groupId>io.grpc</groupId> 54 <artifactId>grpc-netty</artifactId> 55 <version>${grpc.version}</version> 56 </dependency> 57 <dependency> 58 <groupId>io.grpc</groupId> 59 <artifactId>grpc-protobuf</artifactId> 60 <version>${grpc.version}</version> 61 </dependency> 62 <dependency> 63 <groupId>io.grpc</groupId> 64 <artifactId>grpc-stub</artifactId> 65 <version>${grpc.version}</version> 66 </dependency> 67 <dependency> 68 <groupId>io.prometheus</groupId> 69 <artifactId>simpleclient_httpserver</artifactId> 70 <version>0.3.0</version> 71 </dependency> 72 <dependency> 73 <groupId>io.opencensus</groupId> 74 <artifactId>opencensus-impl</artifactId> 75 <version>${opencensus.version}</version> 76 <scope>runtime</scope> 77 </dependency> 78 <dependency> 79 <groupId>io.netty</groupId> 80 <artifactId>netty-tcnative-boringssl-static</artifactId> 81 <version>2.0.8.Final</version> 82 <scope>runtime</scope> 83 </dependency> 84 </dependencies> 85 <build> 86 <extensions> 87 <extension> 88 <groupId>kr.motd.maven</groupId> 89 <artifactId>os-maven-plugin</artifactId> 90 <version>1.5.0.Final</version> 91 </extension> 92 </extensions> 93 <pluginManagement> 94 <plugins> 95 <plugin> 96 <groupId>org.apache.maven.plugins</groupId> 97 <artifactId>maven-compiler-plugin</artifactId> 98 <version>3.7.0</version> 99 <configuration> 100 <source>1.8</source> 101 <target>1.8</target> 102 </configuration> 103 </plugin> 104 </plugins> 105 </pluginManagement> 106 <plugins> 107 <plugin> 108 <groupId>org.codehaus.mojo</groupId> 109 <artifactId>appassembler-maven-plugin</artifactId> 110 <version>1.10</version> 111 <configuration> 112 <programs> 113 <program> 114 <id>TagContextExample</id> 115 <mainClass>io.opencensus.examples.tags.TagContextExample</mainClass> 116 </program> 117 <program> 118 <id>MultiSpansTracing</id> 119 <mainClass>io.opencensus.examples.trace.MultiSpansTracing</mainClass> 120 </program> 121 <program> 122 <id>MultiSpansScopedTracing</id> 123 <mainClass>io.opencensus.examples.trace.MultiSpansScopedTracing</mainClass> 124 </program> 125 <program> 126 <id>MultiSpansContextTracing</id> 127 <mainClass>io.opencensus.examples.trace.MultiSpansContextTracing</mainClass> 128 </program> 129 <program> 130 <id>ZPagesTester</id> 131 <mainClass>io.opencensus.examples.zpages.ZPagesTester</mainClass> 132 </program> 133 <program> 134 <id>QuickStart</id> 135 <mainClass>io.opencensus.examples.helloworld.QuickStart</mainClass> 136 </program> 137 <program> 138 <id>HelloWorldClient</id> 139 <mainClass>io.opencensus.examples.grpc.helloworld.HelloWorldClient</mainClass> 140 </program> 141 <program> 142 <id>HelloWorldServer</id> 143 <mainClass>io.opencensus.examples.grpc.helloworld.HelloWorldServer</mainClass> 144 </program> 145 </programs> 146 </configuration> 147 </plugin> 148 <plugin> 149 <groupId>org.xolstice.maven.plugins</groupId> 150 <artifactId>protobuf-maven-plugin</artifactId> 151 <version>0.5.0</version> 152 <configuration> 153 <protocArtifact>com.google.protobuf:protoc:3.5.1-1:exe:${os.detected.classifier}</protocArtifact> 154 <pluginId>grpc-java</pluginId> 155 <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact> 156 </configuration> 157 <executions> 158 <execution> 159 <goals> 160 <goal>compile</goal> 161 <goal>compile-custom</goal> 162 </goals> 163 </execution> 164 </executions> 165 </plugin> 166 </plugins> 167 </build> 168</project> 169 170