远古框架-SSH maven配置 (包含gson)
Spring3.2.17+Struts2.3.15+Hibernate3.6.10
1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 5 <modelVersion>4.0.0</modelVersion> 6 7 <groupId>com.foxy</groupId> 8 <artifactId>MeetingManager</artifactId> 9 <version>1.0-SNAPSHOT</version> 10 11 12 <properties> 13 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 14 <maven.compiler.source>1.8</maven.compiler.source> 15 <maven.compiler.target>1.8</maven.compiler.target> 16 <!-- 统一各个框架版本 --> 17 <struts.version>2.3.15</struts.version> 18 <spring.version>3.2.17.RELEASE</spring.version> 19 <hibernate.version>3.6.10.Final</hibernate.version> 20 </properties> 21 22 <dependencies> 23 <dependency> 24 <groupId>junit</groupId> 25 <artifactId>junit</artifactId> 26 <version>3.8.1</version> 27 <scope>test</scope> 28 </dependency> 29 30 <!-- Spring 核心依赖 --> 31 <dependency> 32 <groupId>org.springframework</groupId> 33 <artifactId>spring-core</artifactId> 34 <version>${spring.version}</version> 35 </dependency> 36 <!-- Spring web依赖 --> 37 <dependency> 38 <groupId>org.springframework</groupId> 39 <artifactId>spring-web</artifactId> 40 <version>${spring.version}</version> 41 </dependency> 42 <!-- Spring整合ORM框架依赖 --> 43 <dependency> 44 <groupId>org.springframework</groupId> 45 <artifactId>spring-orm</artifactId> 46 <version>${spring.version}</version> 47 </dependency> 48 <!-- Struts2 核心依赖 --> 49 <dependency> 50 <groupId>org.apache.struts</groupId> 51 <artifactId>struts2-core</artifactId> 52 <version>${struts.version}</version> 53 </dependency> 54 <!-- Struts2和Spring整合依赖 --> 55 <dependency> 56 <groupId>org.apache.struts</groupId> 57 <artifactId>struts2-spring-plugin</artifactId> 58 <version>${struts.version}</version> 59 </dependency> 60 <!-- Hibernate 核心依赖 --> 61 <dependency> 62 <groupId>org.hibernate</groupId> 63 <artifactId>hibernate-core</artifactId> 64 <version>${hibernate.version}</version> 65 </dependency> 66 <!-- MySQL 依赖 --> 67 <dependency> 68 <groupId>mysql</groupId> 69 <artifactId>mysql-connector-java</artifactId> 70 <version>5.1.42</version> 71 </dependency> 72 <!-- C3P0 依赖 --> 73 <dependency> 74 <groupId>com.mchange</groupId> 75 <artifactId>c3p0</artifactId> 76 <version>0.9.5</version> 77 </dependency> 78 <!-- AspectJ依赖 --> 79 <dependency> 80 <groupId>org.aspectj</groupId> 81 <artifactId>aspectjweaver</artifactId> 82 <version>1.8.10</version> 83 </dependency> 84 <!-- SLF4J依赖 --> 85 <dependency> 86 <groupId>org.slf4j</groupId> 87 <artifactId>slf4j-log4j12</artifactId> 88 <version>1.7.25</version> 89 </dependency> 90 91 <dependency> 92 <groupId>commons-dbcp</groupId> 93 <artifactId>commons-dbcp</artifactId> 94 <version>1.4</version> 95 </dependency> 96 <dependency> 97 <groupId>commons-pool</groupId> 98 <artifactId>commons-pool</artifactId> 99 <version>1.6</version> 100 </dependency> 101 <dependency> 102 <groupId>org.apache.taglibs</groupId> 103 <artifactId>taglibs-standard-spec</artifactId> 104 <version>1.2.5</version> 105 </dependency> 106 <dependency> 107 <groupId>org.apache.taglibs</groupId> 108 <artifactId>taglibs-standard-impl</artifactId> 109 <version>1.2.5</version> 110 </dependency> 111 <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --> 112 <dependency> 113 <groupId>com.google.code.gson</groupId> 114 <artifactId>gson</artifactId> 115 <version>2.8.5</version> 116 </dependency> 117 <!-- https://mvnrepository.com/artifact/org.apache.struts/struts2-json-plugin --> 118 <dependency> 119 <groupId>org.apache.struts</groupId> 120 <artifactId>struts2-json-plugin</artifactId> 121 <version>2.3.15</version> 122 </dependency> 123 <dependency> 124 <groupId>mysql</groupId> 125 <artifactId>mysql-connector-java</artifactId> 126 <version>8.0.11</version> 127 </dependency> 128 <!-- https://mvnrepository.com/artifact/net.sf.json-lib/json-lib --> 129 <dependency> 130 <groupId>net.sf.json-lib</groupId> 131 <artifactId>json-lib</artifactId> 132 <version>2.3</version> 133 </dependency> 134 </dependencies> 135 136 137 <build> 138 <finalName>MrManager</finalName> 139 <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> 140 <plugins> 141 <plugin> 142 <artifactId>maven-clean-plugin</artifactId> 143 <version>3.1.0</version> 144 </plugin> 145 <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> 146 <plugin> 147 <artifactId>maven-resources-plugin</artifactId> 148 <version>3.0.2</version> 149 </plugin> 150 <plugin> 151 <artifactId>maven-compiler-plugin</artifactId> 152 <version>3.8.0</version> 153 </plugin> 154 <plugin> 155 <artifactId>maven-surefire-plugin</artifactId> 156 <version>2.22.1</version> 157 </plugin> 158 <plugin> 159 <artifactId>maven-war-plugin</artifactId> 160 <version>3.2.2</version> 161 </plugin> 162 <plugin> 163 <artifactId>maven-install-plugin</artifactId> 164 <version>2.5.2</version> 165 </plugin> 166 <plugin> 167 <artifactId>maven-deploy-plugin</artifactId> 168 <version>2.8.2</version> 169 </plugin> 170 </plugins> 171 </pluginManagement> 172 </build> 173 </project>