Skip to content

Commit

Permalink
[Wen Hao] - update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhao committed Sep 27, 2017
1 parent 9de2219 commit 0d1d414
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 21 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ jpa-spec.iws
jpa-spec.iml
src/.DS_Store

.java-version
.java-version

out
24 changes: 24 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,30 @@ dependencies {
</dependency>
```

### Maven排除项目已存在的依赖

```xml
<dependency>
<groupId>com.github.wenhao</groupId>
<artifactId>jpa-spec</artifactId>
<version>3.1.1</version>
<exclusions>
<exclusion>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
</exclusion>
</exclusions>
</dependency>
```

<!--
### Specification By Examples
-->
Expand Down
24 changes: 24 additions & 0 deletions docs/3.0.0_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,30 @@ dependencies {
</dependency>
```

### Maven排除项目已存在的依赖

```xml
<dependency>
<groupId>com.github.wenhao</groupId>
<artifactId>jpa-spec</artifactId>
<version>3.0.0</version>
<exclusions>
<exclusion>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
</exclusion>
</exclusions>
</dependency>
```

<!--
### Specification By Examples
-->
Expand Down
24 changes: 24 additions & 0 deletions docs/3.1.0_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,30 @@ dependencies {
</dependency>
```

### Maven排除项目已存在的依赖

```xml
<dependency>
<groupId>com.github.wenhao</groupId>
<artifactId>jpa-spec</artifactId>
<version>3.1.0</version>
<exclusions>
<exclusion>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
</exclusion>
</exclusions>
</dependency>
```

<!--
### Specification By Examples
-->
Expand Down
40 changes: 20 additions & 20 deletions docs/3.1.1_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repositories {
}
dependencies {
compile 'com.github.wenhao:jpa-spec:3.1.0'
compile 'com.github.wenhao:jpa-spec:3.1.1'
}
```

Expand All @@ -21,31 +21,31 @@ dependencies {
<dependency>
<groupId>com.github.wenhao</groupId>
<artifactId>jpa-spec</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
</dependency>
```

### 已有框架引入springboot,spring data jpa,jpa api包的项目,可以通过以下Maven排除依赖。
### Maven排除项目已存在的依赖

```xml
<dependency>
<groupId>com.github.wenhao</groupId>
<artifactId>jpa-spec</artifactId>
<version>3.1.0</version>
<exclusions>
<exclusion>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
</exclusion>
</exclusions>
<groupId>com.github.wenhao</groupId>
<artifactId>jpa-spec</artifactId>
<version>3.1.1</version>
<exclusions>
<exclusion>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
</exclusion>
</exclusions>
</dependency>
```

Expand Down

0 comments on commit 0d1d414

Please sign in to comment.