Debian Codegraph @

jetty-ee9/jetty-ee9-demos/jetty-ee9-demo-spec/jetty-ee9-demo-spec-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 <relativePath>../../pom.xml</relativePath>
9 </parent>
10 <artifactId>jetty-ee9-demo-spec-webapp</artifactId>
11 <packaging>war</packaging>
12 <name>EE9 :: Demo :: Servlet Spec :: WebApp</name>
13 <properties>
14 <bundle-symbolic-name>${project.groupId}.spec.webapp</bundle-symbolic-name>
15 </properties>
16
17 <dependencies>
18 <dependency>
19 <groupId>org.eclipse.jetty.ee9.demos</groupId>
20 <artifactId>jetty-ee9-demo-container-initializer</artifactId>
21 </dependency>
22 <dependency>
23 <groupId>org.eclipse.jetty.ee9.demos</groupId>
24 <artifactId>jetty-ee9-demo-web-fragment</artifactId>
25 </dependency>
26 <dependency>
27 <groupId>jakarta.annotation</groupId>
28 <artifactId>jakarta.annotation-api</artifactId>
29 <scope>provided</scope>
30 </dependency>
31 <dependency>
32 <groupId>jakarta.transaction</groupId>
33 <artifactId>jakarta.transaction-api</artifactId>
34 <scope>provided</scope>
35 </dependency>
36 <dependency>
37 <groupId>org.eclipse.jetty.toolchain</groupId>
38 <artifactId>jetty-jakarta-servlet-api</artifactId>
39 <scope>provided</scope>
40 </dependency>
41
42 </dependencies>
43 <build>
44 <pluginManagement>
45 <plugins>
46 <plugin>
47 <groupId>org.eclipse.jetty.ee9</groupId>
48 <artifactId>jetty-ee9-maven-plugin</artifactId>
49 <version>${project.version}</version>
50 <configuration>
51 <scan>10</scan>
52 <contextXml>src/main/templates/plugin-context.xml</contextXml>
53 <webApp>
54 <war>src/main/webapp</war>
55 <descriptor>src/main/webapp/WEB-INF/web.xml</descriptor>
56 <contextPath>/test-spec</contextPath>
57 <containerIncludeJarPattern>.*/jetty-jakarta-servlet-api-[^/]*\.jar$</containerIncludeJarPattern>
58 <configurationDiscovered>true</configurationDiscovered>
59 <jettyEnvXml>${basedir}/src/main/webapp/WEB-INF/jetty-env.xml</jettyEnvXml>
60 </webApp>
61 <loginServices>
62 <loginService implementation="org.eclipse.jetty.security.HashLoginService">
63 <name>Test Realm</name>
64 <config implementation="org.eclipse.jetty.maven.MavenResource">
65 <resourceAsString>src/etc/realm.properties</resourceAsString>
66 </config>
67 </loginService>
68 </loginServices>
69 </configuration>
70 <dependencies>
71 <dependency>
72 <groupId>org.eclipse.jetty.ee9</groupId>
73 <artifactId>jetty-ee9-jndi</artifactId>
74 <version>${project.version}</version>
75 </dependency>
76 <dependency>
77 <groupId>org.eclipse.jetty.ee9.demos</groupId>
78 <artifactId>jetty-ee9-demo-mock-resources</artifactId>
79 <version>${project.version}</version>
80 </dependency>
81 </dependencies>
82 </plugin>
83 </plugins>
84 </pluginManagement>
85 <plugins>
86
87 <plugin>
88 <groupId>org.apache.felix</groupId>
89 <artifactId>maven-bundle-plugin</artifactId>
90 <extensions>true</extensions>
91 <configuration>
92 <supportedProjectTypes>
93 <supportedProjectType>war</supportedProjectType>
94 </supportedProjectTypes>
95 <instructions>
96 <Bundle-Description>Test Webapp for Servlet 5.0 Features</Bundle-Description>
97 <!-- TODO Add 'org.eclipse.jetty.util;version="[9.4.19,9.4.20)",' below, once 9.4.19 is released with a fix for #3726 -->
98 <Import-Package>jakarta.transaction*;version="2.0.0", jakarta.servlet*;version="[5,6)", org.eclipse.jetty*;version="[$(version;===;${parsedVersion.osgiVersion}),$(version;==+;${parsedVersion.osgiVersion}))", org.eclipse.jetty.webapp;version="[$(version;===;${parsedVersion.osgiVersion}),$(version;==+;${parsedVersion.osgiVersion}))";resolution:="optional", org.eclipse.jetty.plus.jndi;version="[$(version;===;${parsedVersion.osgiVersion}),$(version;==+;${parsedVersion.osgiVersion}))";resolution:="optional", org.example;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}", *</Import-Package>
99 <_nouses/>
100 <Export-Package>org.example.test;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}";-noimport:=true</Export-Package>
101 <Web-ContextPath>/</Web-ContextPath>
102 <Bundle-ClassPath>.,WEB-INF/classes,WEB-INF/lib</Bundle-ClassPath>
103 <Jetty-ContextFilePath>META-INF/plugin-context.xml</Jetty-ContextFilePath>
104 <Jetty-Environment>ee9</Jetty-Environment>
105 </instructions>
106 </configuration>
107 </plugin>
108
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-assembly-plugin</artifactId>
112 <executions>
113 <execution>
114 <id>web-bundle-assembly</id>
115 <goals>
116 <goal>single</goal>
117 </goals>
118 <phase>package</phase>
119 <configuration>
120 <descriptors>
121 <descriptor>src/main/assembly/web-bundle.xml</descriptor>
122 </descriptors>
123 <archive>
124 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
125 </archive>
126 </configuration>
127 </execution>
128 </executions>
129 </plugin>
130 <plugin>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-dependency-plugin</artifactId>
133 <executions>
134 <execution>
135 <goals>
136 <goal>copy</goal>
137 </goals>
138 <phase>package</phase>
139 <configuration>
140 <artifactItems>
141 <artifactItem>
142 <groupId>org.eclipse.jetty.ee9.demos</groupId>
143 <artifactId>jetty-ee9-demo-mock-resources</artifactId>
144 <version>${project.version}</version>
145 <type>jar</type>
146 <includes>**</includes>
147 <overWrite>true</overWrite>
148 <outputDirectory>${project.build.directory}/lib/jndi</outputDirectory>
149 </artifactItem>
150 </artifactItems>
151 </configuration>
152 </execution>
153 </executions>
154 </plugin>
155 <plugin>
156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-enforcer-plugin</artifactId>
158 <executions>
159 <execution>
160 <id>enforce-java</id>
161 <goals>
162 <goal>enforce</goal>
163 </goals>
164 <configuration>
165 <rules>
166 <requireUpperBoundDeps>
167 <excludes combine.children="append">
168 <exclude>org.eclipse.jetty:jetty-util</exclude>
169 </excludes>
170 </requireUpperBoundDeps>
171 </rules>
172 </configuration>
173 </execution>
174 </executions>
175 </plugin>
176 <!-- also make this webapp an osgi bundle -->
177 <plugin>
178 <artifactId>maven-war-plugin</artifactId>
179 <configuration>
180 <archive>
181 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
182 </archive>
183 <webResources>
184 <resource>
185 <directory>target</directory>
186 <includes>
187 <include>src/main/templates/plugin-context.xml</include>
188 </includes>
189 <targetPath>META-INF</targetPath>
190 </resource>
191 </webResources>
192 </configuration>
193 </plugin>
194 </plugins>
195 </build>
196 </project>