Debian Codegraph @

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