|
@@ -1,117 +1,160 @@
|
|
|
<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">
|
|
|
- <modelVersion>4.0.0</modelVersion>
|
|
|
- <parent>
|
|
|
- <groupId>com.xuxueli</groupId>
|
|
|
- <artifactId>xxl-job</artifactId>
|
|
|
- <version>2.4.2-SNAPSHOT</version>
|
|
|
- </parent>
|
|
|
- <artifactId>xxl-job-admin</artifactId>
|
|
|
- <packaging>jar</packaging>
|
|
|
-
|
|
|
- <properties>
|
|
|
- <maven.deploy.skip>true</maven.deploy.skip>
|
|
|
- </properties>
|
|
|
-
|
|
|
- <dependencyManagement>
|
|
|
- <dependencies>
|
|
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
+ <parent>
|
|
|
+ <groupId>com.xuxueli</groupId>
|
|
|
+ <artifactId>xxl-job</artifactId>
|
|
|
+ <version>2.4.2-SNAPSHOT</version>
|
|
|
+ </parent>
|
|
|
+ <artifactId>xxl-job-admin</artifactId>
|
|
|
+ <packaging>jar</packaging>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <maven.deploy.skip>true</maven.deploy.skip>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <dependencyManagement>
|
|
|
+ <dependencies>
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
+ <artifactId>spring-boot-dependencies</artifactId>
|
|
|
<version>${spring-boot.version}</version>
|
|
|
<type>pom</type>
|
|
|
<scope>import</scope>
|
|
|
</dependency>
|
|
|
- </dependencies>
|
|
|
- </dependencyManagement>
|
|
|
|
|
|
- <dependencies>
|
|
|
+ <!--springCloud的依赖 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-dependencies</artifactId>
|
|
|
+ <version>${spring.cloud.version}</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
|
|
|
- <!-- starter-web:spring-webmvc + autoconfigure + logback + yaml + tomcat -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-web</artifactId>
|
|
|
- </dependency>
|
|
|
- <!-- starter-test:junit + spring-test + mockito -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-test</artifactId>
|
|
|
- <scope>test</scope>
|
|
|
- </dependency>
|
|
|
|
|
|
- <!-- freemarker-starter -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-freemarker</artifactId>
|
|
|
- </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
|
|
+ <version>${spring.cloud.alibaba.version}</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
|
|
|
- <!-- mail-starter -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-mail</artifactId>
|
|
|
- </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </dependencyManagement>
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+
|
|
|
+ <!-- starter-web:spring-webmvc + autoconfigure + logback + yaml + tomcat -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- starter-test:junit + spring-test + mockito -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
+ <scope>test</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- freemarker-starter -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-freemarker</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- mail-starter -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-mail</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- starter-actuator -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- mybatis-starter:mybatis + mybatis-spring + hikari(default) -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mybatis.spring.boot</groupId>
|
|
|
+ <artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
+ <version>${mybatis-spring-boot-starter.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- mysql -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-j</artifactId>
|
|
|
+ <version>${mysql-connector-j.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- xxl-job-core -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.xuxueli</groupId>
|
|
|
+ <artifactId>xxl-job-core</artifactId>
|
|
|
+ <version>${project.parent.version}</version>
|
|
|
+ </dependency>
|
|
|
|
|
|
- <!-- starter-actuator -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
- <!-- mybatis-starter:mybatis + mybatis-spring + hikari(default) -->
|
|
|
<dependency>
|
|
|
- <groupId>org.mybatis.spring.boot</groupId>
|
|
|
- <artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
- <version>${mybatis-spring-boot-starter.version}</version>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
|
</dependency>
|
|
|
- <!-- mysql -->
|
|
|
+
|
|
|
+ <!-- Registry 注册中心相关 -->
|
|
|
<dependency>
|
|
|
- <groupId>com.mysql</groupId>
|
|
|
- <artifactId>mysql-connector-j</artifactId>
|
|
|
- <version>${mysql-connector-j.version}</version>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
- <!-- xxl-job-core -->
|
|
|
+ <!-- Config 配置中心相关 -->
|
|
|
<dependency>
|
|
|
- <groupId>com.xuxueli</groupId>
|
|
|
- <artifactId>xxl-job-core</artifactId>
|
|
|
- <version>${project.parent.version}</version>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
- </dependencies>
|
|
|
+ </dependencies>
|
|
|
|
|
|
- <build>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
- <version>${spring-boot.version}</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <goals>
|
|
|
- <goal>repackage</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <!-- docker -->
|
|
|
- <plugin>
|
|
|
- <groupId>com.spotify</groupId>
|
|
|
- <artifactId>docker-maven-plugin</artifactId>
|
|
|
- <version>0.4.13</version>
|
|
|
- <configuration>
|
|
|
- <!-- made of '[a-z0-9-_.]' -->
|
|
|
- <imageName>${project.artifactId}:${project.version}</imageName>
|
|
|
- <dockerDirectory>${project.basedir}</dockerDirectory>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <targetPath>/</targetPath>
|
|
|
- <directory>${project.build.directory}</directory>
|
|
|
- <include>${project.build.finalName}.jar</include>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- docker -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.spotify</groupId>
|
|
|
+ <artifactId>docker-maven-plugin</artifactId>
|
|
|
+ <version>0.4.13</version>
|
|
|
+ <configuration>
|
|
|
+ <!-- made of '[a-z0-9-_.]' -->
|
|
|
+ <imageName>${project.artifactId}:${project.version}</imageName>
|
|
|
+ <dockerDirectory>${project.basedir}</dockerDirectory>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <targetPath>/</targetPath>
|
|
|
+ <directory>${project.build.directory}</directory>
|
|
|
+ <include>${project.build.finalName}.jar</include>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
|
|
|
</project>
|