Browse Source

added sub modules

develop
Robin Thoni 8 years ago
parent
commit
5b102d6c89

+ 16
- 0
client/client.iml View File

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
4
+    <output url="file://$MODULE_DIR$/target/classes" />
5
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
6
+    <content url="file://$MODULE_DIR$">
7
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10
+      <excludeFolder url="file://$MODULE_DIR$/target" />
11
+    </content>
12
+    <orderEntry type="inheritedJdk" />
13
+    <orderEntry type="sourceFolder" forTests="false" />
14
+    <orderEntry type="module" module-name="common" />
15
+  </component>
16
+</module>

+ 22
- 0
client/pom.xml View File

@@ -0,0 +1,22 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0"
3
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+    <parent>
6
+        <artifactId>java-rmi</artifactId>
7
+        <groupId>com.uqac.rthoni</groupId>
8
+        <version>0.1</version>
9
+    </parent>
10
+    <modelVersion>4.0.0</modelVersion>
11
+
12
+    <artifactId>client</artifactId>
13
+    <dependencies>
14
+        <dependency>
15
+            <groupId>com.uqac.rthoni</groupId>
16
+            <artifactId>common</artifactId>
17
+            <version>0.1</version>
18
+        </dependency>
19
+    </dependencies>
20
+
21
+
22
+</project>

+ 10
- 0
client/src/main/java/com/uqac/rthoni/com/java_rmi/client/ClientTestClass.java View File

@@ -0,0 +1,10 @@
1
+package com.uqac.rthoni.com.java_rmi.client;
2
+
3
+import com.uqac.rthoni.java_rmi.common.CommonTestClass;
4
+
5
+/**
6
+ * Created by robin on 9/15/16.
7
+ */
8
+public class ClientTestClass {
9
+    CommonTestClass t;
10
+}

+ 15
- 0
common/common.iml View File

@@ -0,0 +1,15 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
4
+    <output url="file://$MODULE_DIR$/target/classes" />
5
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
6
+    <content url="file://$MODULE_DIR$">
7
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10
+      <excludeFolder url="file://$MODULE_DIR$/target" />
11
+    </content>
12
+    <orderEntry type="inheritedJdk" />
13
+    <orderEntry type="sourceFolder" forTests="false" />
14
+  </component>
15
+</module>

+ 15
- 0
common/pom.xml View File

@@ -0,0 +1,15 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0"
3
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+    <parent>
6
+        <artifactId>java-rmi</artifactId>
7
+        <groupId>com.uqac.rthoni</groupId>
8
+        <version>0.1</version>
9
+    </parent>
10
+    <modelVersion>4.0.0</modelVersion>
11
+
12
+    <artifactId>common</artifactId>
13
+
14
+
15
+</project>

+ 7
- 0
common/src/main/java/com/uqac/rthoni/java_rmi/common/CommonTestClass.java View File

@@ -0,0 +1,7 @@
1
+package com.uqac.rthoni.java_rmi.common;
2
+
3
+/**
4
+ * Created by robin on 9/15/16.
5
+ */
6
+public class CommonTestClass {
7
+}

+ 18
- 0
pom.xml View File

@@ -6,7 +6,25 @@
6 6
 
7 7
     <groupId>com.uqac.rthoni</groupId>
8 8
     <artifactId>java-rmi</artifactId>
9
+    <packaging>pom</packaging>
9 10
     <version>0.1</version>
11
+    <modules>
12
+        <module>server</module>
13
+        <module>client</module>
14
+        <module>common</module>
15
+    </modules>
16
+    <dependencies>
17
+        <dependency>
18
+            <groupId>com.uqac.rthoni</groupId>
19
+            <artifactId>client</artifactId>
20
+            <version>0.1</version>
21
+        </dependency>
22
+        <dependency>
23
+            <groupId>com.uqac.rthoni</groupId>
24
+            <artifactId>server</artifactId>
25
+            <version>0.1</version>
26
+        </dependency>
27
+    </dependencies>
10 28
 
11 29
 
12 30
 </project>

+ 15
- 0
server/pom.xml View File

@@ -0,0 +1,15 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0"
3
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+    <parent>
6
+        <artifactId>java-rmi</artifactId>
7
+        <groupId>com.uqac.rthoni</groupId>
8
+        <version>0.1</version>
9
+    </parent>
10
+    <modelVersion>4.0.0</modelVersion>
11
+
12
+    <artifactId>server</artifactId>
13
+
14
+
15
+</project>

+ 16
- 0
server/server.iml View File

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
4
+    <output url="file://$MODULE_DIR$/target/classes" />
5
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
6
+    <content url="file://$MODULE_DIR$">
7
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10
+      <excludeFolder url="file://$MODULE_DIR$/target" />
11
+    </content>
12
+    <orderEntry type="inheritedJdk" />
13
+    <orderEntry type="sourceFolder" forTests="false" />
14
+    <orderEntry type="module" module-name="common" />
15
+  </component>
16
+</module>

+ 10
- 0
server/src/main/java/com/uqac/rthoni/com/java_rmi/server/ServerTestClass.java View File

@@ -0,0 +1,10 @@
1
+package com.uqac.rthoni.com.java_rmi.server;
2
+
3
+import com.uqac.rthoni.java_rmi.common.CommonTestClass;
4
+
5
+/**
6
+ * Created by robin on 9/15/16.
7
+ */
8
+public class ServerTestClass {
9
+    CommonTestClass t;
10
+}

+ 5
- 0
src/main/java/com/uqac/rthoni/java_rmi/Main.java View File

@@ -1,11 +1,16 @@
1 1
 package com.uqac.rthoni.java_rmi;
2 2
 
3
+import com.uqac.rthoni.com.java_rmi.client.ClientTestClass;
4
+import com.uqac.rthoni.com.java_rmi.server.ServerTestClass;
5
+
3 6
 /**
4 7
  * Created by robin on 9/15/16.
5 8
  */
6 9
 public class Main {
7 10
     public static void main(String[] args)
8 11
     {
12
+        ClientTestClass t2;
13
+        ServerTestClass t3;
9 14
         System.out.println("Hello World!");
10 15
         System.exit(0);
11 16
     }

+ 3
- 0
uqac-java-rmi.iml View File

@@ -11,5 +11,8 @@
11 11
     </content>
12 12
     <orderEntry type="inheritedJdk" />
13 13
     <orderEntry type="sourceFolder" forTests="false" />
14
+    <orderEntry type="module" module-name="client" />
15
+    <orderEntry type="module" module-name="common" />
16
+    <orderEntry type="module" module-name="server" />
14 17
   </component>
15 18
 </module>

Loading…
Cancel
Save