Skip to content

Commit 440209f

Browse files
committed
Update README.md
1 parent 3556c0a commit 440209f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,33 @@
11
Example Maven multi-module project
22
===
33

4+
With multi-module projects the groupId becomes: com.github.User.Repo
5+
And artifactId remains the same as in the module's pom file.
46

7+
Module 1:
8+
```xml
9+
<dependency>
10+
<groupId>com.github.jitpack.maven-modular</groupId>
11+
<artifactId>module1</artifactId>
12+
<version>1.1</version>
13+
</dependency>
14+
```
15+
16+
Module 2:
17+
```xml
18+
<dependency>
19+
<groupId>com.github.jitpack.maven-modular</groupId>
20+
<artifactId>module2</artifactId>
21+
<version>1.1</version>
22+
</dependency>
23+
```
24+
25+
To get both of them together use the usual repository syntax:
26+
27+
```xml
28+
<dependency>
29+
<groupId>com.github.jitpack</groupId>
30+
<artifactId>maven-modular</artifactId>
31+
<version>1.1</version>
32+
</dependency>
33+
```

0 commit comments

Comments
 (0)