|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 | + contributor license agreements. See the NOTICE file distributed with |
| 5 | + this work for additional information regarding copyright ownership. |
| 6 | + The ASF licenses this file to You under the Apache License, Version 2.0 |
| 7 | + (the "License"); you may not use this file except in compliance with |
| 8 | + the License. You may obtain a copy of the License at |
| 9 | +
|
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | + Unless required by applicable law or agreed to in writing, software |
| 13 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + See the License for the specific language governing permissions and |
| 16 | + limitations under the License. |
| 17 | +--> |
| 18 | +<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"> |
| 19 | + <modelVersion>4.0.0</modelVersion> |
| 20 | + <parent> |
| 21 | + <groupId>org.apache.wicket</groupId> |
| 22 | + <artifactId>wicket-parent</artifactId> |
| 23 | + <version>10.0.0-M2-SNAPSHOT</version> |
| 24 | + <relativePath>../pom.xml</relativePath> |
| 25 | + </parent> |
| 26 | + <artifactId>wicket-core-tests</artifactId> |
| 27 | + <packaging>jar</packaging> |
| 28 | + <name>Wicket Core Tests</name> |
| 29 | + <description> |
| 30 | + Internal JUnit Tests for Wicket Core (and Tester). |
| 31 | + </description> |
| 32 | + <properties> |
| 33 | + <osgi.export.package>org.apache.wicket.core.tests*;-noimport:=true</osgi.export.package> |
| 34 | + <osgi.import.package>!java*,!kotlin*,!sun.nio.ch,org.slf4j*;version="[1.7,3)",*</osgi.import.package> |
| 35 | + <maven.deploy.skip>true</maven.deploy.skip> |
| 36 | + </properties> |
| 37 | + <dependencies> |
| 38 | + <dependency> |
| 39 | + <groupId>jakarta.servlet</groupId> |
| 40 | + <artifactId>jakarta.servlet-api</artifactId> |
| 41 | + <scope>test</scope> |
| 42 | + </dependency> |
| 43 | + <dependency> |
| 44 | + <groupId>org.apache.commons</groupId> |
| 45 | + <artifactId>commons-lang3</artifactId> |
| 46 | + <scope>test</scope> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>org.apache.wicket</groupId> |
| 50 | + <artifactId>wicket-tester</artifactId> |
| 51 | + <scope>test</scope> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>org.bouncycastle</groupId> |
| 55 | + <artifactId>bcprov-jdk18on</artifactId> |
| 56 | + <scope>test</scope> |
| 57 | + <optional>true</optional> |
| 58 | + </dependency> |
| 59 | + <dependency> |
| 60 | + <groupId>org.hamcrest</groupId> |
| 61 | + <artifactId>hamcrest</artifactId> |
| 62 | + <scope>test</scope> |
| 63 | + </dependency> |
| 64 | + </dependencies> |
| 65 | + |
| 66 | + <!-- |
| 67 | + WICKET-7072: |
| 68 | + To run this project successfully we need two things: |
| 69 | + (1) no module-info, |
| 70 | + otherwise error "The package org.apache.wicket conflicts with a package accessible from another module") |
| 71 | + (2) useModulePath=false for maven-compiler plugin available for 3.11+ (see also WICKET-7019), |
| 72 | + otherwise error "Can't compile test sources when main sources are missing a module descriptor") |
| 73 | + see https://maven.apache.org/plugins/maven-compiler-plugin/plugin-info.html |
| 74 | + --> |
| 75 | + <build> |
| 76 | + <plugins> |
| 77 | + <plugin> |
| 78 | + <groupId>org.apache.maven.plugins</groupId> |
| 79 | + <artifactId>maven-compiler-plugin</artifactId> |
| 80 | + <executions> |
| 81 | + <execution> |
| 82 | + <id>test-compile</id> |
| 83 | + <goals> |
| 84 | + <goal>testCompile</goal> |
| 85 | + </goals> |
| 86 | + <configuration> |
| 87 | + <useModulePath>false</useModulePath> |
| 88 | + </configuration> |
| 89 | + </execution> |
| 90 | + </executions> |
| 91 | + </plugin> |
| 92 | + </plugins> |
| 93 | + </build> |
| 94 | + |
| 95 | +</project> |
0 commit comments