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 2017/01/21 19:10:59 UTC

svn commit: r1779751 - in /maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto: ./ bar/ bar/src/ bar/src/main/ bar/src/main/java/ foo/ foo/src/ foo/src/main/ foo/src/main/java/ foo/src/main/java/foo/

Author: rfscholte
Date: Sat Jan 21 19:10:59 2017
New Revision: 1779751

URL: http://svn.apache.org/viewvc?rev=1779751&view=rev
Log:
Integration test of multimodule with exports to other module

Added:
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/pom.xml
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/src/
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/src/main/
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/src/main/java/
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/src/main/java/module-info.java
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/pom.xml
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/foo/
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/foo/Foo.java
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/module-info.java
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/invoker.properties
    maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/pom.xml

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/pom.xml?rev=1779751&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/pom.xml (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/pom.xml Sat Jan 21 19:10:59 2017
@@ -0,0 +1,40 @@
+<?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>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.compiler.it</groupId>
+    <artifactId>exportsto</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+  <artifactId>bar</artifactId>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.plugins.compiler.it</groupId>
+      <artifactId>foo</artifactId>
+      <version>1.0-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+</project>

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/src/main/java/module-info.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/src/main/java/module-info.java?rev=1779751&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/src/main/java/module-info.java (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/bar/src/main/java/module-info.java Sat Jan 21 19:10:59 2017
@@ -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 bar {
+  requires foo;
+}
\ No newline at end of file

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/pom.xml?rev=1779751&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/pom.xml (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/pom.xml Sat Jan 21 19:10:59 2017
@@ -0,0 +1,33 @@
+<?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>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.compiler.it</groupId>
+    <artifactId>exportsto</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+  <artifactId>foo</artifactId>
+
+</project>
\ No newline at end of file

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/foo/Foo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/foo/Foo.java?rev=1779751&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/foo/Foo.java (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/foo/Foo.java Sat Jan 21 19:10:59 2017
@@ -0,0 +1,22 @@
+package foo;
+
+/*
+ * 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 Foo {}
\ No newline at end of file

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/module-info.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/module-info.java?rev=1779751&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/module-info.java (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/foo/src/main/java/module-info.java Sat Jan 21 19:10:59 2017
@@ -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 foo {
+  exports foo to bar;
+}
\ No newline at end of file

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/invoker.properties?rev=1779751&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/invoker.properties (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/invoker.properties Sat Jan 21 19:10:59 2017
@@ -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+

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/pom.xml?rev=1779751&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/pom.xml (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/jdk9-exportsto/pom.xml Sat Jan 21 19:10:59 2017
@@ -0,0 +1,54 @@
+<?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>exportsto</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <version>@project.version@</version>
+          <configuration>
+            <release>9</release>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
+  <modules>
+   <module>foo</module>
+   <module>bar</module>
+  </modules>
+</project>