mockserver-client-java
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.mock-server</groupId> <artifactId>mockserver-client-java</artifactId> <version>5.15.0</version> </dependency>
<?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> <groupId>org.mock-server</groupId> <artifactId>mockserver</artifactId> <version>5.15.0</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>mockserver-client-java</artifactId> <name>MockServer Java Client</name> <description>A java client for the MockServer</description> <url>https://www.mock-server.com</url> <dependencies> <!-- mockserver --> <dependency> <groupId>${project.groupId}</groupId> <artifactId>mockserver-core</artifactId> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>mockserver-testing</artifactId> <scope>test</scope> </dependency> <!-- commons & guava --> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </dependency> <!-- logging --> <dependency> <!-- will map to any underlying logging framework --> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-jdk14</artifactId> <optional>true</optional> <!-- do not impose on project importing mock-server --> </dependency> <!-- test --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <!-- copy dependency-reduced-pom.xml to target folder --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>copy-resources</id> <phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <overwrite>true</overwrite> <resources> <resource> <!--source --> <directory>${project.basedir}</directory> <filtering>true</filtering> <includes> <include>dependency-reduced-pom.xml</include> </includes> </resource> </resources> <!--target --> <outputDirectory>${project.build.directory}</outputDirectory> </configuration> </execution> </executions> </plugin> <!-- update version in dependency-reduced-pom.xml in target directory --> <plugin> <groupId>com.google.code.maven-replacer-plugin</groupId> <artifactId>replacer</artifactId> <version>1.5.3</version> <executions> <execution> <id>replace-project-version</id> <phase>process-resources</phase> <goals> <goal>replace</goal> </goals> </execution> </executions> <configuration> <detail>true</detail> <basedir>${project.build.directory}</basedir> <includes> <include>dependency-reduced-pom.xml</include> </includes> <replacements> <replacement> <token>@project.version</token> <value>${project.version}</value> </replacement> </replacements> </configuration> </plugin> <!-- generate shaded dependency --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.4.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" /> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>META-INF/LICENSE</resource> </transformer> </transformers> <createSourcesJar>true</createSourcesJar> <shadeSourcesContent>true</shadeSourcesContent> <shadedArtifactAttached>true</shadedArtifactAttached> <shadedClassifierName>shaded</shadedClassifierName> <createDependencyReducedPom>false</createDependencyReducedPom> <dependencyReducedPomLocation>${basedir}/dependency-reduced-pom.xml</dependencyReducedPomLocation> <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope> <minimizeJar>false</minimizeJar> <relocations> <relocation> <pattern>com.ethlo</pattern> <shadedPattern>shaded_package.com.ethlo</shadedPattern> </relocation> <relocation> <pattern>com.fasterxml</pattern> <shadedPattern>shaded_package.com.fasterxml</shadedPattern> </relocation> <relocation> <pattern>com.github</pattern> <shadedPattern>shaded_package.com.github</shadedPattern> </relocation> <relocation> <pattern>com.google</pattern> <shadedPattern>shaded_package.com.google</shadedPattern> </relocation> <relocation> <pattern>com.jayway</pattern> <shadedPattern>shaded_package.com.jayway</shadedPattern> </relocation> <relocation> <pattern>com.jcraft</pattern> <shadedPattern>shaded_package.com.jcraft</shadedPattern> </relocation> <relocation> <pattern>com.lmax</pattern> <shadedPattern>shaded_package.com.lmax</shadedPattern> </relocation> <relocation> <pattern>com.networknt</pattern> <shadedPattern>shaded_package.com.networknt</shadedPattern> </relocation> <relocation> <pattern>com.nimbusds</pattern> <shadedPattern>shaded_package.com.nimbusds</shadedPattern> </relocation> <relocation> <pattern>com.samskivert</pattern> <shadedPattern>shaded_package.com.samskivert</shadedPattern> </relocation> <relocation> <pattern>com.sun</pattern> <shadedPattern>shaded_package.com.sun</shadedPattern> </relocation> <relocation> <pattern>io.github</pattern> <shadedPattern>shaded_package.io.github</shadedPattern> </relocation> <relocation> <pattern>io.netty</pattern> <shadedPattern>shaded_package.io.netty</shadedPattern> </relocation> <relocation> <pattern>io.swagger</pattern> <shadedPattern>shaded_package.io.swagger</shadedPattern> </relocation> <relocation> <pattern>io.prometheus</pattern> <shadedPattern>shaded_package.io.prometheus</shadedPattern> </relocation> <relocation> <pattern>jakarta.activation</pattern> <shadedPattern>shaded_package.jakarta.activation</shadedPattern> </relocation> <relocation> <pattern>jakarta.xml</pattern> <shadedPattern>shaded_package.jakarta.xml</shadedPattern> </relocation> <relocation> <pattern>javax.annotation</pattern> <shadedPattern>shaded_package.javax.annotation</shadedPattern> </relocation> <relocation> <pattern>javax.mail</pattern> <shadedPattern>shaded_package.javax.mail</shadedPattern> </relocation> <relocation> <pattern>javax.servlet</pattern> <shadedPattern>shaded_package.javax.servlet</shadedPattern> </relocation> <relocation> <pattern>javax.validation</pattern> <shadedPattern>shaded_package.javax.validation</shadedPattern> </relocation> <relocation> <pattern>joptsimple.internal</pattern> <shadedPattern>shaded_package.joptsimple.internal</shadedPattern> </relocation> <relocation> <pattern>joptsimple.util</pattern> <shadedPattern>shaded_package.joptsimple.util</shadedPattern> </relocation> <relocation> <pattern>net.javacrumbs</pattern> <shadedPattern>shaded_package.net.javacrumbs</shadedPattern> </relocation> <relocation> <pattern>net.jcip</pattern> <shadedPattern>shaded_package.net.jcip</shadedPattern> </relocation> <relocation> <pattern>net.minidev</pattern> <shadedPattern>shaded_package.net.minidev</shadedPattern> </relocation> <relocation> <pattern>nonapi.io</pattern> <shadedPattern>shaded_package.nonapi.io</shadedPattern> </relocation> <relocation> <pattern>org.apache</pattern> <shadedPattern>shaded_package.org.apache</shadedPattern> <excludes> <exclude>org.apache.velocity.**</exclude> </excludes> </relocation> <relocation> <pattern>org.bouncycastle</pattern> <shadedPattern>shaded_package.org.bouncycastle</shadedPattern> </relocation> <relocation> <pattern>org.checkerframework</pattern> <shadedPattern>shaded_package.org.checkerframework</shadedPattern> </relocation> <relocation> <pattern>org.glassfish</pattern> <shadedPattern>shaded_package.org.glassfish</shadedPattern> </relocation> <relocation> <pattern>org.hamcrest</pattern> <shadedPattern>shaded_package.org.hamcrest</shadedPattern> </relocation> <relocation> <pattern>org.joda</pattern> <shadedPattern>shaded_package.org.joda</shadedPattern> </relocation> <!-- deliberately skipped org.mozilla --> <relocation> <pattern>org.objectweb</pattern> <shadedPattern>shaded_package.org.objectweb</shadedPattern> </relocation> <!-- deliberately skipped org.slf4j --> <relocation> <pattern>org.xmlunit</pattern> <shadedPattern>shaded_package.org.xmlunit</shadedPattern> </relocation> <relocation> <pattern>org.yaml</pattern> <shadedPattern>shaded_package.org.yaml</shadedPattern> </relocation> </relocations> <filters> <!-- exclude duplicate SLF4J bindings --> <filter> <artifact>*:*</artifact> <excludes> <exclude>org/slf4j/impl/**</exclude> </excludes> </filter> <!-- exclude manifest signature files --> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> <filter> <artifact>com.github.java-json-tools:json-schema-validator</artifact> <excludes> <exclude>draftv3/**</exclude> <exclude>draftv4/**</exclude> </excludes> </filter> <!-- excluded duplicated content in META-INF and other static files --> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.txt</exclude> <exclude>META-INF/*.md</exclude> <exclude>META-INF/**/module-info.class</exclude> <exclude>META-INF/io.netty.versions.properties</exclude> <exclude>META-INF/**/pom.properties</exclude> <exclude>META-INF/**/pom.xml</exclude> <exclude>META-INF/MANIFEST.MF</exclude> <exclude>META-INF/LICENSE</exclude> <exclude>META-INF/NOTICE</exclude> <exclude>META-INF/license/**</exclude> <exclude>META-INF/DEPENDENCIES</exclude> <exclude>META-INF/versions/**</exclude> <exclude>module-info.java</exclude> <exclude>LGPL-3.0.txt</exclude> <exclude>LICENSE-ClassGraph.txt</exclude> <exclude>hamcrest-core-is-deprecated.txt</exclude> <exclude>THIRD-PARTY.txt</exclude> <exclude>ASL-2.0.txt</exclude> <exclude>samples/**</exclude> </excludes> </filter> </filters> </configuration> </execution> </executions> </plugin> <!-- install shaded plugin to local repository --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>3.1.0</version> <executions> <execution> <id>install-shaded-artefact</id> <phase>package</phase> <goals> <goal>install-file</goal> </goals> <inherited>false</inherited> <configuration> <file>${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar</file> <generatePom>false</generatePom> <pomFile>${project.build.directory}/dependency-reduced-pom.xml</pomFile> <artifactId>${project.artifactId}-no-dependencies</artifactId> <groupId>${project.groupId}</groupId> <version>${project.version}</version> <packaging>${project.packaging}</packaging> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>release</id> <build> <plugins> <!-- deploy shaded plugin to remote repository --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> <inherited>true</inherited> </execution> <execution> <id>deploy-shaded-artefact</id> <phase>deploy</phase> <goals> <goal>sign-and-deploy-file</goal> </goals> <inherited>false</inherited> <configuration> <repositoryId>ossrh</repositoryId> <url>${deploy.plugin.repository.url}</url> <file>${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar</file> <generatePom>false</generatePom> <pomFile>${project.build.directory}/dependency-reduced-pom.xml</pomFile> <artifactId>${project.artifactId}-no-dependencies</artifactId> <groupId>${project.groupId}</groupId> <version>${project.version}</version> <packaging>${project.packaging}</packaging> <sources>${project.build.directory}/${project.artifactId}-${project.version}-sources.jar</sources> <javadoc>${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar</javadoc> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>