$ mvn --help
usage: mvn [options] [<goal(s)>] [<phase(s)>]
Options:
-q,--quiet Quiet output - only show errors
-C,--strict-checksums Fail the build if checksums don't match
-c,--lax-checksums Warn if checksums don't match
-P,--activate-profiles Comma-delimited list of profiles to
activate
-ff,--fail-fast Stop at first failure in reactorized builds
-fae,--fail-at-end Only fail the build afterwards; allow all
non-impacted builds to continue
-B,--batch-mode Run in non-interactive (batch) mode
-fn,--fail-never NEVER fail the build, regardless of project
result
-up,--update-plugins Synonym for cpu
-N,--non-recursive Do not recurse into sub-projects
-npr,--no-plugin-registry Don't use ~/.m2/plugin-registry.xml for
plugin versions
-U,--update-snapshots Forces a check for updated releases and
snapshots on remote repositories
-cpu,--check-plugin-updates Force upToDate check for any relevant
registered plugins
-npu,--no-plugin-updates Suppress upToDate check for any relevant
registered plugins
-D,--define Define a system property
-X,--debug Produce execution debug output
-e,--errors Produce execution error messages
-f,--file Force the use of an alternate POM file.
-h,--help Display help information
-o,--offline Work offline
-r,--reactor Execute goals for project found in the
reactor
-s,--settings Alternate path for the user settings file
-v,--version Display version information
On Sat, Aug 16, 2008 at 8:36 AM, Irshad Buchh <[EMAIL PROTECTED]> wrote:
>
> What does mvn -U exactly do? I tried to google it out, didn't find a proper
> result.
>
>
> emmettwalsh wrote:
>>
>>
>> i did a mvn -U and it fixed it
>>
>>
>> E
>>
>>
>> mraible wrote:
>>>
>>> Can you try it with JDK 5? You also might try putting your JDK in a
>>> directory w/o spaces.
>>>
>>> Matt
>>>
>>> On Wed, Aug 6, 2008 at 2:10 PM, emmettwalsh <[EMAIL PROTECTED]>
>>> wrote:
>>>>
>>>> I'm using Vista
>>>>
>>>> here are my env variables:
>>>>
>>>> C:\dev\springapp3>set
>>>> ALLUSERSPROFILE=C:\ProgramData
>>>> APPDATA=C:\Users\Admin\AppData\Roaming
>>>> CLASSPATH=.;C:\Program Files\Java\jre1.6.0_03\lib\ext\QTJava.zip
>>>> CommonProgramFiles=C:\Program Files\Common Files
>>>> COMPUTERNAME=ADMIN-PC
>>>> ComSpec=C:\Windows\system32\cmd.exe
>>>> ERROR_CODE=0
>>>> FP_NO_HOST_CHECK=NO
>>>> HOME=C:\Users\Admin
>>>> HOMEDRIVE=C:
>>>> HOMEPATH=\Users\Admin
>>>> JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07
>>>> LOCALAPPDATA=C:\Users\Admin\AppData\Local
>>>> LOGONSERVER=\\ADMIN-PC
>>>> MAVEN_HOME=c:\tools\maven-2.0.7
>>>> MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=256m
>>>> MYSQL_HOME=C:\tools\mysql-5.0.22-win32
>>>> NUMBER_OF_PROCESSORS=2
>>>> OS=Windows_NT
>>>> Path=C:\Program Files\PC Connectivity
>>>> Solution\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
>>>> Files\Common Files\Roxio Shared\DLL
>>>> Shared\;C:\Program Files\Common Files\Roxio
>>>> Shared\9.0\DLLShared\;C:\Program
>>>> Files\Java\jdk1.6.0_07\bin;c:\tools\maven-2.0.7\bin;C:\Program
>>>> Files\Quic
>>>> kTime\QTSystem\;C:\tools\mysql-5.0.22-win32\bin;
>>>> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
>>>> PROCESSOR_ARCHITECTURE=x86
>>>> PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 6, GenuineIntel
>>>> PROCESSOR_LEVEL=6
>>>> PROCESSOR_REVISION=0f06
>>>> ProgramData=C:\ProgramData
>>>> ProgramFiles=C:\Program Files
>>>> PROMPT=$P$G
>>>> PUBLIC=C:\Users\Public
>>>> QTJAVA=C:\Program Files\Java\jre1.6.0_03\lib\ext\QTJava.zip
>>>> RoxioCentral=C:\Program Files\Common Files\Roxio Shared\9.0\Roxio
>>>> Central33\
>>>> SESSIONNAME=Console
>>>> SystemDrive=C:
>>>> SystemRoot=C:\Windows
>>>> TEMP=C:\Users\Admin\AppData\Local\Temp
>>>> TMP=C:\Users\Admin\AppData\Local\Temp
>>>> TOOLS_HOME=c:\tools
>>>> USERDOMAIN=Admin-PC
>>>> USERNAME=Admin
>>>> USERPROFILE=C:\Users\Admin
>>>> windir=C:\Windows
>>>>
>>>> C:\dev\springapp3>l
>>>>
>>>>
>>>>
>>>> mraible wrote:
>>>>>
>>>>> I haven't seen these errors before. Can you send your environment (OS,
>>>>> Maven version, etc.)?
>>>>>
>>>>> Matt
>>>>>
>>>>> On Wed, Aug 6, 2008 at 1:55 PM, emmettwalsh <[EMAIL PROTECTED]>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have downloaded the jsf basic and then the spring mvc basic
>>>>>> projects.
>>>>>> The
>>>>>> tests pass fine, but when I download the full source and run then
>>>>>> tests
>>>>>> again I get some failures, I tried removing the hibernate mapping file
>>>>>> from
>>>>>> the test resources directory, but still no use. can any body help,
>>>>>> here
>>>>>> are
>>>>>> the errors:
>>>>>>
>>>>>>
>>>>>> Test set: com.sodaitsolutions.apps.service.impl.LookupManagerImplTest
>>>>>> -------------------------------------------------------------------------------
>>>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.006
>>>>>> sec
>>>>>> <<< FAILURE!
>>>>>> com.sodaitsolutions.apps.service.impl.LookupManagerImplTest.testGetAllRoles()
>>>>>> Time elapsed: 0.001 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: can only set expectations on mock
>>>>>> objects
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.captureExpectedObject(InvocationExpectationBuilder.java:67)
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.of(InvocationExpectationBuilder.java:107)
>>>>>> at org.jmock.Expectations.one(Expectations.java:89)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.LookupManagerImplTest$1.<init>(LookupManagerImplTest.java:35)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.LookupManagerImplTest.testGetAllRoles(LookupManagerImplTest.java:34)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> -------------------------------------------------------------------------------
>>>>>> Test set: com.sodaitsolutions.apps.service.impl.UniversalManagerTest
>>>>>> -------------------------------------------------------------------------------
>>>>>> Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.019
>>>>>> sec
>>>>>> <<< FAILURE!
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest.testCreate()
>>>>>> Time elapsed: 0.009 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: can only set expectations on mock
>>>>>> objects
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.captureExpectedObject(InvocationExpectationBuilder.java:67)
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.of(InvocationExpectationBuilder.java:107)
>>>>>> at org.jmock.Expectations.one(Expectations.java:89)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest$1.<init>(UniversalManagerTest.java:39)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest.testCreate(UniversalManagerTest.java:38)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest.testRetrieve()
>>>>>> Time elapsed: 0.001 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: can only set expectations on mock
>>>>>> objects
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.captureExpectedObject(InvocationExpectationBuilder.java:67)
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.of(InvocationExpectationBuilder.java:107)
>>>>>> at org.jmock.Expectations.one(Expectations.java:89)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest$2.<init>(UniversalManagerTest.java:50)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest.testRetrieve(UniversalManagerTest.java:49)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest.testUpdate()
>>>>>> Time elapsed: 0.001 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: can only set expectations on mock
>>>>>> objects
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.captureExpectedObject(InvocationExpectationBuilder.java:67)
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.of(InvocationExpectationBuilder.java:107)
>>>>>> at org.jmock.Expectations.one(Expectations.java:89)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest$3.<init>(UniversalManagerTest.java:61)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest.testUpdate(UniversalManagerTest.java:60)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest.testDelete()
>>>>>> Time elapsed: 0.001 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: can only set expectations on mock
>>>>>> objects
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.captureExpectedObject(InvocationExpectationBuilder.java:67)
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.of(InvocationExpectationBuilder.java:107)
>>>>>> at org.jmock.Expectations.one(Expectations.java:89)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest$4.<init>(UniversalManagerTest.java:74)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UniversalManagerTest.testDelete(UniversalManagerTest.java:73)
>>>>>>
>>>>>>
>>>>>>
>>>>>> -------------------------------------------------------------------------------
>>>>>> Test set: com.sodaitsolutions.apps.service.impl.UserManagerImplTest
>>>>>> -------------------------------------------------------------------------------
>>>>>> Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.015
>>>>>> sec
>>>>>> <<< FAILURE!
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest.testGetUser()
>>>>>> Time elapsed: 0.002 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: can only set expectations on mock
>>>>>> objects
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.captureExpectedObject(InvocationExpectationBuilder.java:67)
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.of(InvocationExpectationBuilder.java:107)
>>>>>> at org.jmock.Expectations.one(Expectations.java:89)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest$1.<init>(UserManagerImplTest.java:40)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest.testGetUser(UserManagerImplTest.java:39)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest.testAddAndRemoveUser()
>>>>>> Time elapsed: 0.003 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: can only set expectations on mock
>>>>>> objects
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.captureExpectedObject(InvocationExpectationBuilder.java:67)
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.of(InvocationExpectationBuilder.java:107)
>>>>>> at org.jmock.Expectations.one(Expectations.java:89)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest$4.<init>(UserManagerImplTest.java:84)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest.testAddAndRemoveUser(UserManagerImplTest.java:83)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest.testSaveUser()
>>>>>> Time elapsed: 0.001 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: can only set expectations on mock
>>>>>> objects
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.captureExpectedObject(InvocationExpectationBuilder.java:67)
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.of(InvocationExpectationBuilder.java:107)
>>>>>> at org.jmock.Expectations.one(Expectations.java:89)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest$2.<init>(UserManagerImplTest.java:57)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest.testSaveUser(UserManagerImplTest.java:56)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest.testUserExistsException()
>>>>>> Time elapsed: 0.001 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: can only set expectations on mock
>>>>>> objects
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.captureExpectedObject(InvocationExpectationBuilder.java:67)
>>>>>> at
>>>>>> org.jmock.internal.InvocationExpectationBuilder.of(InvocationExpectationBuilder.java:107)
>>>>>> at org.jmock.Expectations.one(Expectations.java:89)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest$8.<init>(UserManagerImplTest.java:126)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.impl.UserManagerImplTest.testUserExistsException(UserManagerImplTest.java:125)
>>>>>>
>>>>>>
>>>>>>
>>>>>> -------------------------------------------------------------------------------
>>>>>> Test set: com.sodaitsolutions.apps.service.UserSecurityAdviceTest
>>>>>> -------------------------------------------------------------------------------
>>>>>> Tests run: 7, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 0.185
>>>>>> sec
>>>>>> <<< FAILURE!
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testAddUserWithoutAdminRole()
>>>>>> Time elapsed: 0.001 sec <<< FAILURE!
>>>>>> java.lang.NullPointerException
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testAddUserWithoutAdminRole(UserSecurityAdviceTest.java:58)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testUpdateUserProfile()
>>>>>> Time elapsed: 0.015 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: a mock with name userDao already
>>>>>> exists
>>>>>> at org.jmock.Mockery.mock(Mockery.java:121)
>>>>>> at org.jmock.Mockery.mock(Mockery.java:113)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.makeInterceptedTarget(UserSecurityAdviceTest.java:193)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testUpdateUserProfile(UserSecurityAdviceTest.java:98)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testChangeToAdminRoleFromUserRole()
>>>>>> Time elapsed: 0.015 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: a mock with name userDao already
>>>>>> exists
>>>>>> at org.jmock.Mockery.mock(Mockery.java:121)
>>>>>> at org.jmock.Mockery.mock(Mockery.java:113)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.makeInterceptedTarget(UserSecurityAdviceTest.java:193)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testChangeToAdminRoleFromUserRole(UserSecurityAdviceTest.java:113)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testAddAdminRoleWhenAlreadyHasUserRole()
>>>>>> Time elapsed: 0.024 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: a mock with name userDao already
>>>>>> exists
>>>>>> at org.jmock.Mockery.mock(Mockery.java:121)
>>>>>> at org.jmock.Mockery.mock(Mockery.java:113)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.makeInterceptedTarget(UserSecurityAdviceTest.java:193)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testAddAdminRoleWhenAlreadyHasUserRole(UserSecurityAdviceTest.java:130)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testAddUserRoleWhenHasAdminRole()
>>>>>> Time elapsed: 0.017 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: a mock with name userDao already
>>>>>> exists
>>>>>> at org.jmock.Mockery.mock(Mockery.java:121)
>>>>>> at org.jmock.Mockery.mock(Mockery.java:113)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.makeInterceptedTarget(UserSecurityAdviceTest.java:193)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testAddUserRoleWhenHasAdminRole(UserSecurityAdviceTest.java:159)
>>>>>>
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testUpdateUserWithUserRole()
>>>>>> Time elapsed: 0.015 sec <<< FAILURE!
>>>>>> java.lang.IllegalArgumentException: a mock with name userDao already
>>>>>> exists
>>>>>> at org.jmock.Mockery.mock(Mockery.java:121)
>>>>>> at org.jmock.Mockery.mock(Mockery.java:113)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.makeInterceptedTarget(UserSecurityAdviceTest.java:193)
>>>>>> at
>>>>>> com.sodaitsolutions.apps.service.UserSecurityAdviceTest.testUpdateUserWithUserRole(UserSecurityAdviceTest.java:175)
>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/Failing-tests-using-full-source-tp18858394s2369p18858394.html
>>>>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Failing-tests-using-full-source-tp18858394s2369p18858615.html
>>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Failing-tests-using-full-source-tp18858394s2369p19011940.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]