Hello,

I am new to maven and am having a problem running the mvn install and mvn
test commands. In both cases, maven invokes my Junit test cases and they
call fail. However, when I run the test cases in eclipse, they run fine.

Any thoughts on what the problem may be or how I can go about getting more
information what may be causing the tests to fail?

thanks
Suneet


C:\workspace\idm\services>mvn install
[INFO] Scanning for projects...
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building services
[INFO]    task-segment: [install]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'xstream:xstream:pom:1.2:compile' is invalid. It will be
ignor
ed for artifact resolution. Reason: Not a v4.0.0 POM. for project
xstream:xstrea
m at C:\Documents and Settings\Suneet
Shah\.m2\repository\xstream\xstream\1.2\xs
tream-1.2.pom
Downloading:
http://repo1.maven.org/maven2/groovy/groovy-all-1.0-jsr/06/groovy-a
ll-1.0-jsr-06.pom
[INFO] [compiler:compile]
[INFO] Compiling 63 source files to C:\workspace\idm\services\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'xstream:xstream:pom:1.2:compile' is invalid. It will be
ignor
ed for artifact resolution. Reason: Not a v4.0.0 POM. for project
xstream:xstrea
m at C:\Documents and Settings\Suneet
Shah\.m2\repository\xstream\xstream\1.2\xs
tream-1.2.pom
[INFO] [compiler:testCompile]
[INFO] Compiling 10 source files to
C:\workspace\idm\services\target\test-classe
s
[WARNING] POM for 'xstream:xstream:pom:1.2:compile' is invalid. It will be
ignor
ed for artifact resolution. Reason: Not a v4.0.0 POM. for project
xstream:xstrea
m at C:\Documents and Settings\Suneet
Shah\.m2\repository\xstream\xstream\1.2\xs
tream-1.2.pom
[INFO] [surefire:test]
[INFO] Surefire report directory:
C:\workspace\idm\services\target\surefire-repo
rts

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.openiam.idm.srvc.continfo.PhoneDAOTest
log4j:WARN No appenders could be found for logger (
org.openiam.idm.srvc.continfo
.PhoneDAOTest).
log4j:WARN Please initialize the log4j system properly.
Tests run: 8, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 3.297 sec
<<< FA
ILURE!

Reply via email to