Debian Codegraph @

jetty-ee10/jetty-ee10-demos/jetty-ee10-demo-jsp-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/xsd/maven-4.0.0.xsd">
3
4 <modelVersion>4.0.0</modelVersion>
5 <parent>
6 <groupId>org.eclipse.jetty.ee10.demos</groupId>
7 <artifactId>jetty-ee10-demos</artifactId>
8 <version>12.0.33</version>
9 </parent>
10 <artifactId>jetty-ee10-demo-jsp-webapp</artifactId>
11 <packaging>war</packaging>
12 <name>EE10 :: Demo :: JSP WebApp</name>
13
14 <properties>
15 <bundle-symbolic-name>${project.groupId}.jsp</bundle-symbolic-name>
16 </properties>
17
18 <dependencies>
19 <dependency>
20 <groupId>jakarta.servlet</groupId>
21 <artifactId>jakarta.servlet-api</artifactId>
22 <scope>provided</scope>
23 </dependency>
24 <dependency>
25 <groupId>jakarta.servlet.jsp</groupId>
26 <artifactId>jakarta.servlet.jsp-api</artifactId>
27 <scope>provided</scope>
28 </dependency>
29 <dependency>
30 <groupId>jakarta.servlet.jsp.jstl</groupId>
31 <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
32 <scope>provided</scope>
33 </dependency>
34 </dependencies>
35
36 <build>
37 <plugins>
38 <plugin>
39 <groupId>org.apache.felix</groupId>
40 <artifactId>maven-bundle-plugin</artifactId>
41 <extensions>true</extensions>
42 <configuration>
43 <supportedProjectTypes>
44 <supportedProjectType>war</supportedProjectType>
45 </supportedProjectTypes>
46 <instructions>
47 <Import-Package>jakarta.servlet.jsp.*;version="[3,4)",org.eclipse.jetty.*;version="[$(version;===;${parsedVersion.osgiVersion}),$(version;==+;${parsedVersion.osgiVersion}))",*</Import-Package>
48 <Export-Package>!org.example.*</Export-Package>
49 <Web-ContextPath>/ee10-demo-jsp</Web-ContextPath>
50 <Bundle-ClassPath>.,WEB-INF/classes</Bundle-ClassPath>
51 <Jetty-Environment>ee10</Jetty-Environment>
52 </instructions>
53 </configuration>
54 </plugin>
55 <plugin>
56 <artifactId>maven-assembly-plugin</artifactId>
57 <executions>
58 <execution>
59 <id>web-bundle-assembly</id>
60 <goals>
61 <goal>single</goal>
62 </goals>
63 <phase>package</phase>
64 <configuration>
65 <descriptors>
66 <descriptor>src/main/assembly/web-bundle.xml</descriptor>
67 </descriptors>
68 <archive>
69 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
70 </archive>
71 </configuration>
72 </execution>
73 </executions>
74 </plugin>
75 <!-- also make this webapp an osgi bundle -->
76 <plugin>
77 <artifactId>maven-war-plugin</artifactId>
78 <configuration>
79 <archive>
80 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
81 </archive>
82 </configuration>
83 </plugin>
84 </plugins>
85 </build>
86
87 <profiles>
88 <profile>
89 <id>precompile-jsp</id>
90 <build>
91 <plugins>
92 <plugin>
93 <groupId>org.apache.maven.plugins</groupId>
94 <artifactId>maven-war-plugin</artifactId>
95 <configuration>
96 <webXml>${basedir}/target/web.xml</webXml>
97 </configuration>
98 </plugin>
99 <plugin>
100 <groupId>org.eclipse.jetty.ee10</groupId>
101 <artifactId>jetty-ee10-jspc-maven-plugin</artifactId>
102 <version>${project.version}</version>
103 <executions>
104 <execution>
105 <id>jspc</id>
106 <goals>
107 <goal>jspc</goal>
108 </goals>
109 <!-- example configuration
110 <configuration>
111 <includes>**/*.foo</includes>
112 <excludes>**/*.fff</excludes>
113 <sourceVersion>1.8</sourceVersion>
114 <targetVersion>1.8</targetVersion>
115 </configuration>
116 -->
117 </execution>
118 </executions>
119 </plugin>
120 </plugins>
121 </build>
122 </profile>
123 </profiles>
124
125 </project>