Skip to content

Commit 154cf47

Browse files
committed
Adjust pom
1 parent ac7d082 commit 154cf47

10 files changed

Lines changed: 129 additions & 49 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
*.zip
1919
*.tar.gz
2020
*.rar
21-
*/target/
21+
*/target
22+
*\target
2223

2324
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2425
hs_err_pid*

cache-api/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
<artifactId>spring-context</artifactId>
3939
<optional>true</optional>
4040
</dependency>
41-
<!-- <dependency>-->
42-
<!-- <groupId>org.apache.commons</groupId>-->
43-
<!-- <artifactId>commons-lang3</artifactId>-->
44-
<!-- </dependency>-->
4541
<dependency>
4642
<groupId>com.google.guava</groupId>
4743
<artifactId>guava</artifactId>

cache-redis/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,32 @@
2626
<dependency>
2727
<groupId>org.springframework.boot</groupId>
2828
<artifactId>spring-boot-starter-data-redis</artifactId>
29+
<version>2.4.5</version>
2930
</dependency>
3031
<dependency>
3132
<groupId>org.springframework</groupId>
3233
<artifactId>spring-aspects</artifactId>
34+
<version>5.3.6</version>
3335
</dependency>
3436
<dependency>
3537
<groupId>com.fasterxml.jackson.core</groupId>
3638
<artifactId>jackson-core</artifactId>
39+
<version>2.12.3</version>
3740
</dependency>
3841
<dependency>
3942
<groupId>com.fasterxml.jackson.datatype</groupId>
4043
<artifactId>jackson-datatype-jsr310</artifactId>
44+
<version>2.12.3</version>
4145
</dependency>
4246
<dependency>
4347
<groupId>com.fasterxml.jackson.core</groupId>
4448
<artifactId>jackson-databind</artifactId>
49+
<version>2.12.3</version>
4550
</dependency>
4651
<dependency>
4752
<groupId>org.apache.commons</groupId>
4853
<artifactId>commons-pool2</artifactId>
54+
<version>2.9.0</version>
4955
</dependency>
5056
<dependency>
5157
<groupId>com.alibaba</groupId>

cache-samples/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,25 @@
4040
</dependency>
4141
</dependencies>
4242
</dependencyManagement>
43+
44+
<build>
45+
<plugins>
46+
<plugin>
47+
<groupId>org.apache.maven.plugins</groupId>
48+
<artifactId>maven-source-plugin</artifactId>
49+
<version>${maven-source-plugin.version}</version>
50+
<configuration>
51+
<skipSource>true</skipSource>
52+
</configuration>
53+
</plugin>
54+
<plugin>
55+
<groupId>org.apache.maven.plugins</groupId>
56+
<artifactId>maven-deploy-plugin</artifactId>
57+
<version>${maven-deploy-plugin.version}</version>
58+
<configuration>
59+
<skip>true</skip>
60+
</configuration>
61+
</plugin>
62+
</plugins>
63+
</build>
4364
</project>

