You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2018/07/07 09:39:30 UTC

[maven-compiler-plugin] branch MCOMPILER-320 updated (e8daa01 -> fce7d90)

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

khmarbaise pushed a change to branch MCOMPILER-320
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git.


 discard e8daa01  Merge pull request #2 from dmlloyd/MC-320-problems
 discard 9a0799e  problem with ranges?
 discard 7dd4045  try using Jenkins with Java 10
    omit 022d234  [MCOMPILER-320] Show cases where failures occur
    omit 4a95b16  [MCOMPILER-320] Allow additional class path items to be given during compilation
     add 33b5302  [MCOMPILER-324] - Upgrade parent to 31
     add 540bf4b  [MCOMPILER-326] Upgrade plexus-compiler to 2.8.3
     add bcd1347  Ensure Jenkins fails when ITs fail
     add 67573e0  add some debug for ASF Jenkins failure
     add b8ef4b2  add some debug for ASF Jenkins failure
     add 41642b9  should fix issue using withMaven
     add 688356c  [MCOMPILER-332] Java 10 not supported
     add e439e70  [MCOMPILER-192] Add XOR check for Jenkins
     add 69d53c9  use batch mode
     add 774025f  [MCOMPILER-338] Build Issue based on MCOMPILER-192 IT  o The build issues where not only based on MCOMPILER-192    also on other areas of the builds which resulted on problems.  o Upgrade surefire.version to 2.21.0 (to work in JDK 10)  o MCOMPILER-197    o need to limit the run to 1.6..1.8  o groovy-project-with-new-plexus-compiler    o need to limit the run to 1.6..1.8  o MCOMPILER-192 IT    o Identification in the log file needed to be changed      based on different O [...]
     add c1f8306  [MCOMPILER-338] Build Issue based on MCOMPILER-192 IT  o Followup  o Define the order of setup IT's explicitly cause    their order is important.
     add d12fe39  Moved two dependendent modules into a single aggregator build to make sure the order is being kept.
     add 550875a  [MNGSITE-332] - Changed download templates of plugins not to reference .md5 anymore
     add bc99395  [MCOMPILER-336] Dependency that should be on modulepath sometime put on classpath
     add 8b26d49  [MCOMPILER-341] Compile module descriptors with TestCompilerMojo
     add c2d6a4b  Merge remote-tracking branch 'remotes/origin/MCOMPILER-341'
     add 3e8d8af  [MCOMPILER-342] Unsupported class file major version 55 Upgrade plexus-java to 0.9.10 Replace deprecated methods
     add e258b65  [MCOMPILER-311] NPE when --patch-module is used
     add ce26802  [MCOMPILER-321] Problematic Java 9 modules are silently ignored
     add c4d92a1  [MCOMPILER-344] Deprecate <optimize> flag
     add 89f0c93  [INFRA-16467] move components documentation out of CMS space
     add 244d11b  TLS 1.2 to maven-invoker-plugin.
     add a4d0778  Switch to asfMavenTlpPlgnBuild
     new ed60147  [MCOMPILER-320] Allow additional class path items to be given during compilation
     new fce7d90  [MCOMPILER-320] Show cases where failures occur

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (e8daa01)
            \
             N -- N -- N   refs/heads/MCOMPILER-320 (fce7d90)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 2 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.


