使用骨架时没有jar包时添加一条属性就可以创建成功
archetypeCatalog internal
配置文件
pom.xml
4.0.0
com.yunque
Maven_ssm
1.0-SNAPSHOT
war
UTF-8
org.slf4j
slf4j-api
1.7.2
org.slf4j
slf4j-log4j12
1.7.2
org.springframework
spring-beans
4.3.9.RELEASE
org.springframework
spring-context
4.3.9.RELEASE
org.springframework
spring-web
4.3.9.RELEASE
org.springframework
spring-core
4.3.9.RELEASE
org.springframework
spring-webmvc
4.3.9.RELEASE
com.fasterxml.jackson.core
jackson-databind
2.8.5
com.alibaba
fastjson
1.2.8
com.alibaba
druid
1.0.23
mysql
mysql-connector-java
5.1.40
junit
junit
4.12
org.mybatis
mybatis
3.2.8
org.mybatis
mybatis-spring
1.3.1
org.springframework
spring-tx
4.3.9.RELEASE
org.springframework
spring-jdbc
4.3.9.RELEASE
log4j
log4j
1.2.17
org.aspectj
aspectjrt
1.8.9
org.aspectj
aspectjweaver
1.8.9
commons-dbcp
commons-dbcp
1.4
javax.inject
javax.inject
1
javax.servlet
javax.servlet-api
3.1.0
provided
commons-codec
commons-codec
1.9
commons-beanutils
commons-beanutils
1.8.0
commons-collections
commons-collections
3.2.1
commons-lang
commons-lang
2.5
commons-logging
commons-logging
1.1.1
net.sf.ezmorph
ezmorph
1.0.6
net.sf.json-lib
json-lib
2.4
jstl
jstl
1.2
commons-io
commons-io
1.3.2
jmimemagic
jmimemagic
0.1.2
org.apache.commons
commons-lang3
3.1
org.apache.poi
poi
3.14
org.apache.poi
poi-ooxml
3.14
org.apache.xmlbeans
xmlbeans
2.6.0
org.apache.tomcat.maven
tomcat7-maven-plugin
2.2
8888
org.apache.maven.plugins
maven-compiler-plugin
2.3.2
1.7
UTF-8
web.xml
Maven_ssm
CharacterEncoding
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
forceEncoding
true
CharacterEncoding
/*
Maven_ssm
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:springmvc.xml
1
Maven_ssm
*.action
org.springframework.web.context.ContextLoaderListener
contextConfigLocation
classpath:springmvc.xml
index.jsp
1.创建父工程(普通创建就可以)
2.dao层不使用骨架创建(普通创建)
3.service层不使用骨架创建(普通创建)
4.web成使用骨架创建
5.把jar包导入到父工程的pom文件中
6.各个模块之间的依赖导入
7.导入各个模块的配置文件
parent---pom.xml
4.0.0
com.yunque
Maven_parent
1.0-SNAPSHOT
Maven_dao
Maven_service
Maven_web
pom
UTF-8
org.slf4j
slf4j-api
1.7.2
org.slf4j
slf4j-log4j12
1.7.2
org.springframework
spring-beans
4.3.9.RELEASE
org.springframework
spring-context
4.3.9.RELEASE
org.springframework
spring-web
4.3.9.RELEASE
org.springframework
spring-core
4.3.9.RELEASE
org.springframework
spring-webmvc
4.3.9.RELEASE
com.fasterxml.jackson.core
jackson-databind
2.8.5
com.alibaba
fastjson
1.2.8
com.alibaba
druid
1.0.23
mysql
mysql-connector-java
5.1.40
junit
junit
4.12
test
org.mybatis
mybatis
3.2.8
org.mybatis
mybatis-spring
1.3.1
org.springframework
spring-tx
4.3.9.RELEASE
org.springframework
spring-jdbc
4.3.9.RELEASE
log4j
log4j
1.2.17
org.aspectj
aspectjrt
1.8.9
org.aspectj
aspectjweaver
1.8.9
commons-dbcp
commons-dbcp
1.4
javax.inject
javax.inject
1
javax.servlet
javax.servlet-api
3.1.0
provided
commons-codec
commons-codec
1.9
commons-beanutils
commons-beanutils
1.8.0
commons-collections
commons-collections
3.2.1
commons-lang
commons-lang
2.5
commons-logging
commons-logging
1.1.1
net.sf.ezmorph
ezmorph
1.0.6
net.sf.json-lib
json-lib
2.4
jstl
jstl
1.2
commons-io
commons-io
1.3.2
jmimemagic
jmimemagic
0.1.2
org.apache.commons
commons-lang3
3.1
org.apache.poi
poi
3.14
org.apache.poi
poi-ooxml
3.14
org.apache.xmlbeans
xmlbeans
2.6.0
org.apache.tomcat.maven
tomcat7-maven-plugin
2.2
8888
org.apache.maven.plugins
maven-compiler-plugin
2.3.2
1.7
UTF-8
dao------applicationContext-dao.xml
applicationContext-service.xml
WEB ********************
applicationContext.xml
web.xml (同上)
8.测试(IDEA修改JSP也需要重启项目)
8.1.Tomcat测试
8.2插件启动
8.3 WEB启动
报错--找不到jar包
1.以管理员身份运行命令窗口
找到指定目录 执行nexus.bat install 启动 nexus.bat start 卸载 nexus.bat uninstall
2.私服的访问
http://192.156.125.125:8081/nexus
admin admin123
3.本地Maven访问私服仓库--需要在settings.xml中配置server
dao---pom文件配置
4.从私服下载jar包--settings.xml配置
激活配置
5.安装第三方jar包到本地仓库