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 2019/03/18 12:05:56 UTC

[maven-compiler-plugin] branch MCOMPILER-320_sunmisc created (now 32c8298)

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

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


      at 32c8298  [MCOMPILER-320] compile with sun.misc stub

This branch includes the following new commits:

     new 32c8298  [MCOMPILER-320] compile with sun.misc stub

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-compiler-plugin] 01/01: [MCOMPILER-320] compile with sun.misc stub

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

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

commit 32c8298dcc8afc424e08cf067f21f6c150ced7f8
Author: rfscholte <rf...@apache.org>
AuthorDate: Mon Mar 18 13:05:44 2019 +0100

    [MCOMPILER-320] compile with sun.misc stub
---
 pom.xml                                            |  9 ---
 src/it/MCOMPILER-320_sunmisc1/invoker.properties   | 19 +++++++
 src/it/MCOMPILER-320_sunmisc1/pom.xml              | 58 ++++++++++++++++++++
 .../src/main/java/asset/MyClass.java               | 34 ++++++++++++
 .../src/main/java/MyClass.java~HEAD                | 23 ++++++++
 .../src/main/java/MyClass.java~master              | 23 ++++++++
 .../setup_jdk.unsupported-stub/invoker.properties  | 19 +++++++
 src/it/setup_jdk.unsupported-stub/pom.xml          | 64 ++++++++++++++++++++++
 .../apache/maven/stub/sun/misc/BASE64Decoder.java  | 28 ++++++++++
 9 files changed, 268 insertions(+), 9 deletions(-)

diff --git a/pom.xml b/pom.xml
index e9cfafa..f1ee739 100644
--- a/pom.xml
+++ b/pom.xml
@@ -269,15 +269,6 @@ under the License.
                       <pomInclude>extras/*/pom.xml</pomInclude>
                       <pomInclude>multirelease-patterns/*/pom.xml</pomInclude>
                     </pomIncludes>
-                    <!--
-                      ! Unfortunately we can't define an execution order.
-                      ! https://issues.apache.org/jira/browse/MINVOKER-174
-                      -->
-                    <setupIncludes>
-                      <setupInclude>setup_jar_module/pom.xml</setupInclude>
-                      <setupInclude>setup_jar_automodule/pom.xml</setupInclude>
-                      <setupInclude>setup_x/pom.xml</setupInclude>
-                    </setupIncludes>
                     <setupExcludes>
                       <setupExclude>setup_x/**</setupExclude>
                     </setupExcludes>
diff --git a/src/it/MCOMPILER-320_sunmisc1/invoker.properties b/src/it/MCOMPILER-320_sunmisc1/invoker.properties
new file mode 100644
index 0000000..8d76986
--- /dev/null
+++ b/src/it/MCOMPILER-320_sunmisc1/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_sunmisc1/pom.xml b/src/it/MCOMPILER-320_sunmisc1/pom.xml
new file mode 100644
index 0000000..61ee4be
--- /dev/null
+++ b/src/it/MCOMPILER-320_sunmisc1/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_sunmisc1/src/main/java/asset/MyClass.java b/src/it/MCOMPILER-320_sunmisc1/src/main/java/asset/MyClass.java
new file mode 100644
index 0000000..2b3004c
--- /dev/null
+++ b/src/it/MCOMPILER-320_sunmisc1/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-328_multiReleaseOutput/src/main/java/MyClass.java~HEAD b/src/it/MCOMPILER-328_multiReleaseOutput/src/main/java/MyClass.java~HEAD
new file mode 100644
index 0000000..4945381
--- /dev/null
+++ b/src/it/MCOMPILER-328_multiReleaseOutput/src/main/java/MyClass.java~HEAD
@@ -0,0 +1,23 @@
+/*
+ * 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 MyClass
+{
+
+}
diff --git a/src/it/MCOMPILER-328_multiReleaseOutput/src/main/java/MyClass.java~master b/src/it/MCOMPILER-328_multiReleaseOutput/src/main/java/MyClass.java~master
new file mode 100644
index 0000000..4945381
--- /dev/null
+++ b/src/it/MCOMPILER-328_multiReleaseOutput/src/main/java/MyClass.java~master
@@ -0,0 +1,23 @@
+/*
+ * 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 MyClass
+{
+
+}
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();
+    }
+}