`
aaagu1234
  • 浏览: 149134 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

appfuse mvn install 的一些日志

阅读更多
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application - Core
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 12 resources
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation.
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: file:/C:/Documents%20and%20Settings/Administrator/cms2/core/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded: file:/C:/Documents%20and%20Settings/Administrator/cms2/core/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded: C:\Documents and Settings\Administrator\cms2\core\target\test-classes\jdbc.properties
alter table user_role drop foreign key FK143BF46ABFCC459A;
alter table user_role drop foreign key FK143BF46A64F7097A;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked bit not null, address varchar(150), city varchar(50), country varchar(100), postal_code varchar(15), province varchar(100), credentials_expired bit not null, email varchar(255) not null unique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, password_hint varchar(255), phone_number varchar(255), username varchar(50) not null unique, version integer, website varchar(255), primary key (id)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), primary key (id)) ENGINE=InnoDB;
create table user_role (user_id bigint not null, role_id bigint not null, primary key (user_id, role_id)) ENGINE=InnoDB;
alter table user_role add index FK143BF46ABFCC459A (role_id), add constraint FK143BF46ABFCC459A foreign key (role_id) references role (id);
alter table user_role add index FK143BF46A64F7097A (user_id), add constraint FK143BF46A64F7097A foreign key (user_id) references app_user (id);
[WARNING] 2 errors occurred while performing <hbm2ddl>.
[ERROR] Error #1: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'cms2.user_role' doesn't exist
[ERROR] Error #1: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'cms2.user_role' doesn't exist
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Documents and Settings\Administrator\cms2\core\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.zonkey.dao.RoleDaoTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.437 sec
Running com.zonkey.util.DateUtilTest
DEBUG - DateUtilTest.testGetDate(44) | db date to convert: Wed Jun 08 13:16:26 CST 2011
DEBUG - DateUtilTest.testGetDate(50) | converted ui date: 06/08/2011
DEBUG - DateUtilTest.testGetDateTime(58) | entered 'testGetDateTime' method
DEBUG - DateUtilTest.testGetDateTime(62) | 13:16
WARN - DateUtil.getDateTime(149) | aDate is null!
DEBUG - DateUtil.convertStringToDate(92) | converting '06/08/2011' to date with mask 'MM/dd/yyyy'
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Running com.zonkey.dao.LookupDaoTest
DEBUG - LookupDaoHibernate.getRoles(38) | Retrieving all role names...
DEBUG - LookupDaoTest.testGetRoles(21) | [ROLE_ADMIN, ROLE_USER]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
Running com.zonkey.service.impl.LookupManagerImplTest
DEBUG - LookupManagerImplTest.testGetAllRoles(29) | entered 'testGetAllRoles' method
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec
Running com.zonkey.util.DateConverterTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.zonkey.service.impl.UserManagerImplTest
WARN - UserManagerImpl.saveUser(89) | PasswordEncoder not set, skipping password encryption...
DEBUG - UserManagerImpl.removeUser(109) | removing user: 5
WARN - UserManagerImpl.saveUser(89) | PasswordEncoder not set, skipping password encryption...
WARN - UserManagerImpl.saveUser(89) | PasswordEncoder not set, skipping password encryption...
WARN - UserManagerImpl.saveUser(96) | 
DEBUG - UserManagerImplTest.testUserExistsException(134) | expected exception: User 'admin' already exists!
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.219 sec
Running com.zonkey.service.UserManagerTest
DEBUG - UserManagerTest.testGetUser(25) | com.zonkey.model.User@14ff81a[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - UserDaoHibernate.saveUser(49) | user's id: null
DEBUG - UserManagerTest.testAddAndRemoveUser(55) | removing user...
DEBUG - UserManagerImpl.removeUser(109) | removing user: 1
DEBUG - UserManagerTest.testAddAndRemoveUser(63) | org.springframework.security.core.userdetails.UsernameNotFoundException: user 'john' not found...
DEBUG - UserManagerTest.testSaveUser(34) | saving user with updated phone number: com.zonkey.model.User@1966070[username=user,enabled=true,accountExpired=false,credentialsExpired=false,accountLocked=false,Granted Authorities: ,ROLE_USER]
DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.531 sec
Running com.zonkey.dao.hibernate.HibernateConfigurationTest
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: com.zonkey.model.User
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: com.zonkey.model.User
DEBUG - HibernateConfigurationTest.testColumnMapping(25) | Trying select * from: com.zonkey.model.Role
DEBUG - HibernateConfigurationTest.testColumnMapping(28) | ok: com.zonkey.model.Role
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Running com.zonkey.dao.UserDaoTest
WARN - GenericDaoHibernate.get(106) | Uh oh, 'class com.zonkey.model.User' object with id '1000' not found...
DEBUG - UserDaoTest.testGetUserPassword(53) | password: 12dea96fec20593566ab75692c9949596833adc9
DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(49) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(233) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(234) | Duplicate entry 'matt_raible@yahoo.com' for key 'email'
DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(49) | user's id: -1
DEBUG - UserDaoHibernate.saveUser(49) | user's id: null
WARN - GenericDaoHibernate.get(106) | Uh oh, 'class com.zonkey.model.User' object with id '3' not found...
Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.672 sec <<< FAILURE!
Running com.zonkey.service.MailEngineTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.937 sec
Running com.zonkey.dao.GenericDaoTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running com.zonkey.service.UserExistsExceptionTest
DEBUG - UserExistsExceptionTest.testAddExistingUser(27) | entered 'testAddExistingUser' method
DEBUG - UserDaoHibernate.saveUser(49) | user's id: null
WARN - JDBCExceptionReporter.logExceptions(233) | SQL Error: 1062, SQLState: 23000
ERROR - JDBCExceptionReporter.logExceptions(234) | Duplicate entry 'matt_raible@yahoo.com' for key 'email'
WARN - UserManagerImpl.saveUser(96) | could not insert: [com.zonkey.model.User]; SQL [insert into app_user (account_expired, account_locked, address, city, country, postal_code, province, credentials_expired, email, account_enabled, first_name, last_name, password, password_hint, phone_number, username, version, website) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [com.zonkey.model.User]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.844 sec
Running com.zonkey.service.impl.UserSecurityAdviceTest
WARN - UserSecurityAdvice.before(72) | Access Denied: 'user' tried to modify 'admin'!
WARN - UserSecurityAdvice.before(93) | Access Denied: 'user' tried to change their role(s)!
WARN - UserSecurityAdvice.before(93) | Access Denied: 'user' tried to change their role(s)!
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.531 sec

Results :

Tests in error: 
  testUserSearch(com.zonkey.dao.UserDaoTest)

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

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to C:\Documents and Settings\Administrator\cms2\core\target\surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29 seconds
[INFO] Finished at: Wed Jun 08 13:16:32 CST 2011
[INFO] Final Memory: 25M/46M
[INFO] ------------------------------------------------------------------------
分享到:
评论

相关推荐

    appfuse

    添加完依赖后,运行`mvn install`命令,Maven会自动从中央仓库下载这些jar包,并将其添加到项目的类路径中。如果某些库无法从中央仓库获取,你可能需要去相关的开源项目网站下载对应版本的jar包,并将其存放到本地...

    appfuse学习笔记(一)安装部署

    mvn install mvn tomcat7:run ``` 这将启动一个内嵌的 Tomcat 服务器,并运行 AppFuse 示例应用。你可以通过浏览器访问 `http://localhost:8080/my-app` 来查看运行结果。 **5. 配置与定制** AppFuse 提供了丰富的...

    MAVEN 搭建APPFUSE

    在命令行中,使用`mvn clean install`命令来编译、测试和打包项目。完成后,使用`mvn tomcat7:run`或类似的命令启动内置的Web服务器,然后在浏览器中访问`http://localhost:8080`来查看你的应用。 步骤6:开发和...

    appfuse 学习笔记

    ### Appfuse 学习笔记 #### 一、Appfuse 简介 Appfuse 是一个开源框架,... mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=...

    Appfuse2搭建文档

    使用Maven构建项目,执行`mvn install`命令。然后,运行应用,如: ``` mvn tomcat:run ``` 访问默认的URL(通常是http://localhost:8080/myproject),你应该能看到Appfuse2的欢迎页面。 **步骤6:数据库初始化** ...

    建立项目原型骨架的步骤(最新版本appfuse)appfuse2.1.0-M2

    `mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts-archetype -DarchetypeVersion=2.1.0-M2 -DgroupId=cn.xue.app -DartifactId=xueAppFuse` ...

    AppFuse

    ### AppFuse:加速J2EE项目开发 #### 一、简介与背景 AppFuse是一个用于启动J2EE项目的工具包,它提供了一种快速而简便的方法来构建基于Java的应用程序。该工具包由Matt Raible创建,他在网络开发领域拥有丰富的...

    APPFUSE工具研究.doc

    AppFuse 是一个基于Java平台的开源项目,旨在加速和简化Web应用程序的开发。它通过集成各种流行框架,如Struts、Spring、Hibernate等,提供了一个项目骨架,使得开发者能够快速搭建新项目的结构。AppFuse分为1.x和...

    AppFuse2.1所需包

    5. Log4j或Logback:日志记录框架,用于收集和记录应用程序中的各种日志信息。 6. Commons库:Apache Commons项目提供的各种实用工具类,如IO、Lang、Collections等,为开发提供便利。 7. Servlet和JSP API:Web应用...

    Appfuse使用教程

    4. **打包与安装**:`mvn package`命令将源代码打包成JAR或WAR文件,`mvn install`将打包后的文件安装到本地仓库,便于其他模块引用。 5. **生成文档**:`mvn site`可以生成项目文档,包括API文档和项目报告,甚至...

    可直接使用的appfuse项目

    AppFuse提供了Web系统开发过程中都需要开发的一些功能,如登陆、用户密码加密,用户管理、根据不同的用户可以展现不同的菜单.J2EE开发者也可以在此基础上开发加入自己的功能模块。利用这个框架可以大幅度的提高开发...

    Appfuse1.9至2.0.2

    主要是自己从网络上搜集的一些关于appfuse1.8.2-2.0.2的一些相关资料,间或有点自己试验的记录,还有点maven和quartz的东东,之前我主要是用1.8.2构建项目,感觉还不错,希望对想学习appfuse的人有些帮助.

    一个appfuse的应用

    在下载并解压这个应用后,你可以通过Maven的`mvn clean install`命令来构建项目。如果遇到缺少的jar包,根据官方文档指示去下载相应的依赖,并将其添加到项目的pom.xml文件中。然后,你可以运行应用并进行调试,...

    maven导入appfuse架构生成代码

    由于appfuse主页的mvn自动生成项目架构代码无法显示,个中原因,你懂的~被墙了。所以在此制作了自动生成代码包,进入之后点击页面可以出现生成代码。

    appfuse.tar.gz

    From the command line, cd into the appfuse directory and type "mvn idea:idea". Get a cup of coffee or soda (or even better, a beer!) while you wait for Maven to download all the dependencies. After...

    appfuse1.4-architecture

    06年时的appfuse,学习SSH架构的经典入门框架。相对比较老的资料,可以欣赏一下当时的架构,向牛人致敬

    appfuse2学习日记

    5. **下载源代码**:在项目目录中运行 `mvn appfuse:full-source` 命令。 6. **运行项目**: - 使用 Jetty 运行项目:`mvn jetty:run-war`。 - Jetty 下载地址:...

Global site tag (gtag.js) - Google Analytics