pinpoint-tomcat-plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.navercorp.pinpoint</groupId> <artifactId>pinpoint-tomcat-plugin</artifactId> <version>3.0.3</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright 2018 NAVER Corp. ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.navercorp.pinpoint</groupId> <artifactId>pinpoint-plugins</artifactId> <version>3.0.3</version> </parent> <artifactId>pinpoint-tomcat-plugin</artifactId> <name>pinpoint-tomcat-plugin</name> <packaging>jar</packaging> <properties> <test.jdk.home>${env.JAVA_8_HOME}</test.jdk.home> </properties> <dependencies> <dependency> <groupId>com.navercorp.pinpoint</groupId> <artifactId>pinpoint-bootstrap-core</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>com.navercorp.pinpoint</groupId> <artifactId>pinpoint-profiler</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.navercorp.pinpoint</groupId> <artifactId>pinpoint-common-servlet</artifactId> <version>${project.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.navercorp.pinpoint</groupId> <artifactId>pinpoint-jboss-plugin</artifactId> <version>${project.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>jakarta.servlet</groupId> <artifactId>jakarta.servlet-api</artifactId> <version>5.0.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>servlet-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>catalina</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>coyote</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>${plugin.shade.version}</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <artifactSet> <includes> <include>com.navercorp.pinpoint:pinpoint-common-servlet</include> <includes>com.navercorp.pinpoint:pinpoint-jboss-plugin</includes> </includes> </artifactSet> <filters> <filter> <artifact>com.navercorp.pinpoint:pinpoint-common-servlet</artifact> <excludes> <exclude>META-INF/MANIFEST.MF</exclude> </excludes> </filter> <filter> <artifact>com.navercorp.pinpoint:pinpoint-jboss-plugin</artifact> <includes> <include>com/navercorp/pinpoint/plugin/jboss/JbossConfig.class</include> <include>com/navercorp/pinpoint/plugin/jboss/JbossConstants.class</include> <include>com/navercorp/pinpoint/plugin/jboss/JbossDetector.class</include> </includes> </filter> </filters> <relocations> <relocation> <pattern>com.navercorp.pinpoint.plugin.common.servlet</pattern> <shadedPattern>com.navercorp.pinpoint.plugin.tomcat.common.servlet</shadedPattern> </relocation> </relocations> <dependencyReducedPomLocation> ${project.build.directory}/dependency-reduced-pom.xml </dependencyReducedPomLocation> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifestEntries> <Pinpoint-Plugin-Package-Class-Requirements>com.navercorp.pinpoint.plugin.tomcat.javax:javax.servlet.http.HttpServletRequest, com.navercorp.pinpoint.plugin.tomcat.jakarta:jakarta.servlet.http.HttpServletRequest</Pinpoint-Plugin-Package-Class-Requirements> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> </project>