Summary of changes:
 Jenkinsfile                                        |   2 +-
 pom.xml                                            |  43 +++++-
 src/it/MCOMPILER-192/invoker.properties            |   2 +-
 src/it/MCOMPILER-192/pom.xml                       |   3 +
 src/it/MCOMPILER-192/verify.groovy                 |  24 ++-
 src/it/MCOMPILER-197/invoker.properties            |   2 +-
 .../invoker.properties                             |   0
 .../pom.xml                                        | 117 +++++++-------
 .../src}/invoker.properties                        |   0
 .../src/main/java/module-info.java                 |  42 ++---
 .../src/test/java/test/MyTest.java}                |   7 +-
 .../verify.groovy                                  |  11 +-
 .../invoker.properties                             |   2 +-
 .../pom.xml                                        | 114 +++++++-------
 .../src/main/java/MyClass.java                     |   0
 .../src/test/java/MyTest.java                      |   0
 .../verify.groovy                                  |   0
 .../a}/pom.xml                                     |  68 ++++----
 .../a/src/main/java/module-info.java}              |   6 +-
 .../b}/pom.xml                                     |  84 +++++-----
 .../b/src/main/java/module-info.java}              |  45 +++---
 .../b/src/main/java/test/Foo.java}                 |  46 +++---
 .../b/src/main/java/test/package-info.java}        |   7 +-
 .../invoker.properties                             |   3 +
 .../pom.xml                                        |  97 ++++++------
 .../invoker.properties                             |   2 +-
 .../invoker.properties                             |   0
 .../pom.xml                                        |  98 +++++++-----
 .../src/test/java/bar/BarTests.java}               |  19 +--
 .../src/test/java/module-info.java}                |  47 +++---
 .../verify.groovy}                                 |  46 +++---
 .../invoker.properties                             |   0
 .../app => jpms_compile-main-foo-test-bar}/pom.xml | 103 +++++++-----
 .../src/main/java/foo/Foo.java}                    |  11 +-
 .../src/main/java/module-info.java                 |  46 +++---
 .../src/test/java/bar/BarTests.java}               |  23 ++-
 .../src/test/java/module-info.java}                |  48 +++---
 .../verify.groovy                                  |  46 +++---
 .../invoker.properties                             |   0
 .../app => jpms_compile-main-foo-test-foo}/pom.xml | 103 +++++++-----
 .../src/main/java/foo/Foo.java}                    |  11 +-
 .../src/main/java/module-info.java                 |  45 +++---
 .../src/test/java/foo/FooTests.java}               |  22 ++-
 .../src/test}/java/module-info.java                |  50 +++---
 .../verify.groovy                                  |  56 ++++---
 src/it/setup_jar_classic/invoker.properties        |  19 ---
 .../invoker.properties                             |   0
 src/it/{setup_jar_classic => setup_x}/pom.xml      |  22 +--
 src/it/{ => setup_x}/setup_jar_classic/pom.xml     |   0
 .../src/main/java/com/ta2/MyClass.java             |   0
 .../{ => setup_x}/setup_module-transitive/pom.xml  |   0
 .../src/main/java/com/ta2/plus/MyClass.java        |   0
 .../src/main/java/module-info.java                 |   0
 .../plugin/compiler/AbstractCompilerMojo.java      |  45 ++++--
 .../apache/maven/plugin/compiler/CompilerMojo.java |  17 +-
 .../maven/plugin/compiler/TestCompilerMojo.java    | 172 +++++++++++++++------
 src/site/xdoc/download.xml.vm                      |   2 +-
 .../plugin/compiler/CompilerMojoTestCase.java      |   8 +-
 58 files changed, 1011 insertions(+), 775 deletions(-)
 copy src/it/{jpms_add-exports => MCOMPILER-321_pathexceptions}/invoker.properties (100%)
 copy src/it/{setup_module-transitive => MCOMPILER-321_pathexceptions}/pom.xml (82%)
 copy src/it/{jpms_add-exports => MCOMPILER-321_pathexceptions/src}/invoker.properties (100%)
 copy src/it/{MCOMPILER-275_separate-moduleinfo => MCOMPILER-321_pathexceptions}/src/main/java/module-info.java (97%)
 copy src/it/{mcompiler-135/src/main/java/MyClass.java => MCOMPILER-321_pathexceptions/src/test/java/test/MyTest.java} (95%)
 copy src/it/{MCOMPILER-275_separate-moduleinfo => MCOMPILER-321_pathexceptions}/verify.groovy (69%)
 copy src/it/{automodules-application => MCOMPILER-322_release10}/invoker.properties (96%)
 copy src/it/{MCOMPILER-270_release => MCOMPILER-322_release10}/pom.xml (90%)
 copy src/it/{test1 => MCOMPILER-322_release10}/src/main/java/MyClass.java (100%)
 copy src/it/{default => MCOMPILER-322_release10}/src/test/java/MyTest.java (100%)
 copy src/it/{MCOMPILER-270_release => MCOMPILER-322_release10}/verify.groovy (100%)
 copy src/it/{MCOMPILER-294/lib => MCOMPILER-336_incremental-modulepath/a}/pom.xml (80%)
 copy src/it/{MCOMPILER-192/src/main/java/dummy/license.txt => MCOMPILER-336_incremental-modulepath/a/src/main/java/module-info.java} (97%)
 copy src/it/{MCOMPILER-294/app => MCOMPILER-336_incremental-modulepath/b}/pom.xml (81%)
 copy src/it/{MCOMPILER-129/src/main/java/MyClass.java => MCOMPILER-336_incremental-modulepath/b/src/main/java/module-info.java} (94%)
 copy src/it/{MCOMPILER-129/src/main/java/MyClass.java => MCOMPILER-336_incremental-modulepath/b/src/main/java/test/Foo.java} (94%)
 copy src/it/{MCOMPILER-192/src/main/java/dummy/license.txt => MCOMPILER-336_incremental-modulepath/b/src/main/java/test/package-info.java} (95%)
 copy src/it/{MCOMPILER-275_separate-moduleinfo => MCOMPILER-336_incremental-modulepath}/invoker.properties (94%)
 copy src/it/{setup_jar_module => MCOMPILER-336_incremental-modulepath}/pom.xml (76%)
 copy src/it/{MCOMPILER-197 => groovy-project-with-new-plexus-compiler}/invoker.properties (95%)
 copy src/it/{jpms_add-exports => jpms_compile-main-empty-test-bar}/invoker.properties (100%)
 copy src/it/{MCOMPILER-294/app => jpms_compile-main-empty-test-bar}/pom.xml (55%)
 copy src/it/{MCOMPILER-298/src/test/java/com/foo/ParameterTest.java => jpms_compile-main-empty-test-bar/src/test/java/bar/BarTests.java} (68%)
 copy src/it/{MCOMPILER-129/src/main/java/MyClass.java => jpms_compile-main-empty-test-bar/src/test/java/module-info.java} (90%)
 copy src/it/{MCOMPILER-260_customArguments/src/main/java/com/foo/MyClass.java => jpms_compile-main-empty-test-bar/verify.groovy} (83%)
 copy src/it/{jpms_add-exports => jpms_compile-main-foo-test-bar}/invoker.properties (100%)
 copy src/it/{MCOMPILER-294/app => jpms_compile-main-foo-test-bar}/pom.xml (51%)
 copy src/it/{MCOMPILER-298/src/main/java/com/foo/ParameterClass.java => jpms_compile-main-foo-test-bar/src/main/java/foo/Foo.java} (84%)
 copy src/it/{MCOMPILER-268_modulepath => jpms_compile-main-foo-test-bar}/src/main/java/module-info.java (95%)
 copy src/{test/java/org/apache/maven/plugin/compiler/stubs/DebugEnabledLog.java => it/jpms_compile-main-foo-test-bar/src/test/java/bar/BarTests.java} (69%)
 copy src/it/{MCOMPILER-129/src/main/java/MyClass.java => jpms_compile-main-foo-test-bar/src/test/java/module-info.java} (89%)
 copy src/it/{automodules-application => jpms_compile-main-foo-test-bar}/verify.groovy (73%)
 copy src/it/{jpms_add-exports => jpms_compile-main-foo-test-foo}/invoker.properties (100%)
 copy src/it/{MCOMPILER-294/app => jpms_compile-main-foo-test-foo}/pom.xml (51%)
 copy src/it/{MCOMPILER-298/src/main/java/com/foo/ParameterClass.java => jpms_compile-main-foo-test-foo/src/main/java/foo/Foo.java} (85%)
 copy src/it/{MCOMPILER-268_modulepath => jpms_compile-main-foo-test-foo}/src/main/java/module-info.java (95%)
 copy src/{test/java/org/apache/maven/plugin/compiler/stubs/DebugEnabledLog.java => it/jpms_compile-main-foo-test-foo/src/test/java/foo/FooTests.java} (70%)
 copy src/it/{MCOMPILER-268_modulepath/src/main => jpms_compile-main-foo-test-foo/src/test}/java/module-info.java (87%)
 copy src/it/{jpms_patch-module => jpms_compile-main-foo-test-foo}/verify.groovy (62%)
 delete mode 100644 src/it/setup_jar_classic/invoker.properties
 rename src/it/{setup_module-transitive => setup_x}/invoker.properties (100%)
 copy src/it/{setup_jar_classic => setup_x}/pom.xml (73%)
 rename src/it/{ => setup_x}/setup_jar_classic/pom.xml (100%)
 rename src/it/{ => setup_x}/setup_jar_classic/src/main/java/com/ta2/MyClass.java (100%)
 rename src/it/{ => setup_x}/setup_module-transitive/pom.xml (100%)
 rename src/it/{ => setup_x}/setup_module-transitive/src/main/java/com/ta2/plus/MyClass.java (100%)
 rename src/it/{ => setup_x}/setup_module-transitive/src/main/java/module-info.java (100%)


