Bläddra i källkod

maven依赖版本号统一规范;

xuxueli 8 år sedan
förälder
incheckning
636da6153a
5 ändrade filer med 67 tillägg och 53 borttagningar
  1. 31 0
      pom.xml
  2. 22 25
      xxl-job-admin/pom.xml
  3. 9 13
      xxl-job-core/pom.xml
  4. 1 7
      xxl-job-executor-example/pom.xml
  5. 4 8
      xxl-job-executor-springboot-example/pom.xml

+ 31 - 0
pom.xml Visa fil

@@ -17,6 +17,37 @@
17 17
         <module>xxl-job-executor-springboot-example</module>
18 18
     </modules>
19 19
 
20
+	<properties>
21
+		<javax.servlet-api.version>3.0.1</javax.servlet-api.version>
22
+		<jsp-api.version>2.2</jsp-api.version>
23
+
24
+		<spring.version>3.2.18.RELEASE</spring.version>
25
+		<jackson-mapper-asl.version>1.9.13</jackson-mapper-asl.version>
26
+		<aspectjweaver.version>1.8.7</aspectjweaver.version>
27
+		<slf4j-api.version>1.7.25</slf4j-api.version>
28
+		<freemarker.version>2.3.20</freemarker.version>
29
+		<junit.version>4.11</junit.version>
30
+
31
+		<jetty-server.version>9.2.22.v20170606</jetty-server.version>
32
+		<hessian.version>4.0.38</hessian.version>
33
+		<httpclient.version>4.3.6</httpclient.version>
34
+
35
+		<commons-exec.version>1.3</commons-exec.version>
36
+		<commons-beanutils.version>1.9.2</commons-beanutils.version>
37
+		<commons-lang.version>2.6</commons-lang.version>
38
+
39
+		<c3p0.version>0.9.5.2</c3p0.version>
40
+		<mysql-connector-java.version>5.1.29</mysql-connector-java.version>
41
+		<mybatis-spring.version>1.2.2</mybatis-spring.version>
42
+		<mybatis.version>3.2.8</mybatis.version>
43
+
44
+		<groovy-all.version>2.4.5</groovy-all.version>
45
+		<mail.version>1.4.6</mail.version>
46
+		<quartz.version>2.3.0</quartz.version>
47
+
48
+		<spring-boot.version>1.5.6.RELEASE</spring-boot.version>
49
+	</properties>
50
+
20 51
 	<build>
21 52
 		<plugins>
22 53
 			<plugin>

+ 22 - 25
xxl-job-admin/pom.xml Visa fil

@@ -9,10 +9,6 @@
9 9
 	<artifactId>xxl-job-admin</artifactId>
10 10
 	<packaging>war</packaging>
11 11
 
12
-	<properties>
13
-		<spring.version>3.2.18.RELEASE</spring.version>
14
-	</properties>
15
-
16 12
 	<dependencies>
17 13
 		<!-- springframe start -->
18 14
 		<dependency>
@@ -40,59 +36,59 @@
40 36
 		<dependency>
41 37
 			<groupId>org.aspectj</groupId>
42 38
 			<artifactId>aspectjweaver</artifactId>
43
-			<version>1.8.7</version>
39
+			<version>${aspectjweaver.version}</version>
44 40
 		</dependency>
45 41
 		<!-- jackson (support spring json) -->
46 42
 		<dependency>
47 43
 			<groupId>org.codehaus.jackson</groupId>
48 44
 			<artifactId>jackson-mapper-asl</artifactId>
49
-			<version>1.9.13</version>
45
+			<version>${jackson-mapper-asl.version}</version>
50 46
 		</dependency>
51 47
 
52 48
 		<!-- slf4j -->
53 49
 		<dependency>
54 50
 			<groupId>org.slf4j</groupId>
55 51
 			<artifactId>slf4j-log4j12</artifactId>
56
-			<version>1.7.25</version>
52
+			<version>${slf4j-api.version}</version>
57 53
 		</dependency>
58 54
 
59 55
 		<!-- freemarker -->
60 56
 		<dependency>
61 57
 			<groupId>org.freemarker</groupId>
62 58
 			<artifactId>freemarker</artifactId>
63
-			<version>2.3.20</version>
59
+			<version>${freemarker.version}</version>
64 60
 		</dependency>
65 61
 
66 62
 		<!-- commons-beanutils -->
67 63
 		<dependency>
68 64
 			<groupId>commons-beanutils</groupId>
69 65
 			<artifactId>commons-beanutils</artifactId>
70
-			<version>1.9.2</version>
66
+			<version>${commons-beanutils.version}</version>
71 67
 		</dependency>
72 68
 		<!-- commons-lang -->
73 69
 		<dependency>
74 70
 			<groupId>commons-lang</groupId>
75 71
 			<artifactId>commons-lang</artifactId>
76
-			<version>2.6</version>
72
+			<version>${commons-lang.version}</version>
77 73
 		</dependency>
78 74
 