cache-samples/springboot-sample/src/main/java/io/meshware/cache/sample/springboot/cache/CommonTestCache.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* Description
1212
*
1313
* @author Zhiguo.Chen
14-
* @date 28/8/2019
1514
*/
1615
@Slf4j
1716
@Component
@@ -20,7 +19,7 @@ public class CommonTestCache extends AbstractCommonCache<String, String> {
2019
/**
2120
* Set a name for the cache
2221
*
23-
* @return
22+
* @return cache name
2423
*/
2524
@Override
2625
public String getName() {
@@ -40,7 +39,7 @@ public void initConfig() {
4039
/**
4140
* Init cache
4241
*
43-
* @param cache
42+
* @param cache cache
4443
*/
4544
@Override
4645
public void initCache(Cache<String, String> cache) {

cache-samples/springboot-sample/src/main/java/io/meshware/cache/sample/springboot/cache/ListOffHeapCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ListOffHeapCache extends StringKeyOffHeapCache<List<TestEntity>> {
2020
/**
2121
* Set a name for the cache
2222
*
23-
* @return
23+
* @return cache name
2424
*/
2525
@Override
2626
public String getName() {

cache-samples/springboot-sample/src/main/java/io/meshware/cache/sample/springboot/cache/ObjectOffHeapCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class ObjectOffHeapCache extends StringKeyOffHeapCache<TestEntity> {
1818
/**
1919
* Set a name for the cache
2020
*
21-
* @return
21+
* @return cache name
2222
*/
2323
@Override
2424
public String getName() {

cache-samples/springboot-sample/src/main/java/io/meshware/cache/sample/springboot/cache/StringOffHeapCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class StringOffHeapCache extends StringKeyOffHeapCache<String> {
1515
/**
1616
* Set a name for the cache
1717
*
18-
* @return
18+
* @return cache name
1919
*/
2020
@Override
2121
public String getName() {

cache-samples/springboot-sample/src/main/java/io/meshware/cache/sample/springboot/cache/SynchronousObjectOffHeapCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class SynchronousObjectOffHeapCache extends AbstractStringSynchronousOffH
2121
/**
2222
* Set a name for the cache
2323
*
24-
* @return
24+
* @return cache name
2525
*/
2626
@Override
2727
public String getName() {

pom.xml

Lines changed: 94 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@
3232
</license>
3333
</licenses>
3434

35-
<parent>
36-
<groupId>org.springframework.boot</groupId>
37-
<artifactId>spring-boot-starter-parent</artifactId>
38-
<version>2.4.4</version>
39-
<relativePath/> <!-- lookup parent from repository -->
40-
</parent>
41-
4235
<modules>
4336
<module>cache-api</module>
4437
<module>cache-redis</module>
@@ -48,6 +41,23 @@
4841
</modules>
4942

5043
<properties>
44+
<jdk.version>1.8</jdk.version>
45+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46+
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
47+
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
48+
<maven-jar-plugin.version>3.1.0</maven-jar-plugin.version>
49+
<maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
50+
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
51+
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
52+
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
53+
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
54+
<maven-surefire-plugin.argLine>-Xms512m -Xmx512m</maven-surefire-plugin.argLine>
55+
<maven-surefire-plugin.skipTests>true</maven-surefire-plugin.skipTests>
56+
<maven-versions-plugin.version>2.7</maven-versions-plugin.version>
57+
<maven-license-plugin.version>1.20</maven-license-plugin.version>
58+
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
59+
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
60+
<maven-shade-plugin.version>3.2.1</maven-shade-plugin.version>
5161
<maven.compiler.source>8</maven.compiler.source>
5262
<maven.compiler.target>8</maven.compiler.target>
5363
<guava.version>28.2-jre</guava.version>
@@ -76,7 +86,46 @@
7686
<groupId>org.projectlombok</groupId>
7787
<artifactId>lombok</artifactId>
7888
<version>1.18.2</version>
79-
<scope>provided</scope>
89+
</dependency>
90+
<dependency>
91+
<groupId>org.springframework.boot</groupId>
92+
<artifactId>spring-boot-starter</artifactId>
93+
<version>2.4.5</version>
94+
</dependency>
95+
<dependency>
96+
<groupId>org.springframework.boot</groupId>
97+
<artifactId>spring-boot-configuration-processor</artifactId>
98+
<version>2.4.5</version>
99+
</dependency>
100+
<dependency>
101+
<groupId>org.springframework.boot</groupId>
102+
<artifactId>spring-boot</artifactId>
103+
<version>2.4.5</version>
104+
</dependency>
105+
<dependency>
106+
<groupId>org.springframework.boot</groupId>
107+
<artifactId>spring-boot-autoconfigure</artifactId>
108+
<version>2.4.5</version>
109+
</dependency>
110+
<dependency>
111+
<groupId>org.springframework</groupId>
112+
<artifactId>spring-context</artifactId>
113+
<version>5.3.6</version>
114+
</dependency>
115+
<dependency>
116+
<groupId>org.slf4j</groupId>
117+
<artifactId>slf4j-api</artifactId>
118+
<version>1.7.30</version>
119+
</dependency>
120+
<dependency>
121+
<groupId>org.springframework.boot</groupId>
122+
<artifactId>spring-boot-starter-test</artifactId>
123+
<version>2.4.5</version>
124+
</dependency>
125+
<dependency>
126+
<groupId>junit</groupId>
127+
<artifactId>junit</artifactId>
128+
<version>4.13.2</version>
80129
</dependency>
81130
</dependencies>
82131
</dependencyManagement>
@@ -89,10 +138,15 @@
89138
</activation>
90139
<build>
91140
<plugins>
141+
<plugin>
142+
<groupId>org.apache.maven.plugins</groupId>
143+
<artifactId>maven-deploy-plugin</artifactId>
144+
<version>${maven-deploy-plugin.version}</version>
145+
</plugin>
92146
<plugin>
93147
<groupId>org.apache.maven.plugins</groupId>
94148
<artifactId>maven-source-plugin</artifactId>
95-
<version>2.2.1</version>
149+
<version>${maven-source-plugin.version}</version>
96150
<executions>
97151
<execution>
98152
<phase>package</phase>
@@ -105,7 +159,7 @@
105159
<plugin>
106160
<groupId>org.apache.maven.plugins</groupId>
107161
<artifactId>maven-javadoc-plugin</artifactId>
108-
<version>2.9.1</version>
162+
<version>${maven-javadoc-plugin.version}</version>
109163
<executions>
110164
<execution>
111165
<phase>package</phase>
@@ -118,7 +172,7 @@
118172
<plugin>
119173
<groupId>org.apache.maven.plugins</groupId>
120174
<artifactId>maven-gpg-plugin</artifactId>
121-
<version>1.6</version>
175+
<version>${maven-gpg-plugin.version}</version>
122176
<executions>
123177
<execution>
124178
<phase>verify</phase>
@@ -128,17 +182,38 @@
128182
</execution>
129183
</executions>
130184
</plugin>
185+
<!-- <plugin>-->
186+
<!-- <groupId>org.sonatype.plugins</groupId>-->
187+
<!-- <artifactId>nexus-staging-maven-plugin</artifactId>-->
188+
<!-- <version>1.6.7</version>-->
189+
<!-- <extensions>true</extensions>-->
190+
<!-- <configuration>-->
191+
<!-- <serverId>ossrh</serverId>-->
192+
<!-- <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>-->
193+
<!-- <autoReleaseAfterClose>true</autoReleaseAfterClose>-->
194+
<!-- </configuration>-->
195+
<!-- </plugin>-->
131196
<plugin>
132-
<groupId>org.sonatype.plugins</groupId>
133-
<artifactId>nexus-staging-maven-plugin</artifactId>
134-
<version>1.6.7</version>
135-
<extensions>true</extensions>
197+
<groupId>org.apache.maven.plugins</groupId>
198+
<artifactId>maven-compiler-plugin</artifactId>
199+
<version>${maven-compiler-plugin.version}</version>
136200
<configuration>
137-
<serverId>ossrh</serverId>
138-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
139-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
201+
<source>${jdk.version}</source>
202+
<target>${jdk.version}</target>
203+
<encoding>${project.build.sourceEncoding}</encoding>
204+
<compilerArgument>-parameters</compilerArgument>
140205
</configuration>
141206
</plugin>
207+
<plugin>
208+
<groupId>org.apache.maven.plugins</groupId>
209+
<artifactId>maven-resources-plugin</artifactId>
210+
<version>${maven-resources-plugin.version}</version>
211+
</plugin>
212+
<plugin>
213+
<groupId>org.apache.maven.plugins</groupId>
214+
<artifactId>maven-dependency-plugin</artifactId>
215+
<version>${maven-dependency-plugin.version}</version>
216+
</plugin>
142217
</plugins>
143218
</build>
144219
<distributionManagement>
@@ -153,23 +228,5 @@
153228
</distributionManagement>
154229
</profile>
155230
</profiles>
156-
157-
<pluginRepositories>
158-
<pluginRepository>
159-
<id>spring-snapshots</id>
160-
<name>Spring Snapshots</name>
161-
<url>https://repo.spring.io/libs-snapshot-local</url>
162-
<snapshots>
163-
<enabled>true</enabled>
164-
</snapshots>
165-
</pluginRepository>
166-
<pluginRepository>
167-
<id>spring-milestones</id>
168-
<name>Spring Milestones</name>
169-
<url>https://repo.spring.io/libs-milestone-local</url>
170-
<snapshots>
171-
<enabled>false</enabled>
172-
</snapshots>
173-
</pluginRepository>
174-
</pluginRepositories>
231+
175232
</project>

0 commit comments

Comments
 (0)