You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/07/31 14:33:50 UTC

[maven-enforcer] 01/01: Dependency convergence error in combination with CI friendly versions

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch MENFORCER-333
in repository https://gitbox.apache.org/repos/asf/maven-enforcer.git

commit f7b0fea0ca5a10c910cca8fd168ba1d2654f25b0
Author: Tim Occhipinti <t....@outlook.com>
AuthorDate: Fri Jul 31 14:14:43 2020 +0200

    Dependency convergence error in combination with CI friendly versions
    
    Tried to reproduce the bug mentioned in the issue. I created the poms with a test.properties file. I could not reproduce the issue and the test is running as it should.
---
 .../src/it/projects/ci-friendly/app/pom.xml        | 37 +++++++++++++
 .../src/it/projects/ci-friendly/lib/pom.xml        | 30 +++++++++++
 .../src/it/projects/ci-friendly/pom.xml            | 61 ++++++++++++++++++++++
 .../src/it/projects/ci-friendly/test.properties    | 18 +++++++
 4 files changed, 146 insertions(+)

diff --git a/maven-enforcer-plugin/src/it/projects/ci-friendly/app/pom.xml b/maven-enforcer-plugin/src/it/projects/ci-friendly/app/pom.xml
new file mode 100644
index 0000000..22f6c12
--- /dev/null
+++ b/maven-enforcer-plugin/src/it/projects/ci-friendly/app/pom.xml
@@ -0,0 +1,37 @@
+<?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>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.maven.its.enforcer</groupId>
+        <artifactId>cifriendly</artifactId>
+        <version>${revision}${changelist}</version>
+    </parent>
+    <artifactId>app</artifactId>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.maven.its.enforcer</groupId>
+            <artifactId>lib</artifactId>
+            <version>${quant.core.version}</version>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/maven-enforcer-plugin/src/it/projects/ci-friendly/lib/pom.xml b/maven-enforcer-plugin/src/it/projects/ci-friendly/lib/pom.xml
new file mode 100644
index 0000000..345bb29
--- /dev/null
+++ b/maven-enforcer-plugin/src/it/projects/ci-friendly/lib/pom.xml
@@ -0,0 +1,30 @@
+<?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>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.maven.its.enforcer</groupId>
+        <artifactId>cifriendly</artifactId>
+        <version>${revision}${changelist}</version>
+    </parent>
+    <artifactId>lib</artifactId>
+</project>
diff --git a/maven-enforcer-plugin/src/it/projects/ci-friendly/pom.xml b/maven-enforcer-plugin/src/it/projects/ci-friendly/pom.xml
new file mode 100644
index 0000000..cf23ac1
--- /dev/null
+++ b/maven-enforcer-plugin/src/it/projects/ci-friendly/pom.xml
@@ -0,0 +1,61 @@
+<?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>
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.apache.maven.its.enforcer</groupId>
+    <artifactId>cifriendly</artifactId>
+    <version>${revision}${changelist}</version>
+    <packaging>pom</packaging>
+
+    <description>
+    </description>
+    <modules>
+        <module>lib</module>
+        <module>app</module>
+    </modules>
+    <properties>
+        <quant.core.version>${project.version}</quant.core.version>
+    </properties>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <version>@project.version@</version>
+                <executions>
+                    <execution>
+                        <id>cifriendly</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <dependencyConvergence/>
+                            </rules>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/maven-enforcer-plugin/src/it/projects/ci-friendly/test.properties b/maven-enforcer-plugin/src/it/projects/ci-friendly/test.properties
new file mode 100644
index 0000000..d8ff14d
--- /dev/null
+++ b/maven-enforcer-plugin/src/it/projects/ci-friendly/test.properties
@@ -0,0 +1,18 @@
+# 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.
+revision=1.0.0
+changelist=QP_2383