79 75
 		<!-- servlet -->
80 76
 		<dependency>
81 77
 			<groupId>javax.servlet</groupId>
82 78
 			<artifactId>javax.servlet-api</artifactId>
83
-			<version>3.0.1</version>
79
+			<version>${javax.servlet-api.version}</version>
84 80
 		</dependency>
85 81
 		<dependency>
86 82
 			<groupId>javax.servlet.jsp</groupId>
87 83
 			<artifactId>jsp-api</artifactId>
88
-			<version>2.2</version>
84
+			<version>${jsp-api.version}</version>
89 85
 		</dependency>
90 86
 
91 87
 		<!-- junit -->
92 88
 		<dependency>
93 89
 			<groupId>junit</groupId>
94 90
 			<artifactId>junit</artifactId>
95
-			<version>4.11</version>
91
+			<version>${junit.version}</version>
96 92
 			<scope>test</scope>
97 93
 		</dependency>
98 94
 
@@ -100,45 +96,46 @@
100 96
 		<dependency>
101 97
 			<groupId>com.mchange</groupId>
102 98
 			<artifactId>c3p0</artifactId>
103
-			<version>0.9.5.2</version>
99
+			<version>${c3p0.version}</version>
100
+		</dependency>
101
+		<!-- mysql-connector -->
102
+		<dependency>
103
+			<groupId>mysql</groupId>
104
+			<artifactId>mysql-connector-java</artifactId>
105
+			<version>${mysql-connector-java.version}</version>
104 106
 		</dependency>
105 107
 		<!-- mybatis-spring -->
106 108
 		<dependency>
107 109
 			<groupId>org.mybatis</groupId>
108 110
 			<artifactId>mybatis-spring</artifactId>
109
-			<version>1.2.2</version>
111
+			<version>${mybatis-spring.version}</version>
110 112
 		</dependency>
111 113
 		<dependency>
112 114
 			<groupId>org.mybatis</groupId>
113 115
 			<artifactId>mybatis</artifactId>
114
-			<version>3.2.8</version>
115
-		</dependency>
116
-		<!-- mysql-connector -->
117
-		<dependency>
118
-			<groupId>mysql</groupId>
119
-			<artifactId>mysql-connector-java</artifactId>
120
-			<version>5.1.29</version>
116
+			<version>${mybatis.version}</version>
121 117
 		</dependency>
122 118
 
119
+
123 120
 		<!-- httpclient -->
124 121
 		<dependency>
125 122
 			<groupId>org.apache.httpcomponents</groupId>
126 123
 			<artifactId>httpclient</artifactId>
127
-			<version>4.3.6</version>
124
+			<version>${httpclient.version}</version>
128 125
 		</dependency>
129 126
 
130 127
 		<!-- javax.mail -->
131 128
 		<dependency>
132 129
 			<groupId>javax.mail</groupId>
133 130
 			<artifactId>mail</artifactId>
134
-			<version>1.4.6</version>
131
+			<version>${mail.version}</version>
135 132
 		</dependency>
136 133
 
137 134
 		<!-- quartz :quartz-2.2.3/c3p0-0.9.1.1/slf4j-api-1.6.6 -->
138 135
 		<dependency>
139 136
 			<groupId>org.quartz-scheduler</groupId>
140 137
 			<artifactId>quartz</artifactId>
141
-			<version>2.3.0</version>
138
+			<version>${quartz.version}</version>
142 139
 		</dependency>
143 140
 
144 141
 		<!-- xxl-job-core -->

+ 9 - 13
xxl-job-core/pom.xml Visa fil

@@ -13,56 +13,52 @@
13 13
 	<description>A lightweight distributed task scheduling framework.</description>
14 14
 	<url>http://www.xuxueli.com/</url>
15 15
 
16
-	<properties>
17
-		<spring.version>3.2.18.RELEASE</spring.version>
18
-	</properties>
19
-
20 16
 	<dependencies>
21 17
 		<!-- servlet -->
22 18
 		<dependency>
23 19
 			<groupId>javax.servlet</groupId>
24 20
 			<artifactId>javax.servlet-api</artifactId>
25
-			<version>3.0.1</version>
21
+			<version>${javax.servlet-api.version}</version>
26 22
 		</dependency>
27 23
 		<dependency>
28 24
 			<groupId>javax.servlet.jsp</groupId>
29 25
 			<artifactId>jsp-api</artifactId>
30
-			<version>2.2</version>
26
+			<version>${jsp-api.version}</version>
31 27
 		</dependency>
32 28
 
33 29
 		<!-- jetty -->
34 30
 		<dependency>
35 31
 			<groupId>org.eclipse.jetty</groupId>
36 32
 			<artifactId>jetty-server</artifactId>
37
-			<version>9.2.22.v20170606</version>
33
+			<version>${jetty-server.version}</version>
38 34
 		</dependency>
39 35
 
40 36
 		<!-- slf4j -->
41 37
 		<dependency>
