mirror of
https://github.com/wahyd4/Martian.git
synced 2026-08-25 05:26:00 +10:00
remove start to other project
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
<?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>mars-start</artifactId>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<version>2.1.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>mars-start-base</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-jdbc-base</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-mvc</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-junit</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-timer</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -1,139 +0,0 @@
|
||||
package com.mars.start.base;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.mars.core.after.StartAfter;
|
||||
import com.mars.core.constant.MarsConstant;
|
||||
import com.mars.core.constant.MarsSpace;
|
||||
import com.mars.core.load.LoadClass;
|
||||
import com.mars.core.logger.MarsLogger;
|
||||
import com.mars.core.util.ConfigUtil;
|
||||
import com.mars.junit.StartList;
|
||||
import com.mars.mvc.load.LoadInters;
|
||||
import com.mars.netty.server.MarsServer;
|
||||
import com.mars.ioc.load.LoadEasyBean;
|
||||
import com.mars.jdbc.base.BaseInitJdbc;
|
||||
import com.mars.mvc.load.LoadController;
|
||||
import com.mars.mvc.servlet.MarsCoreServlet;
|
||||
import com.mars.timer.execute.ExecuteMarsTimer;
|
||||
import com.mars.timer.load.LoadMarsTimer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @author yuye
|
||||
*
|
||||
*/
|
||||
public class BaseStartMars {
|
||||
|
||||
private static MarsLogger log = MarsLogger.getLogger(BaseStartMars.class);
|
||||
|
||||
/**
|
||||
* 获取全局存储空间
|
||||
*/
|
||||
private static MarsSpace constants = MarsSpace.getEasySpace();
|
||||
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @param clazz
|
||||
*/
|
||||
public static void start(Class<?> clazz, BaseInitJdbc baseInitJdbc, String suffix, List<StartList> startList) {
|
||||
try {
|
||||
|
||||
log.info("程序启动中......");
|
||||
|
||||
/* 加载框架数据 */
|
||||
load(clazz,baseInitJdbc,suffix);
|
||||
|
||||
/* 扩展要加载的东西 */
|
||||
if(startList != null){
|
||||
for(StartList item : startList){
|
||||
item.load();
|
||||
}
|
||||
}
|
||||
|
||||
/* 启动after方法 */
|
||||
StartAfter.after();
|
||||
|
||||
/* 执行定时任务 */
|
||||
ExecuteMarsTimer.execute();
|
||||
|
||||
/* 启动netty */
|
||||
MarsServer.start(getPort());
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("",e);
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 加载所需的资源
|
||||
*/
|
||||
private static void load(Class<?> clazz, BaseInitJdbc baseInitJdbc,String suffix) throws Exception{
|
||||
|
||||
/* 配置核心servlet */
|
||||
constants.setAttr("core", MarsCoreServlet.class.getName());
|
||||
|
||||
/* 加载配置文件 */
|
||||
ConfigUtil.loadConfig(suffix);
|
||||
|
||||
/*获取要扫描的包*/
|
||||
String className = getClassName(clazz);
|
||||
|
||||
/* 将要扫描的包名存到全局存储空间,给别的需要的地方使用 */
|
||||
constants.setAttr("rootPath", className);
|
||||
|
||||
/* 获取此包下面的所有类(包括jar中的) */
|
||||
LoadClass.loadBeans(className);
|
||||
|
||||
/* 加载JDBC模块 */
|
||||
if(baseInitJdbc != null){
|
||||
baseInitJdbc.init();
|
||||
}
|
||||
|
||||
/* 创建bean对象 */
|
||||
LoadEasyBean.loadBean();
|
||||
|
||||
/* 创建controller对象 */
|
||||
LoadController.loadContrl();
|
||||
|
||||
/* 创建interceptor对象 */
|
||||
LoadInters.loadIntersList();
|
||||
|
||||
/* 标识createBean方法已经调用完毕 */
|
||||
constants.setAttr(MarsConstant.HAS_START,"yes");
|
||||
|
||||
/* 加载timer对象 */
|
||||
LoadMarsTimer.loadMarsTimers();
|
||||
}
|
||||
|
||||
/**
|
||||
* 截取main方法所在包名
|
||||
* @param clazz
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
private static String getClassName(Class clazz) throws Exception {
|
||||
String className = clazz.getName();
|
||||
if(className.indexOf(".") < 0){
|
||||
throw new Exception("启动服务的main方法所在的类,必须放在两层包名中,比如[com.mars,com.test]等,不允许放在[com,cn]等包中,更不允许放在包外面");
|
||||
}
|
||||
return className.substring(0,className.lastIndexOf("."));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取端口号,默认8080
|
||||
* @return
|
||||
*/
|
||||
private static int getPort() {
|
||||
|
||||
JSONObject jsonObject = ConfigUtil.getConfig();
|
||||
Object por = jsonObject.get("port");
|
||||
if(por!=null) {
|
||||
return Integer.parseInt(por.toString());
|
||||
}
|
||||
|
||||
return 8080;
|
||||
}
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
#此配置文件只是个demo,对开发没什么卵用
|
||||
|
||||
#配置端口号(默认8080)
|
||||
port: 8088
|
||||
#配置jwt有效期(默认1),单位:秒
|
||||
jwtTime: 20
|
||||
#请求超时时间(默认10,2000000000),单位:秒
|
||||
timeOut:
|
||||
readTimeOut: 10
|
||||
writeTimeOut: 2000000000
|
||||
#请求数据的最大值(默认10485760)
|
||||
maxContentLength: 10
|
||||
#配置跨域请求
|
||||
cross_domain:
|
||||
origin: "*"
|
||||
methods: "GET,POST"
|
||||
maxAge: 9
|
||||
headers: "x-requested-with,Cache-Control,Pragma,Content-Type,Token"
|
||||
credentials: "true"
|
||||
|
||||
#配置持久层
|
||||
jdbc:
|
||||
#配置数据源,必须是数组,必须是阿里巴巴的 druid数据源
|
||||
dataSource:
|
||||
- #左边这条斜杠千万不能省略,缩进也必须有; 下面的属性请参照druid数据源
|
||||
name: dataSource
|
||||
url: jdbc:mysql://10.211.55.5:3306/test?serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: rootroot
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
|
||||
#配置mybatis方言
|
||||
dialect: mysql
|
||||
#配置要扫描的mapper.xml 文件存放路径
|
||||
mappers: mappers
|
||||
|
||||
#mybatis配置文件路径,必须在classpath目录下
|
||||
#这个属性不建议配置,除非你有自己需要对mybatis配置的东西,否则不要配这个属性
|
||||
config-location: mybatis.xml
|
||||
|
||||
#log4j2 配置文件的路径
|
||||
#相对路径必须以classPath- 开头,区分大小写,并且文件必须直接或者间接在classpath目录下
|
||||
#不可以有多余的空格
|
||||
#绝对路径直接写即可,不需要classPath开头
|
||||
logFile: classPath-log4j2.xml
|
||||
|
||||
|
||||
#以下配置 必须在导入Mars-extends 中的相应的jar包后 才生效
|
||||
|
||||
#redis配置
|
||||
redis:
|
||||
maxTotal: 1000
|
||||
maxIdle: 100
|
||||
numTestsPerEvictionRun: 10
|
||||
timeBetweenEvictionRunsMillis: 10
|
||||
minEvictableIdleTimeMillis: 10
|
||||
softMinEvictableIdleTimeMillis: 10
|
||||
maxWaitMillis: 10
|
||||
testOnBorrow: false
|
||||
testWhileIdle: false
|
||||
testOnReturn: false
|
||||
jmxEnabled: false
|
||||
jmxNamePrefix: pool
|
||||
blockWhenExhausted: false
|
||||
# redis连接,必须是数组 因为可能需要连多个redis
|
||||
jedisShardInfos:
|
||||
-
|
||||
name: master
|
||||
host: 10.211.55.5
|
||||
port: 6379
|
||||
password: 123456
|
||||
# 这两个可以不配置
|
||||
connectionTimeout: 1000
|
||||
soTimeout: 1000
|
||||
|
||||
#邮件配置 只支持smtp
|
||||
mail:
|
||||
host: smtp.sina.com
|
||||
port: 465
|
||||
smtpSslEnable: true
|
||||
debug: false
|
||||
# 发件箱
|
||||
sendMail: 发件箱
|
||||
sendMailPwd: 发件箱密码
|
||||
auth: true
|
||||
@@ -1,12 +0,0 @@
|
||||
#此配置文件只是个demo,对开发没什么卵用
|
||||
|
||||
#配置端口号(默认8080)
|
||||
port: 8088
|
||||
|
||||
#Mars-config 远程配置中心
|
||||
config:
|
||||
# 需要读取的配置文件名称,在整个分布式集群中必须唯一
|
||||
name: user1
|
||||
# Mars-config 服务的URL
|
||||
# 必须是 本示例中的各式
|
||||
url: http://127.0.0.1:8090
|
||||
@@ -1,26 +0,0 @@
|
||||
<?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>mars-start</artifactId>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<version>2.1.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>mars-start-mj</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-start-base</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-mj</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -1,30 +0,0 @@
|
||||
package com.mars.junit;
|
||||
|
||||
import com.mars.mj.init.InitJdbc;
|
||||
|
||||
/**
|
||||
* junit
|
||||
*/
|
||||
public abstract class MarsJunit {
|
||||
|
||||
/**
|
||||
* 加载项目启动的必要数据
|
||||
* @param packName
|
||||
*/
|
||||
public void init(String packName,String suffix){
|
||||
MarsJunitStart.start(new InitJdbc(),packName,this,null,suffix);
|
||||
}
|
||||
|
||||
/**
|
||||
* 加载项目启动的必要数据
|
||||
* @param packName
|
||||
*/
|
||||
public void init(String packName){
|
||||
init(packName,null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 单测开始前
|
||||
*/
|
||||
public abstract void before();
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package com.mars.start;
|
||||
|
||||
import com.mars.mj.init.InitJdbc;
|
||||
import com.mars.start.base.BaseStartMars;
|
||||
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @author yuye
|
||||
*
|
||||
*/
|
||||
public class StartMars {
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @param clazz
|
||||
*/
|
||||
public static void start(Class<?> clazz,String[] args){
|
||||
if(args != null && args[0] != null){
|
||||
BaseStartMars.start(clazz,new InitJdbc(),args[0],null);
|
||||
} else {
|
||||
BaseStartMars.start(clazz,new InitJdbc(),null,null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @param clazz
|
||||
*/
|
||||
public static void start(Class<?> clazz){
|
||||
start(clazz,null);
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
<?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>mars-start</artifactId>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<version>2.1.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>mars-start-mybatis</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-start-base</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-mybatis</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -1,32 +0,0 @@
|
||||
package com.mars.junit;
|
||||
|
||||
import com.mars.mybatis.init.InitJdbc;
|
||||
import org.junit.Before;
|
||||
|
||||
/**
|
||||
* junit
|
||||
*/
|
||||
public abstract class MarsJunit {
|
||||
|
||||
/**
|
||||
* 加载项目启动的必要数据
|
||||
* @param packName
|
||||
*/
|
||||
public void init(String packName,String suffix){
|
||||
MarsJunitStart.start(new InitJdbc(),packName,this,null,suffix);
|
||||
}
|
||||
|
||||
/**
|
||||
* 加载项目启动的必要数据
|
||||
* @param packName
|
||||
*/
|
||||
public void init(String packName){
|
||||
init(packName,null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 单测开始前
|
||||
*/
|
||||
@Before
|
||||
public abstract void before();
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package com.mars.start;
|
||||
|
||||
import com.mars.mybatis.init.InitJdbc;
|
||||
import com.mars.start.base.BaseStartMars;
|
||||
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @author yuye
|
||||
*
|
||||
*/
|
||||
public class StartMars {
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @param clazz
|
||||
*/
|
||||
public static void start(Class<?> clazz,String[] args) {
|
||||
if(args != null && args[0] != null){
|
||||
BaseStartMars.start(clazz,new InitJdbc(),args[0],null);
|
||||
} else {
|
||||
BaseStartMars.start(clazz,new InitJdbc(),null,null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @param clazz
|
||||
*/
|
||||
public static void start(Class<?> clazz) {
|
||||
start(clazz,null);
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
<?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>mars-start</artifactId>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<version>2.1.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>mars-start-simple</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-start-base</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -1,28 +0,0 @@
|
||||
package com.mars.junit;
|
||||
|
||||
/**
|
||||
* junit
|
||||
*/
|
||||
public abstract class MarsJunit {
|
||||
|
||||
/**
|
||||
* 加载项目启动的必要数据
|
||||
* @param packName
|
||||
*/
|
||||
public void init(String packName,String suffix){
|
||||
MarsJunitStart.start(null,packName,this,null,suffix);
|
||||
}
|
||||
|
||||
/**
|
||||
* 加载项目启动的必要数据
|
||||
* @param packName
|
||||
*/
|
||||
public void init(String packName){
|
||||
init(packName,null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 单测开始前
|
||||
*/
|
||||
public abstract void before();
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
package com.mars.start;
|
||||
|
||||
import com.mars.start.base.BaseStartMars;
|
||||
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @author yuye
|
||||
*
|
||||
*/
|
||||
public class StartMars {
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @param clazz
|
||||
*/
|
||||
public static void start(Class<?> clazz,String[] args) {
|
||||
if(args != null && args[0] != null){
|
||||
BaseStartMars.start(clazz,null,args[0],null);
|
||||
} else {
|
||||
BaseStartMars.start(clazz,null,null,null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动Mars框架
|
||||
* @param clazz
|
||||
*/
|
||||
public static void start(Class<?> clazz) {
|
||||
start(clazz,null);
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -1,33 +0,0 @@
|
||||
<?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>Mars-java</artifactId>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<version>2.1.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>mars-start-mybatis</module>
|
||||
<module>mars-start-simple</module>
|
||||
<module>mars-start-mj</module>
|
||||
<module>mars-start-base</module>
|
||||
</modules>
|
||||
<artifactId>mars-start</artifactId>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@@ -1,190 +1,189 @@
|
||||
<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>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>Mars-java</artifactId>
|
||||
<version>2.1.5</version>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>mars-aop</module>
|
||||
<module>mars-ioc</module>
|
||||
<module>mars-core</module>
|
||||
<module>mars-mvc</module>
|
||||
<module>mars-netty</module>
|
||||
<module>mars-server</module>
|
||||
<module>mars-start</module>
|
||||
<module>mars-jdbc</module>
|
||||
<module>mars-junit</module>
|
||||
<module>mars-timer</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-aop</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-ioc</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-mvc</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-core</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-netty</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-server</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-junit</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-timer</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.netty</groupId>
|
||||
<artifactId>netty-all</artifactId>
|
||||
<version>4.1.38.Final</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.47</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>1.7.25</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-jdk14</artifactId>
|
||||
<version>1.7.25</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-api</artifactId>
|
||||
<version>2.11.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
<version>2.11.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>5.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cglib</groupId>
|
||||
<artifactId>cglib</artifactId>
|
||||
<version>3.2.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.11</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
<version>3.4.6</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid</artifactId>
|
||||
<version>1.1.10</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.pagehelper</groupId>
|
||||
<artifactId>pagehelper</artifactId>
|
||||
<version>4.1.3</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.auth0</groupId>
|
||||
<artifactId>java-jwt</artifactId>
|
||||
<version>3.4.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.yaml</groupId>
|
||||
<artifactId>snakeyaml</artifactId>
|
||||
<version>1.24</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<version>3.14.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.12</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<parent>
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
<version>7</version>
|
||||
</parent>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The GPL Software License, Version 3.0</name>
|
||||
<url>http://www.gnu.org/licenses/gpl-3.0.html</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<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>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>Mars-java</artifactId>
|
||||
<version>2.1.5</version>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>mars-aop</module>
|
||||
<module>mars-ioc</module>
|
||||
<module>mars-core</module>
|
||||
<module>mars-mvc</module>
|
||||
<module>mars-netty</module>
|
||||
<module>mars-server</module>
|
||||
<module>mars-jdbc</module>
|
||||
<module>mars-junit</module>
|
||||
<module>mars-timer</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-aop</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-ioc</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-mvc</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-core</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-netty</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-server</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-junit</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.yuyenews</groupId>
|
||||
<artifactId>mars-timer</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.netty</groupId>
|
||||
<artifactId>netty-all</artifactId>
|
||||
<version>4.1.38.Final</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.47</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>1.7.25</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-jdk14</artifactId>
|
||||
<version>1.7.25</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-api</artifactId>
|
||||
<version>2.11.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
<version>2.11.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>5.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cglib</groupId>
|
||||
<artifactId>cglib</artifactId>
|
||||
<version>3.2.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.11</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
<version>3.4.6</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid</artifactId>
|
||||
<version>1.1.10</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.pagehelper</groupId>
|
||||
<artifactId>pagehelper</artifactId>
|
||||
<version>4.1.3</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.auth0</groupId>
|
||||
<artifactId>java-jwt</artifactId>
|
||||
<version>3.4.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.yaml</groupId>
|
||||
<artifactId>snakeyaml</artifactId>
|
||||
<version>1.24</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<version>3.14.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.12</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<parent>
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
<version>7</version>
|
||||
</parent>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The GPL Software License, Version 3.0</name>
|
||||
<url>http://www.gnu.org/licenses/gpl-3.0.html</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
Reference in New Issue
Block a user