201 lines
8.6 KiB
XML
201 lines
8.6 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/maven-v4_0_0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
<artifactId>jetty-demos</artifactId>
|
|
<version>12.1.0-SNAPSHOT</version>
|
|
</parent>
|
|
<groupId>org.eclipse.jetty.demos</groupId>
|
|
<artifactId>jetty-servlet4-demos</artifactId>
|
|
<packaging>pom</packaging>
|
|
<name>Servlet 4 :: Demos</name>
|
|
|
|
<modules>
|
|
<module>jetty-servlet4-demo-async-rest</module>
|
|
<module>jetty-servlet4-demo-jaas-webapp</module>
|
|
<module>jetty-servlet4-demo-javax-websocket-webapp</module>
|
|
<module>jetty-servlet4-demo-jetty-webapp</module>
|
|
<module>jetty-servlet4-demo-jndi-webapp</module>
|
|
<module>jetty-servlet4-demo-jsp-webapp</module>
|
|
<module>jetty-servlet4-demo-mock-resources</module>
|
|
<module>jetty-servlet4-demo-simple-webapp</module>
|
|
<module>jetty-servlet4-demo-spec</module>
|
|
</modules>
|
|
|
|
<properties>
|
|
<!-- generated sources cannot follow exactly Jetty code style -->
|
|
<checkstyle.skip>true</checkstyle.skip>
|
|
<ee9.module></ee9.module>
|
|
<ee9.module.path>${maven.multiModuleProjectDirectory}/jetty-demos/jetty-servlet5-demos/${ee9.module}</ee9.module.path>
|
|
<modify-sources-plugin.version>1.0.11</modify-sources-plugin.version>
|
|
<sonar.skip>true</sonar.skip>
|
|
<warSourceDirectory>${project.build.directory}/webapp</warSourceDirectory>
|
|
</properties>
|
|
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<configuration>
|
|
<!-- otherwise javadoc jars for these demos will not be created due to top level pom exclusions on "org.example" -->
|
|
<excludePackageNames>bogus.*</excludePackageNames>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<configuration>
|
|
<warSourceDirectory>${warSourceDirectory}</warSourceDirectory>
|
|
<failOnMissingWebXml>true</failOnMissingWebXml>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.eclipse.jetty.toolchain</groupId>
|
|
<artifactId>jetty-modify-sources-maven-plugin</artifactId>
|
|
<version>${modify-sources-plugin.version}</version>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<configuration>
|
|
<!-- otherwise javadoc jars for these demos will not be created due to top level pom exclusions on "org.example" -->
|
|
<excludePackageNames>bogus.*</excludePackageNames>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<configuration>
|
|
<nonFilteredFileExtensions>
|
|
<nonFilteredFileExtension>p12</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>raw</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>jar</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>war</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>jks</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>tga</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>zip</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>gz</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>tif</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>tiff</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>svgz</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>jp2</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>rar</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>bz2</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>br</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>xcf</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>icon</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>png</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>webp</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>gif</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>ico</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>bmp</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>jpg</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>jpeg</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>rar</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>xcf</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>svg</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>sha1</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>png</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>sha</nonFilteredFileExtension>
|
|
<nonFilteredFileExtension>clazz</nonFilteredFileExtension>
|
|
</nonFilteredFileExtensions>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.maven.shared</groupId>
|
|
<artifactId>maven-filtering</artifactId>
|
|
<version>3.3.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.toolchain</groupId>
|
|
<artifactId>jetty-modify-sources-maven-plugin</artifactId>
|
|
<version>${modify-sources-plugin.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-ee8-resources</id>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
|
|
<mavenFilteringHints>
|
|
<mavenFilteringHint>ee9-to-ee8</mavenFilteringHint>
|
|
</mavenFilteringHints>
|
|
<resources>
|
|
<resource>
|
|
<filtering>true</filtering>
|
|
<directory>${ee9.module.path}/src/main/resources</directory>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-ee8-webapp-resources</id>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<mavenFilteringHints>
|
|
<mavenFilteringHint>ee9-to-ee8</mavenFilteringHint>
|
|
</mavenFilteringHints>
|
|
<outputDirectory>${project.build.directory}/webapp</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<filtering>true</filtering>
|
|
<directory>${ee9.module.path}/src/main/webapp</directory>
|
|
</resource>
|
|
<resource>
|
|
<filtering>false</filtering>
|
|
<directory>src/main/webapp</directory>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.eclipse.jetty.toolchain</groupId>
|
|
<artifactId>jetty-modify-sources-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-ee8-sources</id>
|
|
<goals>
|
|
<goal>modify-sources-ee9-to-ee8</goal>
|
|
</goals>
|
|
<phase>generate-sources</phase>
|
|
<configuration>
|
|
<sourceProjectLocation>${ee9.module.path}/src/main/java</sourceProjectLocation>
|
|
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>modify-services-loader-ee9-to-ee8</id>
|
|
<goals>
|
|
<goal>modify-service-loader-files-ee9-to-ee8</goal>
|
|
</goals>
|
|
<phase>process-resources</phase>
|
|
<configuration>
|
|
<extraFileNames>
|
|
<extraFileName>org.apache.juli.logging.Log</extraFileName>
|
|
</extraFileNames>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
<sourceDirectory>${project.build.directory}/generated-sources/ee8</sourceDirectory>
|
|
</build>
|
|
</project>
|