SSM完整项目的pom文件搭建

1.共同父依赖parent的pom文件

    他是个简单骨架,是其他项目的父依赖。配置如下:

	4.0.0
	com.xiaodu.ilovejava
	parent
	1.0.0
	pom
	parent
	父依赖Pom文件
	
		UTF-8
		4.2.3.RELEASE
		3.2.3
		2.3.23
		1.0.0
	
	
	
		
			
			
				org.springframework
				spring-webmvc
				${org.springframework.version}
			
			
			
				com.fasterxml.jackson.core
				jackson-core
				2.5.0
			
			
				com.fasterxml.jackson.core
				jackson-databind
				2.5.0
			
			
				com.fasterxml.jackson.core
				jackson-annotations
				2.5.0
			
			
			
				org.freemarker
				freemarker
				${org.freemarker.version}
			
		
	
	
	
		
		
			org.springframework
			spring-web
			${org.springframework.version}
		
		
		
			javax.servlet
			servlet-api
			2.5
			provided
		

		
			junit
			junit
			4.12
			test
		
		
			org.projectlombok
			lombok
			1.16.6
		
		
		
			javax.servlet
			servlet-api
			2.5
			provided
		

		
			mysql
			mysql-connector-java
			5.1.21
		

		
		
			com.alibaba
			druid
			1.0.14
			
				
					com.alibaba
					jconsole
				
				
					com.alibaba
					tools
				
			
		

		
		
			commons-lang
			commons-lang
			2.6
		

		
		
			org.springframework
			spring-test
			${org.springframework.version}
			test
		
		
			org.springframework
			spring-core
			${org.springframework.version}
		
		
			org.springframework
			spring-context
			${org.springframework.version}
		
		
			org.springframework
			spring-context-support
			${org.springframework.version}
		
		
			org.springframework
			spring-expression
			${org.springframework.version}
		
		
			org.springframework
			spring-jdbc
			${org.springframework.version}
		
		
			org.springframework
			spring-tx
			${org.springframework.version}
		
		
			org.springframework
			spring-aop
			${org.springframework.version}
		
		
		
			org.aspectj
			aspectjrt
			1.7.4
		

		
			org.aspectj
			aspectjweaver
			1.7.4
		

		
		
			cglib
			cglib
			3.1
		

		
		
			org.mybatis
			mybatis
			${org.mybatis.version}
		

		
			org.mybatis
			mybatis-spring
			1.2.3
		

		
		
			com.fasterxml.jackson.core
			jackson-core
			2.5.0
		
		
			com.fasterxml.jackson.core
			jackson-databind
			2.5.0
		
		
			com.fasterxml.jackson.core
			jackson-annotations
			2.5.0
		

		
		
			org.slf4j
			slf4j-api
			1.7.6
		

		
			org.slf4j
			slf4j-log4j12
			1.7.6
		
		
			log4j
			log4j
			1.2.17
		

		
			commons-fileupload
			commons-fileupload
			1.3.1
		

		
		
			jstl
			jstl
			1.2
		
		
		
			taglibs
			standard
			1.1.2
		
		
			dom4j
			dom4j
			1.6.1
		
	
	
	
		ilovejava
		
			
				org.apache.maven.plugins
				maven-compiler-plugin
				
					1.8
					1.8
				
			
		
	

2.前后台公共核心模块core的pom文件

    core是前台后台的公共部分代码,打成jar所放到前台和后台。

	4.0.0
	
		com.xiaodu.ilovejava
		parent
		1.0.0
		
		../parent/pom.xml
	
	core
	core
	
		
			org.freemarker
			freemarker
		
		
		
			org.quartz-scheduler
			quartz
			2.2.0
		
		
		
			javax.mail
			mail
			1.4.7
		
	
	
	
		ilovejava
		
			
				
				org.mybatis.generator
				mybatis-generator-maven-plugin
				1.3.2
				
					true
					false
				
				
					
						mysql
						mysql-connector-java
						5.1.21
					
				
			
		
	

3.mgrsite后台管理的模块的pom文件依赖

    把父parent的pom文件引入,和核心jar的core引入。

	4.0.0
	
		com.xiaodu.ilovejava
		parent
		1.0.0
		
		../parent/pom.xml
	
	mgrsite
	war
	mgrsite
	后台管理
	
		
		
			com.xiaodu.ilovejava
			core
			1.0.0
		
		
			org.freemarker
			freemarker
		
		
		
			org.springframework
			spring-webmvc
		
		
		
			com.fasterxml.jackson.core
			jackson-core
			2.5.0
		
		
			com.fasterxml.jackson.core
			jackson-databind
		
		
			com.fasterxml.jackson.core
			jackson-annotations
		
	
	
		ilovejava
		
			
				org.apache.tomcat.maven
				tomcat7-maven-plugin
				2.2
				
					8080
					/
				
			
		
	

4.前台website文件的pom依赖(跟mgrsite类似)


	4.0.0
	
		com.xiaodu.ilovejava
		parent
		1.0.0
		
		../parent/pom.xml
	
	website
	war
	website
	前台管理
	
		
		
			com.xiaodu.ilovejava
			core
			${project.version}
		
		
		
			org.freemarker
			freemarker
		
		
		
			org.springframework
			spring-webmvc
		
		
		
			com.fasterxml.jackson.core
			jackson-core
		
		
			com.fasterxml.jackson.core
			jackson-databind
		
		
			com.fasterxml.jackson.core
			jackson-annotations
		
	
	
		ilovejava
		
			
				org.apache.tomcat.maven
				tomcat7-maven-plugin
				2.2
				
					8080
					/
				
			
		
	

5.前台website的application-website.xml文件配置(mgrsite类同)。




	
	
	
	
	
	
	
	
		
			
			
			
			
			
			
			
			
			
			
			
			
		
	

	
	
		
	

	
	
		
		
	

	
	
		
		
		
		
	

6.公共模块core中的applicationContext.xml配置



	
	
	
	

	
	
		
		
		
		
	

	
		
		
		
	

	
	
		
	
	
		
			
			
			
			
			
		
	

	
	
		
		
	

	
	
		
	

7.mybatis逆向工程generatorConfig.xml文件






	
		
		
		
		
		
		
		
		

		
		
		

		
			
			
		

		
		
			
		

		
		
			
			
		


		
		
			
			

			
			

			
			
		

		
		
			
			
		


		
		
			
			

			
		


		
			
		



    


你可能感兴趣的:(SSM完整项目的pom文件搭建)