Debian Codegraph @

maven-enforcer-plugin/src/it/projects/MENFORCER-434/pom.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 -->
21 <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">
22
23 <modelVersion>4.0.0</modelVersion>
24 <groupId>maven.sample.issue</groupId>
25 <artifactId>MENFORCER-434</artifactId>
26 <packaging>jar</packaging>
27 <version>1.0.0-SNAPSHOT</version>
28 <name>MENFORCER-434</name>
29 <url>https://issues.apache.org/jira/browse/MENFORCER-434</url>
30 <description>Sample Project to Demo https://issues.apache.org/jira/browse/MENFORCER-434</description>
31
32 <build>
33 <plugins>
34 <plugin>
35 <groupId>org.apache.maven.plugins</groupId>
36 <artifactId>maven-enforcer-plugin</artifactId>
37 <version>@project.version@</version>
38 <executions>
39 <execution>
40 <id>enforce-versions</id>
41
42 <goals>
43 <goal>enforce</goal>
44 </goals>
45
46 <configuration>
47 <rules>
48 <bannedDependencies>
49 <searchTransitive>true</searchTransitive>
50 <excludes>
51 <!-- Using non-existent version 3.0.0 to force failure. Fail if any version less than 3.0.0 -->
52 <exclude>org.apache.logging.log4j:*:(,3.0.0)</exclude>
53 <exclude>log4j:log4j</exclude>
54 </excludes>
55 <includes>
56 <!-- allow this one ... in order to see transitive banned -->
57 <include>org.apache.logging.log4j:log4j-core</include>
58 </includes>
59 </bannedDependencies>
60 </rules>
61 </configuration>
62 </execution>
63 </executions>
64 </plugin>
65
66 </plugins>
67 </build>
68
69 <dependencies>
70
71 <dependency>
72 <groupId>org.apache.logging.log4j</groupId>
73 <artifactId>log4j-core</artifactId>
74 <version>2.19.0</version>
75 <scope>compile</scope>
76 </dependency>
77
78 <dependency>
79 <groupId>org.apache.logging.log4j</groupId>
80 <artifactId>log4j-slf4j-impl</artifactId>
81 <version>2.19.0</version>
82 <scope>test</scope>
83 </dependency>
84
85 <dependency>
86 <groupId>org.apache.logging.log4j</groupId>
87 <artifactId>log4j-jul</artifactId>
88 <version>2.19.0</version>
89 <scope>compile</scope>
90 </dependency>
91
92 </dependencies>
93
94 </project>