| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one or more | |
| contributor license agreements. See the NOTICE file distributed with | |
| this work for additional information regarding copyright ownership. | |
| The ASF licenses this file to You under the Apache License, Version 2.0 | |
| (the "License"); you may not use this file except in compliance with | |
| the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| --> | |
| <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.apache.wicket</groupId> | |
| <artifactId>wicket-parent</artifactId> | |
| <version>12.0.0-SNAPSHOT</version> | |
| <relativePath>../pom.xml</relativePath> | |
| </parent> | |
| <artifactId>wicket-examples</artifactId> | |
| <packaging>war</packaging> | |
| <name>Wicket Examples</name> | |
| <description> | |
| Examples displaying a component reference and several components in | |
| action. | |
| </description> | |
| <properties> | |
| <dockerfile-maven-plugin.version>1.4.13</dockerfile-maven-plugin.version> | |
| <fontsource-jetbrains-mono.version>5.3.0</fontsource-jetbrains-mono.version> | |
| <fontsource-source-sans-pro.version>5.2.5</fontsource-source-sans-pro.version> | |
| <japicmp.skip>true</japicmp.skip> | |
| </properties> | |
| <dependencyManagement> | |
| <dependencies> | |
| <dependency> | |
| <groupId>com.github.axet</groupId> | |
| <artifactId>kaptcha</artifactId> | |
| <version>0.0.9</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.github.cage</groupId> | |
| <artifactId>cage</artifactId> | |
| <version>1.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.codelibs</groupId> | |
| <artifactId>jhighlight</artifactId> | |
| <version>2.0.0</version> | |
| </dependency> | |
| </dependencies> | |
| </dependencyManagement> | |
| <dependencies> | |
| <dependency> | |
| <groupId>jakarta.cdi</groupId> | |
| <artifactId>jakarta.cdi-api</artifactId> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.el</groupId> | |
| <artifactId>jakarta.el-api</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.servlet.jsp</groupId> | |
| <artifactId>jakarta.servlet.jsp-api</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.servlet</groupId> | |
| <artifactId>jakarta.servlet-api</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.github.axet</groupId> | |
| <artifactId>kaptcha</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.github.cage</groupId> | |
| <artifactId>cage</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.validation</groupId> | |
| <artifactId>jakarta.validation-api</artifactId> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-simple</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-auth-roles</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-bean-validation</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-cdi</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-core</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-devutils</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-extensions</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-guice</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-jmx</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-native-websocket-javax</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-spring</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-velocity</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket</groupId> | |
| <artifactId>wicket-tester</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket.experimental.wicket12</groupId> | |
| <artifactId>wicket-dbsc</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.wicket.experimental.wicket12</groupId> | |
| <artifactId>wicket-resumable-upload</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.codelibs</groupId> | |
| <artifactId>jhighlight</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.hibernate.validator</groupId> | |
| <artifactId>hibernate-validator</artifactId> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jboss.weld.servlet</groupId> | |
| <artifactId>weld-servlet-core</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>jcl-over-slf4j</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework</groupId> | |
| <artifactId>spring-web</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.jetty</groupId> | |
| <artifactId>jetty-server</artifactId> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.jetty.ee11</groupId> | |
| <artifactId>jetty-ee11-webapp</artifactId> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.jetty</groupId> | |
| <artifactId>jetty-jmx</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.jetty.ee11.websocket</groupId> | |
| <artifactId>jetty-ee11-websocket-jakarta-server</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish</groupId> | |
| <artifactId>jakarta.el</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.httpunit</groupId> | |
| <artifactId>httpunit</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.junit.jupiter</groupId> | |
| <artifactId>junit-jupiter-params</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.seleniumhq.selenium</groupId> | |
| <artifactId>selenium-java</artifactId> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <resources> | |
| <!-- include all these to be able to view their source --> | |
| <resource> | |
| <filtering>false</filtering> | |
| <directory>${basedir}/src/main/java</directory> | |
| <includes> | |
| <include>**/*.java</include> | |
| <include>**/*.html</include> | |
| <include>**/*.js</include> | |
| <include>**/*.css</include> | |
| <include>**/*.jpg</include> | |
| <include>**/*.gif</include> | |
| <include>**/*.png</include> | |
| <include>**/*.txt</include> | |
| <include>**/*.xml</include> | |
| <include>**/*.properties</include> | |
| <include>**/*.mp4</include> | |
| <include>**/*.svg</include> | |
| </includes> | |
| </resource> | |
| <resource> | |
| <filtering>false</filtering> | |
| <directory>${basedir}/src/main/resources</directory> | |
| <includes> | |
| <include>**/*.html</include> | |
| <include>**/*.js</include> | |
| <include>**/*.css</include> | |
| <include>**/*.jpg</include> | |
| <include>**/*.gif</include> | |
| <include>**/*.png</include> | |
| <include>**/*.txt</include> | |
| <include>**/*.xml</include> | |
| <include>**/*.properties</include> | |
| <include>**/*.vm</include> | |
| <include>**/*.tmpl</include> | |
| <include>**/*.mp4</include> | |
| <include>**/*.svg</include> | |
| </includes> | |
| </resource> | |
| </resources> | |
| <plugins> | |
| <plugin> | |
| <!-- | |
| The fonts are under the SIL Open Font License, which the ASF puts in Category B: they | |
| may ship in the war, but not in the source release. So they come from the fontsource | |
| webjars at build time, next to their licences, for fonts.css. | |
| --> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>unpack-fonts</id> | |
| <phase>generate-resources</phase> | |
| <goals> | |
| <goal>unpack</goal> | |
| </goals> | |
| <configuration> | |
| <outputDirectory>${project.build.outputDirectory}/org/apache/wicket/examples/fonts</outputDirectory> | |
| <artifactItems> | |
| <artifactItem> | |
| <groupId>org.webjars.npm</groupId> | |
| <artifactId>fontsource__source-sans-pro</artifactId> | |
| <version>${fontsource-source-sans-pro.version}</version> | |
| <includes>**/LICENSE,**/files/source-sans-pro-latin-200-normal.woff2,**/files/source-sans-pro-latin-300-normal.woff2,**/files/source-sans-pro-latin-300-italic.woff2,**/files/source-sans-pro-latin-400-normal.woff2,**/files/source-sans-pro-latin-400-italic.woff2,**/files/source-sans-pro-latin-700-normal.woff2,**/files/source-sans-pro-latin-700-italic.woff2</includes> | |
| <fileMappers> | |
| <org.codehaus.plexus.components.io.filemappers.RegExpFileMapper> | |
| <pattern>^.*/fontsource__([^/]+)/[^/]+/LICENSE$</pattern> | |
| <replacement>LICENSE-$1.txt</replacement> | |
| </org.codehaus.plexus.components.io.filemappers.RegExpFileMapper> | |
| <org.codehaus.plexus.components.io.filemappers.FlattenFileMapper /> | |
| </fileMappers> | |
| </artifactItem> | |
| <artifactItem> | |
| <groupId>org.webjars.npm</groupId> | |
| <artifactId>fontsource__jetbrains-mono</artifactId> | |
| <version>${fontsource-jetbrains-mono.version}</version> | |
| <includes>**/LICENSE,**/files/jetbrains-mono-latin-300-normal.woff2,**/files/jetbrains-mono-latin-400-normal.woff2,**/files/jetbrains-mono-latin-700-normal.woff2</includes> | |
| <fileMappers> | |
| <org.codehaus.plexus.components.io.filemappers.RegExpFileMapper> | |
| <pattern>^.*/fontsource__([^/]+)/[^/]+/LICENSE$</pattern> | |
| <replacement>LICENSE-$1.txt</replacement> | |
| </org.codehaus.plexus.components.io.filemappers.RegExpFileMapper> | |
| <org.codehaus.plexus.components.io.filemappers.FlattenFileMapper /> | |
| </fileMappers> | |
| </artifactItem> | |
| </artifactItems> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-war-plugin</artifactId> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.eclipse.jetty.ee11</groupId> | |
| <artifactId>jetty-ee11-maven-plugin</artifactId> | |
| </plugin> | |
| </plugins> | |
| <pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-javadoc-plugin</artifactId> | |
| <version>${maven-javadoc-plugin.version}</version> | |
| <configuration> | |
| <skip>true</skip> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-war-plugin</artifactId> | |
| <version>${maven-war-plugin.version}</version> | |
| <configuration> | |
| <!-- include the manifest entries so that we can emit the version of the examples. --> | |
| <archive> | |
| <manifest> | |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> | |
| <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> | |
| </manifest> | |
| </archive> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.eclipse.jetty.ee11</groupId> | |
| <artifactId>jetty-ee11-maven-plugin</artifactId> | |
| <version>${jetty.version}</version> | |
| <dependencies> | |
| <dependency> | |
| <groupId>jakarta.validation</groupId> | |
| <artifactId>jakarta.validation-api</artifactId> | |
| <version>${jakarta.validation-api.version}</version> | |
| </dependency> | |
| </dependencies> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| <version>${maven-enforcer-plugin.version}</version> | |
| <configuration> | |
| <skip>true</skip> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </pluginManagement> | |
| </build> | |
| <profiles> | |
| <profile> | |
| <id>docker</id> | |
| <properties> | |
| <warName>ROOT</warName> | |
| </properties> | |
| <build> | |
| <finalName>${warName}</finalName> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-war-plugin</artifactId> | |
| <configuration> | |
| <warName>${warName}</warName> | |
| <!-- include the manifest entries so that we can emit the version of the examples. --> | |
| <archive> | |
| <manifest> | |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> | |
| <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> | |
| </manifest> | |
| </archive> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>com.spotify</groupId> | |
| <artifactId>dockerfile-maven-plugin</artifactId> | |
| <version>${dockerfile-maven-plugin.version}</version> | |
| <configuration> | |
| <repository>apache.jfrog.io/wicket-docker/wicket-examples</repository> | |
| <tag>LATEST-10</tag> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>build</id> | |
| <goals> | |
| <goal>build</goal> | |
| </goals> | |
| <phase>install</phase> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| </profiles> | |
| </project> |