关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 11874|回复: 4

[代码生成器] jeecg-framework3.4.3导入不成功

[复制链接]
发表于 2014-2-11 16:39:17 | 显示全部楼层 |阅读模式
以Existing Projects into Workspace方式导入,然后在项目上右键使用Maven->Update Project
将JRE改为1.6环境,Project Facets和Java Compiler也同时改为1.6
在整个项目属性中没有Deployment Assembly属性,所以Web Project Setting中无法设置Context root

也以maven方式导入过,但不能copy到工作空间,复制到工作空间直接导入,现象与上面的一样

导入方式错了吗?

pom.xml中的文件全部下载完成,没有报错情况,只有各别的报warn
在环境中多了个org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER,这个东东应该没用吧?


aaa.PNG
 楼主| 发表于 2014-2-11 16:42:33 | 显示全部楼层
补充:
maven clean
maven install
结果:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jeecgframework:jeecg:war:3.4.3-GA
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.poi:poi:jar -> duplicate declaration of version ${poi.version} @ line 659, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building jeecg 3.4.3-GA
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for avalon-framework:avalon-framework-api:jar:4.1.5-dev is missing, no dependency information available
[WARNING] The POM for org.apache.cocoon:cocoon-xml-api:jar:1.0.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ jeecg ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 31 resources
[INFO] Copying 53 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ jeecg ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ jeecg ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ jeecg ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ jeecg ---
[INFO] Surefire report directory: E:\_work\javawork\jeecg\jeecg-framework\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ jeecg ---
[INFO] Packaging webapp
[INFO] Assembling webapp [jeecg] in [E:\_work\javawork\jeecg\jeecg-framework\target\jeecg]
[INFO] Processing war project
[INFO] Copying webapp resources [E:\_work\javawork\jeecg\jeecg-framework\src\main\webapp]
[INFO] Webapp assembled in [7033 msecs]
[INFO] Building war: E:\_work\javawork\jeecg\jeecg-framework\target\jeecg.war
[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored
(webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ jeecg ---
[INFO] Installing E:\_work\javawork\jeecg\jeecg-framework\target\jeecg.war to C:\Users\琰巅.live\.m2\repository\org\jeecgframework\jeecg\3.4.3-GA\jeecg-3.4.3-GA.war
[INFO] Installing E:\_work\javawork\jeecg\jeecg-framework\pom.xml to C:\Users\琰巅.live\.m2\repository\org\jeecgframework\jeecg\3.4.3-GA\jeecg-3.4.3-GA.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.346s
[INFO] Finished at: Tue Feb 11 16:41:45 CST 2014
[INFO] Final Memory: 10M/91M
[INFO] ------------------------------------------------------------------------
发表于 2014-2-12 20:09:37 | 显示全部楼层
执行没问题就可以了
 楼主| 发表于 2014-2-14 09:41:33 | 显示全部楼层
就是执行不起来,报Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules。
新建一个MAVEN WEB项目,对比各属性,没什么差别,就是少了Deployment Assembly属性
 楼主| 发表于 2014-2-14 18:16:00 | 显示全部楼层
Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules。
这个错误我改过来了,但还是没有Deployment Assembly属性

并且新建一个MAVEN项目,把SRC复制过来,运行不起来
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表