Debian Codegraph @

maven-enforcer-plugin/src/it/projects/ban-dynamic-versions/pom.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 Licensed to the Apache Software Foundation (ASF) under one
5 or more contributor license agreements. See the NOTICE file
6 distributed with this work for additional information
7 regarding copyright ownership. The ASF licenses this file
8 to you under the Apache License, Version 2.0 (the
9 "License"); you may not use this file except in compliance
10 with the License. You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing,
15 software distributed under the License is distributed on an
16 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 KIND, either express or implied. See the License for the
18 specific language governing permissions and limitations
19 under the License.
20 -->
21
22 <project>
23 <modelVersion>4.0.0</modelVersion>
24
25 <groupId>org.apache.maven.its.enforcer</groupId>
26 <artifactId>ban-dynamic-versions-test</artifactId>
27 <version>1.0</version>
28
29 <build>
30 <plugins>
31 <plugin>
32 <groupId>org.apache.maven.plugins</groupId>
33 <artifactId>maven-enforcer-plugin</artifactId>
34 <version>@project.version@</version>
35 <executions>
36 <execution>
37 <id>test</id>
38 <goals>
39 <goal>enforce</goal>
40 </goals>
41 <configuration>
42 <rules>
43 <banDynamicVersions>
44 <excludedScopes>
45 <excludedScope>test</excludedScope>
46 </excludedScopes>
47 <allowRangesWithIdenticalBounds>true</allowRangesWithIdenticalBounds>
48 <ignores>
49 <ignore>*:menforcer134_project</ignore>
50 </ignores>
51 </banDynamicVersions>
52 </rules>
53 </configuration>
54 </execution>
55 </executions>
56 </plugin>
57 </plugins>
58 </build>
59
60 <dependencyManagement>
61 <dependencies>
62 <dependency>
63 <groupId>org.apache.maven.plugins.enforcer.its</groupId>
64 <artifactId>menforcer138_archiver</artifactId>
65 <!-- non applicable dependency management (only affects transitive not direct ones) -->
66 <version>2.1.1</version>
67 </dependency>
68 <dependency>
69 <groupId>org.apache.maven.plugins.enforcer.its</groupId>
70 <artifactId>menforcer138_utils</artifactId>
71 <version>[1.0,5]</version>
72 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>org.apache.maven.plugins.enforcer.its</groupId>
76 <artifactId>menforcer427-b</artifactId>
77 <version>1.0</version>
78 </dependency>
79 </dependencies>
80 </dependencyManagement>
81
82 <dependencies>
83 <dependency>
84 <groupId>org.apache.maven.plugins.enforcer.its</groupId>
85 <artifactId>menforcer138_archiver</artifactId>
86 <version>[1.3,2.1.1]</version> <!-- banned dynamic version range -->
87 </dependency>
88 <dependency>
89 <groupId>org.apache.maven.plugins.enforcer.its</groupId>
90 <artifactId>menforcer138_utils</artifactId>
91 <!-- excluded managed scope -->
92 </dependency>
93 <dependency>
94 <groupId>org.apache.maven.plugins.enforcer.its</groupId>
95 <artifactId>menforcer138_io</artifactId>
96 <version>LATEST</version> <!-- banned LATEST -->
97 </dependency>
98 <dependency>
99 <groupId>org.apache.maven.plugins.enforcer.its</groupId>
100 <artifactId>menforcer134_model</artifactId>
101 <version>1.0-SNAPSHOT</version> <!-- banned SNAPSHOT -->
102 </dependency>
103 <dependency>
104 <!-- banned transitive version range -->
105 <groupId>org.apache.maven.plugins.enforcer.its</groupId>
106 <artifactId>menforcer427</artifactId>
107 <version>1.0</version>
108 </dependency>
109 <dependency>
110 <groupId>org.apache.maven.plugins.enforcer.its</groupId>
111 <artifactId>menforcer192-a</artifactId>
112 <!-- version range syntax with equal upper and lower bounds -->
113 <version>[1.0]</version>
114 </dependency>
115 <dependency>
116 <!-- banned SNAPSHOT, but ignored (though it's transitive dependency on menforcer134_modelbuilder is not) -->
117 <groupId>org.apache.maven.plugins.enforcer.its</groupId>
118 <artifactId>menforcer134_project</artifactId>
119 <version>1.0-SNAPSHOT</version>
120 </dependency>
121 </dependencies>
122
123 </project>