42 38
 			<groupId>org.slf4j</groupId>
43 39
 			<artifactId>slf4j-api</artifactId>
44
-			<version>1.7.25</version>
40
+			<version>${slf4j-api.version}</version>
45 41
 		</dependency>
46 42
 
47 43
 		<!-- hessian -->
48 44
 		<dependency>
49 45
 			<groupId>com.caucho</groupId>
50 46
 			<artifactId>hessian</artifactId>
51
-			<version>4.0.38</version>
47
+			<version>${hessian.version}</version>
52 48
 		</dependency>
53 49
 
54 50
 		<!-- jackson -->
55 51
 		<dependency>
56 52
 			<groupId>org.codehaus.jackson</groupId>
57 53
 			<artifactId>jackson-mapper-asl</artifactId>
58
-			<version>1.9.13</version>
54
+			<version>${jackson-mapper-asl.version}</version>
59 55
 		</dependency>
60 56
 		
61 57
 		<!-- httpclient -->
62 58
 		<dependency>
63 59
 			<groupId>org.apache.httpcomponents</groupId>
64 60
 			<artifactId>httpclient</artifactId>
65
-			<version>4.3.6</version>
61
+			<version>${httpclient.version}</version>
66 62
 		</dependency>
67 63
 		
68 64
 		<!-- spring-context -->
@@ -76,14 +72,14 @@
76 72
 		<dependency>
77 73
 			<groupId>org.codehaus.groovy</groupId>
78 74
 			<artifactId>groovy-all</artifactId>
79
-			<version>2.4.5</version>
75
+			<version>${groovy-all.version}</version>
80 76
 		</dependency>
81 77
 
82 78
 		<!-- commons-exec -->
83 79
 		<dependency>
84 80
 			<groupId>org.apache.commons</groupId>
85 81
 			<artifactId>commons-exec</artifactId>
86
-			<version>1.3</version>
82
+			<version>${commons-exec.version}</version>
87 83
 		</dependency>
88 84
 
89 85
 	</dependencies>

+ 1 - 7
xxl-job-executor-example/pom.xml Visa fil

@@ -13,12 +13,7 @@
13 13
 	<description>Executor project for spring boot.</description>
14 14
 	<url>http://www.xuxueli.com/</url>
15 15
 
16
-	<properties>
17
-		<spring.version>3.2.18.RELEASE</spring.version>
18
-	</properties>
19
-
20 16
 	<dependencies>
21
-
22 17
 		<!-- spring-webmvc -->
23 18
 		<dependency>
24 19
 			<groupId>org.springframework</groupId>
@@ -30,7 +25,7 @@
30 25
 		<dependency>
31 26
 			<groupId>org.slf4j</groupId>
32 27
 			<artifactId>slf4j-log4j12</artifactId>
33
-			<version>1.7.25</version>
28
+			<version>${slf4j-api.version}</version>
34 29
 		</dependency>
35 30
 		
36 31
 		<!-- xxl-job-core -->
@@ -39,7 +34,6 @@
39 34
 			<artifactId>xxl-job-core</artifactId>
40 35
 			<version>${project.parent.version}</version>
41 36
 		</dependency>
42
-		
43 37
 	</dependencies>
44 38
 
45 39
 </project>

+ 4 - 8
xxl-job-executor-springboot-example/pom.xml Visa fil

@@ -16,13 +16,9 @@
16 16
     <url>http://www.xuxueli.com/</url>
17 17
 
18 18
     <properties>
19
-        <spring-boot.version>1.5.6.RELEASE</spring-boot.version>
20
-
21 19
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22 20
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
23 21
         <java.version>1.7</java.version>
24
-
25
-        <jetty.version>9.2.22.v20170606</jetty.version>
26 22
     </properties>
27 23
 
28 24
     <dependencyManagement>
@@ -40,22 +36,22 @@
40 36
             <dependency>
41 37
                 <groupId>org.eclipse.jetty</groupId>
42 38
                 <artifactId>jetty-server</artifactId>
43
-                <version>${jetty.version}</version>
39
+                <version>${jetty-server.version}</version>
44 40
             </dependency>
45 41
             <dependency>
46 42
                 <groupId>org.eclipse.jetty</groupId>
47 43
                 <artifactId>jetty-util</artifactId>
48
-                <version>${jetty.version}</version>
44
+                <version>${jetty-server.version}</version>
49 45
             </dependency>
50 46
             <dependency>
51 47
                 <groupId>org.eclipse.jetty</groupId>
52 48
                 <artifactId>jetty-http</artifactId>
53
-                <version>${jetty.version}</version>
49
+                <version>${jetty-server.version}</version>
54 50
             </dependency>
55 51
             <dependency>
56 52
                 <groupId>org.eclipse.jetty</groupId>
57 53
                 <artifactId>jetty-io</artifactId>
58
-                <version>${jetty.version}</version>
54
+                <version>${jetty-server.version}</version>
59 55
             </dependency>
60 56
 
61 57
         </dependencies>