Debian Codegraph @

jetty-ee10/jetty-ee10-demos/jetty-ee10-demo-jetty-webapp/pom.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3 <modelVersion>4.0.0</modelVersion>
4 <parent>
5 <groupId>org.eclipse.jetty.ee10.demos</groupId>
6 <artifactId>jetty-ee10-demos</artifactId>
7 <version>12.0.33</version>
8 </parent>
9 <artifactId>jetty-ee10-demo-jetty-webapp</artifactId>
10 <packaging>war</packaging>
11 <name>EE10 :: Demo :: Jetty WebApp</name>
12 <properties>
13 <bundle-symbolic-name>${project.groupId}.webapp</bundle-symbolic-name>
14 </properties>
15 <dependencies>
16 <dependency>
17 <groupId>jakarta.annotation</groupId>
18 <artifactId>jakarta.annotation-api</artifactId>
19 <scope>provided</scope>
20 </dependency>
21 <dependency>
22 <groupId>jakarta.servlet</groupId>
23 <artifactId>jakarta.servlet-api</artifactId>
24 <scope>provided</scope>
25 </dependency>
26 <dependency>
27 <groupId>jakarta.servlet.jsp</groupId>
28 <artifactId>jakarta.servlet.jsp-api</artifactId>
29 <scope>provided</scope>
30 </dependency>
31 <dependency>
32 <groupId>jakarta.servlet.jsp.jstl</groupId>
33 <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
34 <scope>provided</scope>
35 </dependency>
36 <dependency>
37 <groupId>jakarta.websocket</groupId>
38 <artifactId>jakarta.websocket-api</artifactId>
39 <scope>provided</scope>
40 </dependency>
41 <dependency>
42 <groupId>jakarta.websocket</groupId>
43 <artifactId>jakarta.websocket-client-api</artifactId>
44 <scope>provided</scope>
45 </dependency>
46 <dependency>
47 <groupId>org.eclipse.jetty</groupId>
48 <artifactId>jetty-server</artifactId>
49 <scope>provided</scope>
50 </dependency>
51 <dependency>
52 <groupId>org.eclipse.jetty.ee10</groupId>
53 <artifactId>jetty-ee10-servlets</artifactId>
54 <scope>provided</scope>
55 </dependency>
56 <dependency>
57 <groupId>org.eclipse.jetty.ee10.websocket</groupId>
58 <artifactId>jetty-ee10-websocket-jetty-server</artifactId>
59 <scope>provided</scope>
60 </dependency>
61 <dependency>
62 <groupId>org.eclipse.jetty.websocket</groupId>
63 <artifactId>jetty-websocket-jetty-api</artifactId>
64 <scope>provided</scope>
65 </dependency>
66 <dependency>
67 <groupId>org.eclipse.jetty</groupId>
68 <artifactId>jetty-jmx</artifactId>
69 <scope>test</scope>
70 </dependency>
71 <dependency>
72 <groupId>org.eclipse.jetty.ee10</groupId>
73 <artifactId>jetty-ee10-webapp</artifactId>
74 <scope>test</scope>
75 </dependency>
76 <dependency>
77 <groupId>org.eclipse.jetty.ee10.websocket</groupId>
78 <artifactId>jetty-ee10-websocket-jakarta-server</artifactId>
79 <scope>test</scope>
80 </dependency>
81 <dependency>
82 <groupId>org.eclipse.jetty.toolchain</groupId>
83 <artifactId>jetty-test-helper</artifactId>
84 <scope>test</scope>
85 </dependency>
86 </dependencies>
87 <build>
88 <pluginManagement>
89 <plugins>
90 <plugin>
91 <groupId>org.eclipse.jetty</groupId>
92 <artifactId>jetty-maven-plugin</artifactId>
93 <version>${project.version}</version>
94 <configuration>
95 <stopPort>8087</stopPort>
96 <stopKey>foo</stopKey>
97 <scan>1</scan>
98 <systemProperties>
99 <fooprop>222</fooprop>
100 </systemProperties>
101 <webApp>
102 <contextPath>/test</contextPath>
103 <tempDirectory>${project.build.directory}/work</tempDirectory>
104 </webApp>
105 <loginServices>
106 <loginService implementation="org.eclipse.jetty.security.HashLoginService">
107 <name>Test Realm</name>
108 <config implementation="org.eclipse.jetty.maven.MavenResource">
109 <resourceAsString>src/test/resources/test-realm.properties</resourceAsString>
110 </config>
111 </loginService>
112 </loginServices>
113 </configuration>
114 <dependencies>
115 <dependency>
116 <groupId>org.eclipse.jetty</groupId>
117 <artifactId>jetty-client</artifactId>
118 <version>${project.version}</version>
119 </dependency>
120 <dependency>
121 <groupId>org.eclipse.jetty.ee10</groupId>
122 <artifactId>jetty-servlets</artifactId>
123 <version>${project.version}</version>
124 </dependency>
125 </dependencies>
126 </plugin>
127 </plugins>
128 </pluginManagement>
129 <plugins>
130 <plugin>
131 <groupId>org.apache.felix</groupId>
132 <artifactId>maven-bundle-plugin</artifactId>
133 <extensions>true</extensions>
134 <configuration>
135 <supportedProjectTypes>
136 <supportedProjectType>war</supportedProjectType>
137 </supportedProjectTypes>
138 <instructions>
139 <Import-Package>jakarta.servlet.jsp.*;version="[3,4)",org.eclipse.jetty.*;version="[$(version;===;${parsedVersion.osgiVersion}),$(version;==+;${parsedVersion.osgiVersion}))",*</Import-Package>
140 <Export-Package>!org.example*</Export-Package>
141 <!-- the test webapp is configured via a jetty xml file
142 in order to add the security handler. -->
143 <Web-ContextPath>/ee10-demo-jetty</Web-ContextPath>
144 <!-- in fact the '.' must not be there
145 but Felix-BND has a bug:
146 http://www.mail-archive.com/[email protected]/msg04730.html
147 https://issues.apache.org/jira/browse/FELIX-1571
148 -->
149 <Bundle-ClassPath>.,WEB-INF/classes</Bundle-ClassPath>
150 <Jetty-Environment>ee10</Jetty-Environment>
151 </instructions>
152 </configuration>
153 </plugin>
154 <plugin>
155 <groupId>org.apache.maven.plugins</groupId>
156 <artifactId>maven-assembly-plugin</artifactId>
157 <executions>
158 <execution>
159 <id>web-bundle-assembly</id>
160 <goals>
161 <goal>single</goal>
162 </goals>
163 <phase>package</phase>
164 <configuration>
165 <descriptors>
166 <descriptor>src/main/assembly/web-bundle.xml</descriptor>
167 </descriptors>
168 <archive>
169 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
170 </archive>
171 </configuration>
172 </execution>
173 </executions>
174 </plugin>
175 <plugin>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-surefire-plugin</artifactId>
178 <configuration>
179 <excludes>
180 <exclude>**/WebAppTest.java</exclude>
181 <exclude>**/Test*.java</exclude>
182 </excludes>
183 </configuration>
184 <executions>
185 <execution>
186 <id>test</id>
187 <phase>test</phase>
188 </execution>
189 </executions>
190 </plugin>
191 <!-- also make this webapp an osgi bundle -->
192 <plugin>
193 <artifactId>maven-war-plugin</artifactId>
194 <configuration>
195 <archive>
196 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
197 </archive>
198 </configuration>
199 </plugin>
200 </plugins>
201 </build>
202 </project>