|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | 5 | <modelVersion>4.0.0</modelVersion> |
5 | 6 |
|
|
19 | 20 |
|
20 | 21 | <properties> |
21 | 22 | <automatic.module.name>io.prometheus.metrics.exporter.opentelemetry</automatic.module.name> |
| 23 | + <!-- don't update with dependabot, the Otel agent can handle older versions --> |
| 24 | + <otel-dynamic-load.version>1.29.0</otel-dynamic-load.version> |
22 | 25 | </properties> |
23 | 26 |
|
24 | 27 | <dependencyManagement> |
|
39 | 42 | <artifactId>prometheus-metrics-core</artifactId> |
40 | 43 | <version>${project.version}</version> |
41 | 44 | </dependency> |
42 | | - <dependency> |
43 | | - <groupId>io.prometheus</groupId> |
44 | | - <artifactId>prometheus-metrics-exporter-opentelemetry-otel-agent-resources</artifactId> |
45 | | - <version>${project.version}</version> |
46 | | - </dependency> |
47 | 45 | <dependency> |
48 | 46 | <groupId>io.opentelemetry</groupId> |
49 | 47 | <artifactId>opentelemetry-api</artifactId> |
|
103 | 101 |
|
104 | 102 | <build> |
105 | 103 | <resources> |
| 104 | + <resource> |
| 105 | + <directory>src/main/resources</directory> |
| 106 | + </resource> |
106 | 107 | <resource> |
107 | 108 | <directory>src/main/resources-filtered</directory> |
108 | 109 | <filtering>true</filtering> |
109 | 110 | </resource> |
110 | 111 | </resources> |
111 | 112 | <plugins> |
| 113 | + <plugin> |
| 114 | + <groupId>org.apache.maven.plugins</groupId> |
| 115 | + <artifactId>maven-dependency-plugin</artifactId> |
| 116 | + <executions> |
| 117 | + <execution> |
| 118 | + <id>copy</id> |
| 119 | + <phase>validate</phase> |
| 120 | + <goals> |
| 121 | + <goal>copy</goal> |
| 122 | + </goals> |
| 123 | + </execution> |
| 124 | + </executions> |
| 125 | + <configuration> |
| 126 | + <artifactItems> |
| 127 | + <artifactItem> |
| 128 | + <groupId>io.opentelemetry</groupId> |
| 129 | + <artifactId>opentelemetry-api</artifactId> |
| 130 | + <version>${otel-dynamic-load.version}</version> |
| 131 | + <outputDirectory>${project.basedir}/src/main/resources/lib/ |
| 132 | + </outputDirectory> |
| 133 | + </artifactItem> |
| 134 | + <artifactItem> |
| 135 | + <groupId>io.opentelemetry</groupId> |
| 136 | + <artifactId>opentelemetry-context</artifactId> |
| 137 | + <version>${otel-dynamic-load.version}</version> |
| 138 | + <outputDirectory>${project.basedir}/src/main/resources/lib/ |
| 139 | + </outputDirectory> |
| 140 | + </artifactItem> |
| 141 | + </artifactItems> |
| 142 | + </configuration> |
| 143 | + </plugin> |
112 | 144 | <plugin> |
113 | 145 | <groupId>org.codehaus.mojo</groupId> |
114 | 146 | <artifactId>build-helper-maven-plugin</artifactId> |
|
128 | 160 | </execution> |
129 | 161 | </executions> |
130 | 162 | </plugin> |
| 163 | + <plugin> |
| 164 | + <groupId>org.jacoco</groupId> |
| 165 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 166 | + <configuration> |
| 167 | + <excludes> |
| 168 | + <exclude>**/lib/*.jar</exclude> |
| 169 | + <exclude>**/ResourceAttributesFromOtelAgent*</exclude> |
| 170 | + </excludes> |
| 171 | + </configuration> |
| 172 | + </plugin> |
131 | 173 | <plugin> |
132 | 174 | <groupId>org.apache.maven.plugins</groupId> |
133 | 175 | <artifactId>maven-shade-plugin</artifactId> |
|
200 | 242 | </relocations> |
201 | 243 | <transformers> |
202 | 244 | <transformer |
203 | | - implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 245 | + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
204 | 246 | </transformers> |
205 | 247 | <filters> |
206 | 248 | <filter> |
|
0 commit comments