89 lines
3.0 KiB
XML
89 lines
3.0 KiB
XML
<?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">
|
|
<parent>
|
|
<groupId>org.eclipse.jetty.demos</groupId>
|
|
<artifactId>demos-parent</artifactId>
|
|
<version>10.0.2-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>demo-jsp-webapp</artifactId>
|
|
<name>Demo :: JSP :: Webapp</name>
|
|
<packaging>war</packaging>
|
|
|
|
<properties>
|
|
<bundle-symbolic-name>${project.groupId}.jsp</bundle-symbolic-name>
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<supportedProjectTypes>
|
|
<supportedProjectType>war</supportedProjectType>
|
|
</supportedProjectTypes>
|
|
<instructions>
|
|
<Import-Package>javax.servlet.jsp.*;version="[2.2.0,4.1)",org.eclipse.jetty.*;version="[$(version;===;${parsedVersion.osgiVersion}),$(version;==+;${parsedVersion.osgiVersion}))",*</Import-Package>
|
|
<Export-Package>!com.acme.*</Export-Package>
|
|
<Web-ContextPath>/demo-jsp</Web-ContextPath>
|
|
<Bundle-ClassPath>.,WEB-INF/classes</Bundle-ClassPath>
|
|
</instructions>
|
|
</configuration>
|
|
</plugin>
|
|
<!-- also make this webapp an osgi bundle -->
|
|
<plugin>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<configuration>
|
|
<archive>
|
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>web-bundle-assembly</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>src/main/assembly/web-bundle.xml</descriptor>
|
|
</descriptors>
|
|
<archive>
|
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
</archive>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.toolchain</groupId>
|
|
<artifactId>jetty-servlet-api</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet.jsp</groupId>
|
|
<artifactId>javax.servlet.jsp-api</artifactId>
|
|
<version>2.3.3</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>jakarta.servlet.jsp.jstl</groupId>
|
|
<artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
|
|
<version>1.2.7</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
</project>
|