[maven-compiler-plugin] 02/02: [MCOMPILER-320] Show cases where failures occur

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

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

commit fce7d90a9839abda1763057577bf9ac7a8704cf8
Author: David M. Lloyd <da...@redhat.com>
AuthorDate: Fri Jan 19 09:41:36 2018 -0600

    [MCOMPILER-320] Show cases where failures occur
---
 src/it/MCOMPILER-320_mrjar/lib/pom.xml             | 15 ++++++++++++
 .../lib/src/main/java/asset/MyClass.java           |  2 +-
 .../lib/src/main/java/asset/MyClass2.java          | 28 ++++++++++++++++++++++
 .../MyClass.java => java10/asset/MyClass3.java}    | 10 ++++----
 .../lib/src/main/java9/asset/MyClass.java          |  8 ++++++-
 5 files changed, 57 insertions(+), 6 deletions(-)

diff --git a/src/it/MCOMPILER-320_mrjar/lib/pom.xml b/src/it/MCOMPILER-320_mrjar/lib/pom.xml
index aa20eec..ac04fcc 100644
--- a/src/it/MCOMPILER-320_mrjar/lib/pom.xml
+++ b/src/it/MCOMPILER-320_mrjar/lib/pom.xml
@@ -76,6 +76,21 @@
               <outputDirectory>${project.build.directory}/classes/META-INF/versions/9</outputDirectory>
             </configuration>
           </execution>
