[maven-compiler-plugin] 01/01: [MCOMPILER-321] Problematic Java 9 modules are silently ignored

2018-06-06 Thread rfscholte
This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch MCOMPILER-321
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git

commit 59ad0c4c6688d20593bdb86d77845676e26bd873
Author: rfscholte 
AuthorDate: Mon Jun 4 23:29:03 2018 +0200

[MCOMPILER-321] Problematic Java 9 modules are silently ignored
---
 src/it/MCOMPILER-321_pathexceptions/pom.xml| 62 ++
 .../src/invoker.properties | 18 +++
 .../src/main/java/module-info.java | 22 
 .../src/test/java/test/MyTest.java | 24 +
 src/it/MCOMPILER-321_pathexceptions/verify.groovy  | 24 +
 .../apache/maven/plugin/compiler/CompilerMojo.java | 12 +
 .../maven/plugin/compiler/TestCompilerMojo.java| 16 +-
 7 files changed, 177 insertions(+), 1 deletion(-)

diff --git a/src/it/MCOMPILER-321_pathexceptions/pom.xml 
b/src/it/MCOMPILER-321_pathexceptions/pom.xml
new file mode 100644
index 000..f5cd0b8
--- /dev/null
+++ b/src/it/MCOMPILER-321_pathexceptions/pom.xml
@@ -0,0 +1,62 @@
+
+
+
+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;>
+  4.0.0
+
+  org.apache.maven.plugins.compiler.it
+  mcompiler321
+  1.0-SNAPSHOT
+
+  https://issues.apache.org/jira/browse/MCOMPILER-321
+
+  
+UTF-8
+  
+
+  
+
+  
+org.apache.maven.plugins
+maven-compiler-plugin
+@project.version@
+
+  9
+
+  
+
+  
+  
+  
+
+  jdom
+  jdom
+  1.0
+
+
+  org.apache.geronimo.specs
+  geronimo-servlet_2.4_spec
+  1.1.1
+
+  
+
+
diff --git a/src/it/MCOMPILER-321_pathexceptions/src/invoker.properties 
b/src/it/MCOMPILER-321_pathexceptions/src/invoker.properties
new file mode 100644
index 000..9511718
--- /dev/null
+++ b/src/it/MCOMPILER-321_pathexceptions/src/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.java.version = 9+
diff --git a/src/it/MCOMPILER-321_pathexceptions/src/main/java/module-info.java 
b/src/it/MCOMPILER-321_pathexceptions/src/main/java/module-info.java
new file mode 100644
index 000..0f43b06
--- /dev/null
+++ b/src/it/MCOMPILER-321_pathexceptions/src/main/java/module-info.java
@@ -0,0 +1,22 @@
+/*
+ * 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.
+ */
+
+module M.N {
+
+}
\ No newline at end of file
diff --git a/src/it/MCOMPILER-321_pathexceptions/src/test/java/test/MyTest.java 
b/src/it/MCOMPILER-321_pathexceptions/src/test/java/test/MyTest.java
new file mode 100644
index 000..e2e0835
--- /dev/null
+++ b/src/it/MCOMPILER-321_pathexceptions/src/test/java/test/MyTest.java
@@ -0,0 +1,24 @@
+package test;
+
+/*
+ * 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 

[maven-compiler-plugin] 01/01: [MCOMPILER-321] Problematic Java 9 modules are silently ignored

2018-03-11 Thread rfscholte
This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch MCOMPILER-321
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git

commit 0c28f120ba89e3861490efdc1cb0aa35fb822f95
Author: rfscholte 
AuthorDate: Sun Mar 11 21:18:48 2018 +0100

[MCOMPILER-321] Problematic Java 9 modules are silently ignored
---
 pom.xml|  2 +-
 .../invoker.properties | 19 
 src/it/MCOMPILER-321_module-warning/pom.xml| 56 ++
 .../src/main/java/module-info.java | 21 
 src/it/MCOMPILER-321_module-warning/verify.groovy  | 26 ++
 .../apache/maven/plugin/compiler/CompilerMojo.java | 23 +
 6 files changed, 146 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 9540d68..b9fc4ee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -119,7 +119,7 @@ under the License.
 
   org.codehaus.plexus
   plexus-java
-  0.9.4
+  0.9.6
 
 
 
diff --git a/src/it/MCOMPILER-321_module-warning/invoker.properties 
b/src/it/MCOMPILER-321_module-warning/invoker.properties
new file mode 100644
index 000..1e66566
--- /dev/null
+++ b/src/it/MCOMPILER-321_module-warning/invoker.properties
@@ -0,0 +1,19 @@
+# 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.java.version = 1.9+
+invoker.buildResult = failure
diff --git a/src/it/MCOMPILER-321_module-warning/pom.xml 
b/src/it/MCOMPILER-321_module-warning/pom.xml
new file mode 100644
index 000..cf7c68e
--- /dev/null
+++ b/src/it/MCOMPILER-321_module-warning/pom.xml
@@ -0,0 +1,56 @@
+
+
+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;>
+  4.0.0
+  org.apache.maven.plugins.compiler.it
+  mcompiler321
+  1.0.0-SNAPSHOT
+
+  https://issues.apache.org/jira/browse/MCOMPILER-298
+   
+  
+UTF-8
+  
+  
+  
+
+  
+
+  org.apache.maven.plugins
+  maven-compiler-plugin
+  @project.version@
+  
+9
+  
+
+  
+
+  
+
+  
+
+  org.python
+  jython-standalone
+  2.7.0
+
+  
+
+
diff --git a/src/it/MCOMPILER-321_module-warning/src/main/java/module-info.java 
b/src/it/MCOMPILER-321_module-warning/src/main/java/module-info.java
new file mode 100644
index 000..b9e0928
--- /dev/null
+++ b/src/it/MCOMPILER-321_module-warning/src/main/java/module-info.java
@@ -0,0 +1,21 @@
+/*
+ * 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.
+ */
+module nl.meandi.test {
+requires jython.standalone;
+}
diff --git a/src/it/MCOMPILER-321_module-warning/verify.groovy 
b/src/it/MCOMPILER-321_module-warning/verify.groovy
new file mode 100644
index 000..1271975
--- /dev/null
+++ b/src/it/MCOMPILER-321_module-warning/verify.groovy
@@ -0,0 +1,26 @@
+/*
+ * 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
+