Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
47 lines (42 loc) · 2.05 KB
/
Copy pathpom.xml
File metadata and controls
47 lines (42 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.agentclientprotocol</groupId>
<artifactId>acp-java-tutorial</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>module-37-streamable-http-websocket</artifactId>
<name>Module 37 - Streamable HTTP and WebSocket</name>
<description>A remote agent on the Jetty listener (one agent per connection), clients over Streamable HTTP and WebSocket, h2c</description>
<properties>
<!-- The demo; override with -Dexec.mainClass=... to run one side on its own -->
<exec.mainClass>com.acptutorial.module37.HttpTransportsDemo</exec.mainClass>
</properties>
<dependencies>
<!-- The agent listener: Jetty with HTTP/1.1, h2c and the WebSocket upgrade on /acp.
Brings acp-core and acp-json-jackson2. The client transports are in acp-core. -->
<dependency>
<groupId>com.agentclientprotocol</groupId>
<artifactId>acp-streamable-http-jetty</artifactId>
</dependency>
<!-- For the annotated agent served through AcpAgentSupport.Builder#buildFactory() -->
<dependency>
<groupId>com.agentclientprotocol</groupId>
<artifactId>acp-agent-support</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Run the demo with: ./mvnw exec:java -pl module-37-streamable-http-websocket
The agent and both clients run in this one JVM; the agent listens on a free port.
HttpAgent also has its own main to run the listener on its own. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>