jolokia-example-client-javascript-test-app
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-example-client-javascript-test-app</artifactId>
<version>2.5.1</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2009-2013 Roland Huss
~
~ 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>jolokia-example-client-javascript-test-app</artifactId>
<version>2.5.1</version>
<packaging>war</packaging>
<name>jolokia-example-client-javascript-test-app</name>
<description>Test application for Jolokia's JavaScript client library</description>
<parent>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-parent</artifactId>
<version>2.5.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<url>https://jolokia.org/</url>
<dependencies>
<!-- Jolokia own artifacts -->
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-server-core</artifactId>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-server-detector</artifactId>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-service-serializer</artifactId>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-service-jmx</artifactId>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-service-discovery</artifactId>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-service-history</artifactId>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-service-jsr160</artifactId>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-service-notif-pull</artifactId>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-service-notif-sse</artifactId>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-it-core</artifactId>
</dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-client-javascript-esm</artifactId>
</dependency>
<!-- JakartaEE dependencies -->
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>jolokia-client-javascript-esm</includeArtifactIds>
<outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}/scripts/lib</outputDirectory>
<includes>*.js,*.map</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>strip-version-from-js-files</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<move todir="${project.build.directory}/${project.artifactId}-${project.version}/scripts/lib">
<fileset dir="${project.build.directory}/${project.artifactId}-${project.version}/scripts/lib" />
<mapper type="regexp" from="^(.*)-[\d\.]+(.min)?\.js$" to="\1\2.js" />
</move>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!--
Configuration: https://eclipse.dev/jetty/documentation/jetty-11/programming-guide/index.html#jetty-maven-plugin
Use `mvn clean package jetty:run-war` and browse to http://localhost:8080/jolokia-all-test.html
-->
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<version>${version.org.eclipse.jetty}</version>
<configuration>
<scan>10</scan>
<webApp>
<contextPath>/</contextPath>
</webApp>
</configuration>
</plugin>
</plugins>
</build>
</project>