1.eclipse新建一个maven-web项目
2.将jeecg相关代码和pom拷贝至项目中,修改项目编码为UT-8
3.修改pom文件,配置资源扫描路径可以扫描java目录
?<build>
??<finalName>jeecg</finalName>
??<resources>
???<resource>
????<directory>src/main/java</directory>
????<includes>
?????<include>**/*.xml</include>
?????<include>**/*.sql</include>
?????<include>**/*.ftl</include>
????</includes>
????<filtering>false</filtering>
???</resource>
???<resource>
????<directory>src/main/resources</directory>
???</resource>
??</resources>
??<testResources>
???<testResource>
????<directory>src/test/java</directory>
????<includes>
?????<include>**/*.xml</include>
?????<include>**/*.sql</include>
?????<include>**/*.ftl</include>
????</includes>
????<filtering>false</filtering>
???</testResource>
???<testResource>
????<directory>src/test/resources</directory>
???</testResource>
??</testResources>
?</build>
4.追加缺少jar包
??<dependency>
???<groupId>org.codehaus.jackson</groupId>
???<artifactId>jackson-core-asl</artifactId>
???<version>${jackson.version}</version>
??</dependency>
[email protected]
6.强转项目中不识别的对象
7.执行maven clean
8.采用tomcat启动项目
?
常见问题:
? 1.如何让项目支持多版本IDE,比如eclipse,myeclipse等等版本,最简单的方法就是创建一个maven项目,将代码复制进去。或者创建一个项目,参与他的[.classpath/.project]文件,修改下载项目;
? 2.如何获取项目采用maven依赖的所有jar包,采用命令mvn dependency:copy-dependencies
?
?