Skip to content

Commit 9aa051f

Browse files
Fix next ITs for Maven 4
1 parent adcac60 commit 9aa051f

File tree

7 files changed

+63
-2
lines changed

7 files changed

+63
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ out
44
.project
55
.settings
66
.idea
7-
*.iml
7+
*.iml
8+
.DS_Store
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# .flattened-pom.xml contains xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
22
# xsd url changed to HTTPS in Maven 3.6.3 in https://issues.apache.org/jira/browse/MNG-6778
3-
invoker.maven.version = 3.6.3+
3+
invoker.maven.version = 3.6.3+,!4.0.0+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>org.codehaus.mojo.flatten.its</groupId>
5+
<artifactId>resolve-properties</artifactId>
6+
<version>0.0.1-SNAPSHOT</version>
7+
<dependencies>
8+
<dependency>
9+
<groupId>org.codehaus.mojo.flatten.its</groupId>
10+
<artifactId>dep</artifactId>
11+
<version>1.1</version>
12+
<scope>compile</scope>
13+
</dependency>
14+
</dependencies>
15+
</project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Maven 4.0.0 has a different xml writer
2+
invoker.maven.version = 4.0.0+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>org.codehaus.mojo.flatten.its</groupId>
5+
<artifactId>resolve-properties</artifactId>
6+
<version>0.0.1-SNAPSHOT</version>
7+
8+
<properties>
9+
<depVersion>1.1</depVersion>
10+
</properties>
11+
12+
<dependencies>
13+
<dependency>
14+
<groupId>org.codehaus.mojo.flatten.its</groupId>
15+
<artifactId>dep</artifactId>
16+
<version>${depVersion}</version>
17+
</dependency>
18+
</dependencies>
19+
20+
</project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with 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,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
File flattendPom = new File( basedir, '.flattened-pom.xml' )
21+
assert flattendPom.exists()
22+
long now = System.currentTimeMillis()
23+
assert now - flattendPom.lastModified() > 20*1000

0 commit comments

Comments
 (0)