Skip to content

Commit

Permalink
#1 First commit, a multi-module maven example
Browse files Browse the repository at this point in the history
  • Loading branch information
maobaolong committed Feb 27, 2020
0 parents commit 2183f16
Show file tree
Hide file tree
Showing 7 changed files with 605 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
target/
*.iml
.*
nocommit/
reports
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Description

This repository is an example for multi-module maven project.
From this example, you can starts a great project, if you keep
the good practices all the way.

# Key point

## Checkstyle

## Findbugs

## Jacoco

## protoc

## git version info


26 changes: 26 additions & 0 deletions common/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>multimodule</artifactId>
<groupId>net.mbl.demo</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>multimodule-common</artifactId>

<properties>
<rootPOM>${basedir}/../</rootPOM>
</properties>

<dependencies>
<!-- internal dependencies -->
<dependency>
<groupId>net.mbl.demo</groupId>
<artifactId>multimodule-transport</artifactId>
</dependency>
<!-- end of internal dependencies -->
</dependencies>
</project>
17 changes: 17 additions & 0 deletions module1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>multimodule</artifactId>
<groupId>net.mbl.demo</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>mutimodule-module1</artifactId>

<properties>
<rootPOM>${basedir}/../</rootPOM>
</properties>
</project>
Loading

0 comments on commit 2183f16

Please sign in to comment.