You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2021/09/12 10:53:09 UTC

[maven-enforcer] branch jruby-stdlib-enforcer-bug created (now 63cdb42)

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

olamy pushed a change to branch jruby-stdlib-enforcer-bug
in repository https://gitbox.apache.org/repos/asf/maven-enforcer.git.


      at 63cdb42  add test for wrong pom org.jruby:jruby-stdlib:jar:9.2.13.0

This branch includes the following new commits:

     new 63cdb42  add test for wrong pom org.jruby:jruby-stdlib:jar:9.2.13.0

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[maven-enforcer] 01/01: add test for wrong pom org.jruby:jruby-stdlib:jar:9.2.13.0

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olamy pushed a commit to branch jruby-stdlib-enforcer-bug
in repository https://gitbox.apache.org/repos/asf/maven-enforcer.git

commit 63cdb4263861d96c8179bea4e528ae542f48a4da
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Sun Sep 12 20:52:55 2021 +1000

    add test for wrong pom org.jruby:jruby-stdlib:jar:9.2.13.0
    
    Signed-off-by: Olivier Lamy <ol...@apache.org>
---
 .../jruby-stdlib-enforcer-bug/invoker.properties   |  18 ++++
 .../it/projects/jruby-stdlib-enforcer-bug/pom.xml  | 120 +++++++++++++++++++++
 .../src/main/java/org/olamy/mvnbug/App.java        |  32 ++++++
 3 files changed, 170 insertions(+)

diff --git a/maven-enforcer-plugin/src/it/projects/jruby-stdlib-enforcer-bug/invoker.properties b/maven-enforcer-plugin/src/it/projects/jruby-stdlib-enforcer-bug/invoker.properties
new file mode 100644
index 0000000..d77c182
--- /dev/null
+++ b/maven-enforcer-plugin/src/it/projects/jruby-stdlib-enforcer-bug/invoker.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.
+
+invoker.goals = validate
diff --git a/maven-enforcer-plugin/src/it/projects/jruby-stdlib-enforcer-bug/pom.xml b/maven-enforcer-plugin/src/it/projects/jruby-stdlib-enforcer-bug/pom.xml
new file mode 100644
index 0000000..2b7bc60
--- /dev/null
+++ b/maven-enforcer-plugin/src/it/projects/jruby-stdlib-enforcer-bug/pom.xml
@@ -0,0 +1,120 @@
+<?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 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/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.olamy.mvnbug</groupId>
+  <artifactId>jruby-stdlib-enforcer-bug</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>jruby-stdlib-enforcer-bug</name>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <maven.compiler.source>1.7</maven.compiler.source>
+    <maven.compiler.target>1.7</maven.compiler.target>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.jruby</groupId>
+      <artifactId>jruby-stdlib</artifactId>
+      <version>9.2.13.0</version>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.11</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
+      <plugins>
+        <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
+        <plugin>
+          <artifactId>maven-clean-plugin</artifactId>
+          <version>3.1.0</version>
+        </plugin>
+        <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
+        <plugin>
+          <artifactId>maven-resources-plugin</artifactId>
+          <version>3.0.2</version>
+        </plugin>
+        <plugin>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <version>3.8.0</version>
+        </plugin>
+        <plugin>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <version>2.22.1</version>
+        </plugin>
+        <plugin>
+          <artifactId>maven-jar-plugin</artifactId>
+          <version>3.0.2</version>
+        </plugin>
+        <plugin>
+          <artifactId>maven-install-plugin</artifactId>
+          <version>2.5.2</version>
+        </plugin>
+        <plugin>
+          <artifactId>maven-deploy-plugin</artifactId>
+          <version>2.8.2</version>
+        </plugin>
+        <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
+        <plugin>
+          <artifactId>maven-site-plugin</artifactId>
+          <version>3.7.1</version>
+        </plugin>
+        <plugin>
+          <artifactId>maven-project-info-reports-plugin</artifactId>
+          <version>3.0.0</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>3.0.0</version>
+        <executions>
+          <execution>
+            <id>enforce-upperbound</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <phase>validate</phase>
+            <configuration>
+              <rules>
+                <requireUpperBoundDeps>
+                </requireUpperBoundDeps>
+              </rules>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/maven-enforcer-plugin/src/it/projects/jruby-stdlib-enforcer-bug/src/main/java/org/olamy/mvnbug/App.java b/maven-enforcer-plugin/src/it/projects/jruby-stdlib-enforcer-bug/src/main/java/org/olamy/mvnbug/App.java
new file mode 100644
index 0000000..7aa688e
--- /dev/null
+++ b/maven-enforcer-plugin/src/it/projects/jruby-stdlib-enforcer-bug/src/main/java/org/olamy/mvnbug/App.java
@@ -0,0 +1,32 @@
+package org.olamy.mvnbug;
+
+/*
+ * 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.
+ */
+
+/**
+ * Hello world!
+ *
+ */
+public class App 
+{
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
+    }
+}