microcks-app
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.github.microcks</groupId> <artifactId>microcks-app</artifactId> <version>1.11.2</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> <artifactId>microcks</artifactId> <groupId>io.github.microcks</groupId> <version>1.11.2</version> </parent> <modelVersion>4.0.0</modelVersion> <name>Microcks App</name> <artifactId>microcks-app</artifactId> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <multi-project.rootdir>..</multi-project.rootdir> <docker.image.prefix>microcks</docker.image.prefix> <docker.image.name>microcks</docker.image.name> <java.version>21</java.version> <bouncycastle.version>1.78</bouncycastle.version> <snakeyaml.version>2.2</snakeyaml.version> <mongo-java-server.version>1.45.0</mongo-java-server.version> <apache-httpclient.version>5.3</apache-httpclient.version> <commons-lang3.version>3.17.0</commons-lang3.version> <commons-io.version>2.16.1</commons-io.version> <commons-codec.version>1.17.1</commons-codec.version> <groovy.version>4.0.24</groovy.version> <protobuf.version>3.25.5</protobuf.version> <grpc.version>1.61.0</grpc.version> <protoc-jar.version>3.21.8</protoc-jar.version> <openai-gpt3-java.version>0.18.2</openai-gpt3-java.version> <opentelemetry.version>1.33.6</opentelemetry.version> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-bom</artifactId> <version>${grpc.version}</version> <type>pom</type> <scope>import</scope> </dependency> <!-- Force Snakeyaml here as libs still pulls 1.33 version full of CVEs --> <dependency> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> <version>${snakeyaml.version}</version> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>io.github.microcks</groupId> <artifactId>microcks-util</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>io.github.microcks</groupId> <artifactId>microcks-model</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>io.github.microcks</groupId> <artifactId>microcks-el</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <!-- Micrometer Prometheus registry --> <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-prometheus</artifactId> </dependency> <!-- observability with Otel --> <dependency> <groupId>io.opentelemetry.javaagent</groupId> <artifactId>opentelemetry-javaagent</artifactId> <version>${opentelemetry.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>io.opentelemetry.instrumentation</groupId> <artifactId>opentelemetry-instrumentation-annotations</artifactId> <version>${opentelemetry.version}</version> </dependency> <dependency> <groupId>org.springframework.kafka</groupId> <artifactId>spring-kafka</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-oauth2-resource-server</artifactId> </dependency> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcpkix-jdk15to18</artifactId> <version>${bouncycastle.version}</version> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>${commons-codec.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-oauth2-client</artifactId> </dependency> <!-- Required since Spring 1.5 to 2.3 migration --> <dependency> <groupId>org.apache.httpcomponents.client5</groupId> <artifactId>httpclient5</artifactId> <version>${apache-httpclient.version}</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>${commons-lang3.version}</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>${commons-io.version}</version> </dependency> <dependency> <groupId>org.apache.groovy</groupId> <artifactId>groovy-xml</artifactId> <version>${groovy.version}</version> </dependency> <dependency> <groupId>org.apache.groovy</groupId> <artifactId>groovy-json</artifactId> <version>${groovy.version}</version> </dependency> <dependency> <groupId>org.apache.groovy</groupId> <artifactId>groovy-jsr223</artifactId> <version>${groovy.version}</version> </dependency> <dependency> <groupId>org.apache.groovy</groupId> <artifactId>groovy-dateutil</artifactId> <version>${groovy.version}</version> </dependency> <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-netty-shaded</artifactId> </dependency> <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-protobuf</artifactId> </dependency> <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-stub</artifactId> </dependency> <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-services</artifactId> </dependency> <!-- necessary for Java 9+ --> <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>annotations-api</artifactId> <version>6.0.53</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java-util</artifactId> <version>${protobuf.version}</version> </dependency> <dependency> <groupId>io.github.microcks</groupId> <artifactId>protoc-jar</artifactId> <version>${protoc-jar.version}</version> </dependency> <dependency> <groupId>com.theokanning.openai-gpt3-java</groupId> <artifactId>api</artifactId> <version>${openai-gpt3-java.version}</version> </dependency> <!-- Test related dependencies --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>${spring-boot.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>de.bwaldvogel</groupId> <artifactId>mongo-java-server</artifactId> <version>${mongo-java-server.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.skyscreamer</groupId> <artifactId>jsonassert</artifactId> <version>1.5.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.testcontainers</groupId> <artifactId>mongodb</artifactId> <version>1.17.6</version> <scope>test</scope> <exclusions> <exclusion> <groupId>junit</groupId> <artifactId>junit</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.github.dasniko</groupId> <artifactId>testcontainers-keycloak</artifactId> <version>3.0.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.testcontainers</groupId> <artifactId>junit-jupiter</artifactId> <version>1.19.3</version> <scope>test</scope> </dependency> <dependency> <groupId>com.code-intelligence</groupId> <artifactId>jazzer-junit</artifactId> <version>0.24.0</version> <scope>test</scope> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> </resource> <resource> <directory>src/main/resources/config</directory> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> <encoding>${project.build.sourceEncoding}</encoding> <compilerArgument>-Xlint:deprecation</compilerArgument> <compilerArgument>-Xlint:unchecked</compilerArgument> <compilerArgument>-parameters</compilerArgument> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire-plugin.version}</version> <configuration> <includes> <include>**/*Test.java</include> </includes> </configuration> </plugin> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring-boot.version}</version> </plugin> </plugins> </build> <repositories> <!-- <repository> <id>spring-releases</id> <url>https://repo.spring.io/libs-release</url> </repository> --> <repository> <id>central</id> <url>https://repo.maven.apache.org/maven2</url> </repository> </repositories> <pluginRepositories> <!-- <pluginRepository> <id>spring-releases</id> <url>https://repo.spring.io/libs-release</url> </pluginRepository> --> </pluginRepositories> <profiles> <profile> <id>single</id> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring-boot.version}</version> <configuration> <addResources>true</addResources> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>it</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire-plugin.version}</version> <configuration> <includes> <include>**/*IT.java</include> </includes> <reuseForks>false</reuseForks> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>fuzz</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire-plugin.version}</version> <configuration> <includes> <include>**/*Fuzz.java</include> </includes> <reuseForks>false</reuseForks> <environmentVariables> <JAZZER_FUZZ>1</JAZZER_FUZZ> </environmentVariables> </configuration> </plugin> </plugins> </build> <properties> <spring.profiles.active>fuzz</spring.profiles.active> </properties> </profile> <profile> <id>coverage</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire-plugin.version}</version> <configuration> <includes> <include>**/*Test.java</include> <include>**/*IT.java</include> </includes> <reuseForks>false</reuseForks> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>prod</id> <build> <plugins> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>install node and npm</id> <goals> <goal>install-node-and-npm</goal> </goals> <phase>generate-resources</phase> </execution> <execution> <id>npm install</id> <goals> <goal>npm</goal> </goals> <configuration> <arguments>install</arguments> </configuration> </execution> <!-- Build the app --> <execution> <id>ng build</id> <goals> <goal>npm</goal> </goals> <phase>generate-resources</phase> <configuration> <arguments>run-script build-prod</arguments> </configuration> </execution> </executions> <configuration> <nodeVersion>v16.0.0</nodeVersion> <npmVersion>8.0.0</npmVersion> <workingDirectory>${basedir}/src/main/webapp</workingDirectory> <installDirectory>target</installDirectory> </configuration> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.5</version> <configuration> <filesets> <fileset> <directory>src/main/webapp/dist</directory> </fileset> <fileset> <directory>.tmp</directory> </fileset> <!-- <fileset> <directory>node_modules</directory> </fileset> --> </filesets> </configuration> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>copy-resources</id> <phase>generate-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>target/classes/public</outputDirectory> <resources> <resource> <directory>src/main/webapp/dist</directory> <filtering>false</filtering> </resource> <resource> <directory>${basedir}</directory> <filtering>false</filtering> <includes> <include>bower_components/bootstrap/**</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring-boot.version}</version> <configuration> <addResources>true</addResources> <profiles> <profile>prod</profile> </profiles> <arguments> <argument>--spring.profiles.active=prod</argument> </arguments> <classifier>exec</classifier> <excludes> <!-- Otel agent should be provided at the bootstrap level within the container image --> <exclude> <groupId>io.opentelemetry.javaagent</groupId> <artifactId>opentelemetry-javaagent</artifactId> </exclude> </excludes> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>1.2.2</version> <configuration> <imageName>${docker.image.prefix}/${docker.image.name}</imageName> <dockerDirectory>src/main/docker</dockerDirectory> <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}</directory> <include>${project.build.finalName}.jar</include> </resource> </resources> </configuration> </plugin> </plugins> </build> <properties> <!-- log configuration --> <logback.loglevel>INFO</logback.loglevel> <!-- default Spring profiles --> <spring.profiles.active>prod</spring.profiles.active> </properties> </profile> <profile> <id>dev-otel</id> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring-boot.version}</version> <configuration> <environmentVariables> <!-- <JAVA_TOOL_OPTIONS>-javaagent:${user.home}/.m2/repository/io/opentelemetry/javaagent/opentelemetry-javaagent/${opentelemetry.version}/opentelemetry-javaagent-${opentelemetry.version}.jar</JAVA_TOOL_OPTIONS> --> <JAVA_TOOL_OPTIONS>-javaagent:${user.home}/Development/repository/io/opentelemetry/javaagent/opentelemetry-javaagent/${opentelemetry.version}/opentelemetry-javaagent-${opentelemetry.version}.jar</JAVA_TOOL_OPTIONS> <OTEL_JAVAAGENT_ENABLED>true</OTEL_JAVAAGENT_ENABLED> <OTEL_METRICS_EXPORTER>otlp</OTEL_METRICS_EXPORTER> <OTEL_LOGS_EXPORTER>otlp</OTEL_LOGS_EXPORTER> <OTEL_TRACES_EXPORTER>otlp</OTEL_TRACES_EXPORTER> <OTEL_METRIC_EXPORT_INTERVAL>10000</OTEL_METRIC_EXPORT_INTERVAL> <OTEL_EXPORTER_OTLP_TIMEOUT>7000</OTEL_EXPORTER_OTLP_TIMEOUT> <OTEL_RESOURCE_ATTRIBUTES>service.name=${project.artifactId},service.namespace=${project.artifactId}-ns,service.instance.id=${project.artifactId}-dev,service.version=${project.version}</OTEL_RESOURCE_ATTRIBUTES> </environmentVariables> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>