+          <execution>
+            <id>compile-java10</id>
+            <phase>compile</phase>
+            <goals>
+              <goal>compile</goal>
+            </goals>
+            <configuration>
+              <release>10</release>
+              <buildDirectory>${project.build.directory}</buildDirectory>
+              <compileSourceRoots>${project.basedir}/src/main/java10</compileSourceRoots>
+              <!-- we can output directly into the appropriate target directory;
+                this works out nicely -->
+              <outputDirectory>${project.build.directory}/classes/META-INF/versions/10</outputDirectory>
+            </configuration>
+          </execution>
         </executions>
       </plugin>
     </plugins>
diff --git a/src/it/MCOMPILER-320_mrjar/lib/src/main/java/asset/MyClass.java b/src/it/MCOMPILER-320_mrjar/lib/src/main/java/asset/MyClass.java
index 2b3004c..dbea4d3 100644
--- a/src/it/MCOMPILER-320_mrjar/lib/src/main/java/asset/MyClass.java
+++ b/src/it/MCOMPILER-320_mrjar/lib/src/main/java/asset/MyClass.java
@@ -29,6 +29,6 @@ public class MyClass
         byte    mydata[];
         BASE64Decoder base64 = new BASE64Decoder();
 
-        mydata = base64.decodeBuffer( bufferString );
+        mydata = base64.decodeBuffer( bufferString + MyClass2.getTheString() );
     }
 }
diff --git a/src/it/MCOMPILER-320_mrjar/lib/src/main/java/asset/MyClass2.java b/src/it/MCOMPILER-320_mrjar/lib/src/main/java/asset/MyClass2.java
new file mode 100644
index 0000000..33493ea
--- /dev/null
+++ b/src/it/MCOMPILER-320_mrjar/lib/src/main/java/asset/MyClass2.java
@@ -0,0 +1,28 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2018 Red Hat, Inc., and individual contributors
+ * as indicated by the @author tags.
+ *
+ * Licensed 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.
+ */
+
+package asset;
+
+/**
+ */
+public class MyClass2
+{
+    public static String getTheString() {
+        return "This is the string";
+    }
+}
diff --git a/src/it/MCOMPILER-320_mrjar/lib/src/main/java9/asset/MyClass.java b/src/it/MCOMPILER-320_mrjar/lib/src/main/java10/asset/MyClass3.java
similarity index 82%
copy from src/it/MCOMPILER-320_mrjar/lib/src/main/java9/asset/MyClass.java
copy to src/it/MCOMPILER-320_mrjar/lib/src/main/java10/asset/MyClass3.java
index e0ce482..a17d1d4 100644
--- a/src/it/MCOMPILER-320_mrjar/lib/src/main/java9/asset/MyClass.java
+++ b/src/it/MCOMPILER-320_mrjar/lib/src/main/java10/asset/MyClass3.java
@@ -22,10 +22,12 @@ package asset;
 import java.io.IOException;
 import java.util.Base64;
 
-public class MyClass
+public class MyClass3
 {
-    public void decode( String bufferString ) throws IOException
-    {
-        byte    mydata[] = Base64.getDecoder().decode( bufferString );
+
+    public static void test() {
+        MyClass.exampleMethod();
+        // will fail to compile if the toxic supplement is present
+        Base64.getMimeEncoder();
     }
 }
diff --git a/src/it/MCOMPILER-320_mrjar/lib/src/main/java9/asset/MyClass.java b/src/it/MCOMPILER-320_mrjar/lib/src/main/java9/asset/MyClass.java
index e0ce482..463aa2c 100644
--- a/src/it/MCOMPILER-320_mrjar/lib/src/main/java9/asset/MyClass.java
+++ b/src/it/MCOMPILER-320_mrjar/lib/src/main/java9/asset/MyClass.java
@@ -26,6 +26,12 @@ public class MyClass
 {
     public void decode( String bufferString ) throws IOException
     {
-        byte    mydata[] = Base64.getDecoder().decode( bufferString );
+        byte    mydata[] = Base64.getDecoder().decode( bufferString + MyClass2.getTheString() );
+        // will fail to compile if the toxic supplement is present
+        Base64.getMimeEncoder();
+    }
+
+    public static void exampleMethod() {
+        System.gc();
     }
 }


[maven-compiler-plugin] 01/02: [MCOMPILER-320] Allow additional class path items to be given during compilation

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

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

commit ed601478e8da4493bfaaf6dac453775610f511c9
Author: rfscholte <rf...@apache.org>
AuthorDate: Fri Jan 19 12:27:46 2018 +0100

    [MCOMPILER-320] Allow additional class path items to be given during compilation
---
 src/it/MCOMPILER-320_mrjar/consumer/pom.xml        | 55 ++++++++++++++
 src/it/MCOMPILER-320_mrjar/invoker.properties      | 19 +++++
 src/it/MCOMPILER-320_mrjar/lib/pom.xml             | 83 ++++++++++++++++++++++
 .../lib/src/main/java/asset/MyClass.java           | 34 +++++++++
 .../lib/src/main/java9/asset/MyClass.java          | 31 ++++++++
 src/it/MCOMPILER-320_mrjar/pom.xml                 | 36 ++++++++++
 src/it/MCOMPILER-320_mrjar/verify.groovy           | 26 +++++++
 src/it/MCOMPILER-320_sunmisc/invoker.properties    | 19 +++++
 src/it/MCOMPILER-320_sunmisc/pom.xml               | 58 +++++++++++++++
 .../src/main/java/asset/MyClass.java               | 34 +++++++++
 .../setup_jdk.unsupported-stub/invoker.properties  | 19 +++++
 src/it/setup_jdk.unsupported-stub/pom.xml          | 64 +++++++++++++++++
 .../apache/maven/stub/sun/misc/BASE64Decoder.java  | 28 ++++++++
 13 files changed, 506 insertions(+)

diff --git a/src/it/MCOMPILER-320_mrjar/consumer/pom.xml b/src/it/MCOMPILER-320_mrjar/consumer/pom.xml
new file mode 100644
index 0000000..76901f9
--- /dev/null
+++ b/src/it/MCOMPILER-320_mrjar/consumer/pom.xml
@@ -0,0 +1,55 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.compiler.it</groupId>
+  <artifactId>mcompiler320-consumer</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.plugins.compiler.it</groupId>
+      <artifactId>mcompiler320</artifactId>
+      <version>1.0-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <version>3.0.2</version>
+        <executions>
+          <execution>
+            <id>list</id>
+            <phase>compile</phase>
+            <goals>
+              <goal>list</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/src/it/MCOMPILER-320_mrjar/invoker.properties b/src/it/MCOMPILER-320_mrjar/invoker.properties
new file mode 100644
index 0000000..8d76986
--- /dev/null
+++ b/src/it/MCOMPILER-320_mrjar/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 = 9+
+invoker.goals = compile
diff --git a/src/it/MCOMPILER-320_mrjar/lib/pom.xml b/src/it/MCOMPILER-320_mrjar/lib/pom.xml
new file mode 100644
index 0000000..aa20eec
--- /dev/null
+++ b/src/it/MCOMPILER-320_mrjar/lib/pom.xml
@@ -0,0 +1,83 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.compiler.it</groupId>
+  <artifactId>mcompiler320</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <url>https://issues.apache.org/jira/browse/MCOMPILER-320</url>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.plugins.compiler.it</groupId>
+      <artifactId>jdk.unsupported-stub</artifactId>
+      <version>1.0.0</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>@project.version@</version>
+        <executions>
+          <!-- this compiles the base layer; however the release=8 option 
+            prevents sun.misc from being visible -->
+          <execution>
+            <id>default-compile</id>
+            <goals>
+              <goal>compile</goal>
+            </goals>
+            <configuration>
+              <release>8</release>
+            </configuration>
+          </execution>
+          <!-- this compiles the Java 9 layer; sun.misc is not a problem 
+            here but we also need to include our base classes in the compilation -->
+          <execution>
+            <id>compile-java9</id>
+            <phase>compile</phase>
+            <goals>
+              <goal>compile</goal>
+            </goals>
+            <configuration>
+              <release>9</release>
+              <buildDirectory>${project.build.directory}</buildDirectory>
+              <compileSourceRoots>${project.basedir}/src/main/java9</compileSourceRoots>
+              <!-- we can output directly into the appropriate target directory; 
+                this works out nicely -->
+              <outputDirectory>${project.build.directory}/classes/META-INF/versions/9</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/src/it/MCOMPILER-320_mrjar/lib/src/main/java/asset/MyClass.java b/src/it/MCOMPILER-320_mrjar/lib/src/main/java/asset/MyClass.java
new file mode 100644
index 0000000..2b3004c
--- /dev/null
+++ b/src/it/MCOMPILER-320_mrjar/lib/src/main/java/asset/MyClass.java
@@ -0,0 +1,34 @@
+package asset;
+
+/*
+ * 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.
+ */
+
+import java.io.IOException;
+import sun.misc.BASE64Decoder;
+
+public class MyClass
+{
+    public void decode( String bufferString ) throws IOException
+    {
+        byte    mydata[];
+        BASE64Decoder base64 = new BASE64Decoder();
+
+        mydata = base64.decodeBuffer( bufferString );
+    }
+}
diff --git a/src/it/MCOMPILER-320_mrjar/lib/src/main/java9/asset/MyClass.java b/src/it/MCOMPILER-320_mrjar/lib/src/main/java9/asset/MyClass.java
new file mode 100644
index 0000000..e0ce482
--- /dev/null
+++ b/src/it/MCOMPILER-320_mrjar/lib/src/main/java9/asset/MyClass.java
@@ -0,0 +1,31 @@
+package asset;
+
+/*
+ * 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.
+ */
+
+import java.io.IOException;
+import java.util.Base64;
+
+public class MyClass
+{
+    public void decode( String bufferString ) throws IOException
+    {
+        byte    mydata[] = Base64.getDecoder().decode( bufferString );
+    }
+}
diff --git a/src/it/MCOMPILER-320_mrjar/pom.xml b/src/it/MCOMPILER-320_mrjar/pom.xml
new file mode 100644
index 0000000..ba623a7
--- /dev/null
+++ b/src/it/MCOMPILER-320_mrjar/pom.xml
@@ -0,0 +1,36 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.compiler.it</groupId>
+  <artifactId>mcompiler320-aggregator</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+  <url>https://issues.apache.org/jira/browse/MCOMPILER-320</url>
+
+  <modules>
+    <module>lib</module>
+    <module>consumer</module>
+  </modules>
+</project>
diff --git a/src/it/MCOMPILER-320_mrjar/verify.groovy b/src/it/MCOMPILER-320_mrjar/verify.groovy
new file mode 100644
index 0000000..e7ba57f
--- /dev/null
+++ b/src/it/MCOMPILER-320_mrjar/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
+ *
+ * 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.
+ */
+def logLines = new File( basedir, 'build.log').readLines()
+
+logLines = logLines.dropWhile{ it != "[INFO] The following files have been resolved:" }
+assert !logLines.isEmpty()
+
+logLines.each { it -> assert !it.contains("sun.misc") }
+
+return true;
\ No newline at end of file
diff --git a/src/it/MCOMPILER-320_sunmisc/invoker.properties b/src/it/MCOMPILER-320_sunmisc/invoker.properties
new file mode 100644
index 0000000..8d76986
--- /dev/null
+++ b/src/it/MCOMPILER-320_sunmisc/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 = 9+
+invoker.goals = compile
diff --git a/src/it/MCOMPILER-320_sunmisc/pom.xml b/src/it/MCOMPILER-320_sunmisc/pom.xml
new file mode 100644
index 0000000..61ee4be
--- /dev/null
+++ b/src/it/MCOMPILER-320_sunmisc/pom.xml
@@ -0,0 +1,58 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.compiler.it</groupId>
+  <artifactId>mcompiler320</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <url>https://issues.apache.org/jira/browse/MCOMPILER-320</url>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.plugins.compiler.it</groupId>
+      <artifactId>jdk.unsupported-stub</artifactId>
+      <version>1.0.0</version>
+      <optional>true</optional>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>@project.version@</version>
+        <configuration>
+          <source>1.8</source>
+          <target>1.8</target>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/src/it/MCOMPILER-320_sunmisc/src/main/java/asset/MyClass.java b/src/it/MCOMPILER-320_sunmisc/src/main/java/asset/MyClass.java
new file mode 100644
index 0000000..2b3004c
--- /dev/null
+++ b/src/it/MCOMPILER-320_sunmisc/src/main/java/asset/MyClass.java
@@ -0,0 +1,34 @@
+package asset;
+
+/*
+ * 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.
+ */
+
+import java.io.IOException;
+import sun.misc.BASE64Decoder;
+
+public class MyClass
+{
+    public void decode( String bufferString ) throws IOException
+    {
+        byte    mydata[];
+        BASE64Decoder base64 = new BASE64Decoder();
+
+        mydata = base64.decodeBuffer( bufferString );
+    }
+}
diff --git a/src/it/setup_jdk.unsupported-stub/invoker.properties b/src/it/setup_jdk.unsupported-stub/invoker.properties
new file mode 100644
index 0000000..4b40d10
--- /dev/null
+++ b/src/it/setup_jdk.unsupported-stub/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.goals = install
diff --git a/src/it/setup_jdk.unsupported-stub/pom.xml b/src/it/setup_jdk.unsupported-stub/pom.xml
new file mode 100644
index 0000000..6040748
--- /dev/null
+++ b/src/it/setup_jdk.unsupported-stub/pom.xml
@@ -0,0 +1,64 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.compiler.it</groupId>
+  <artifactId>jdk.unsupported-stub</artifactId>
+  <version>1.0.0</version>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>@project.version@</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <version>3.1.0</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>shade</goal>
+            </goals>
+            <configuration>
+              <relocations>
+                <relocation>
+                  <pattern>org.apache.maven.stub.sun.misc</pattern>
+                  <shadedPattern>sun.misc</shadedPattern>
+                </relocation>
+              </relocations>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>
diff --git a/src/it/setup_jdk.unsupported-stub/src/main/java/org/apache/maven/stub/sun/misc/BASE64Decoder.java b/src/it/setup_jdk.unsupported-stub/src/main/java/org/apache/maven/stub/sun/misc/BASE64Decoder.java
new file mode 100644
index 0000000..6dc5a80
--- /dev/null
+++ b/src/it/setup_jdk.unsupported-stub/src/main/java/org/apache/maven/stub/sun/misc/BASE64Decoder.java
@@ -0,0 +1,28 @@
+package org.apache.maven.stub.sun.misc;
+
+/*
+ * 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.
+ */
+public class BASE64Decoder
+{
+    public byte[] decodeBuffer( String inputString )
+        throws java.io.IOException
+    {
+        throw new UnsupportedOperationException();
+    }
+}