Before my changes, they fail for me on maven 1, when instrumented for
jcoverage (which is the case for the 'dist' target) and maven 2 when
run normally (mvn install).
Maven 1
-------
...
...
[junit] Running org.apache.struts.action.TestActionRedirect
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed:
0.033 sec
[junit] Running org.apache.struts.action.TestActionMessage
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed:
0.004 sec
[junit] Running org.apache.struts.action.TestActionServlet
Missing type value for noTypeForm form bean
Missing type value for name form property
Unable to create an instance of
org.apache.struts.action.TestActionServlet$CustomFormBeanConfigArg
java.lang.InstantiationException:
org.apache.struts.action.TestActionServlet$CustomFormBeanConfigArg
at java.lang.Class.newInstance0(Class.java:293)
at java.lang.Class.newInstance(Class.java:261)
at org.apache.struts.util.RequestUtils.applicationInstance
(RequestUtils.java:163)
at org.apache.struts.util.RequestUtils.applicationInstance
(RequestUtils.java:138)
at
org.apache.struts.action.ActionServlet.processFormBeanConfigClass
(ActionServlet.java:1021)
at
org.apache.struts.action.TestActionServlet.testProcessFormBeanConfigClas
sError(TestActionServlet.java:443)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(noise)
[junit] Tests run: 34, Failures: 0, Errors: 0, Time elapsed: 0.308 sec
...
...
Passes ok, however it fails when running the tests for the jcoverage
reports.
Maven 2
-------
...
...
[surefire] Running org.apache.struts.action.TestActionMessages
[surefire] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.012 sec
[surefire] Running org.apache.struts.action.TestActionRedirect
[surefire] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.022 sec
[surefire] Running org.apache.struts.action.TestActionServlet
Apr 5, 2006 3:38:51 PM org.apache.struts.action.ActionServlet
handleValueRequiredException
SEVERE: Missing type value for noTypeForm form bean
Apr 5, 2006 3:38:51 PM org.apache.struts.action.ActionServlet
handleValueRequiredException
SEVERE: Missing type value for name form property
Apr 5, 2006 3:38:51 PM org.apache.struts.action.ActionServlet
handleCreationException
SEVERE: Unable to create an instance of
org.apache.struts.action.TestActionServlet$CustomFormBeanConfigArg
java.lang.InstantiationException:
org.apache.struts.action.TestActionServlet$CustomFormBeanConfigArg
at java.lang.Class.newInstance0(Class.java:293)
at java.lang.Class.newInstance(Class.java:261)
at org.apache.struts.util.RequestUtils.applicationInstance
(RequestUtils.java:163)
at org.apache.struts.util.RequestUtils.applicationInstance
(RequestUtils.java:138)
at
org.apache.struts.action.ActionServlet.processFormBeanConfigClass
(ActionServlet.java:1022)
at
org.apache.struts.action.TestActionServlet.testProcessFormBeanConfigClas
sError(TestActionServlet.java:443)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
(more noise)
...
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode
(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[surefire] Tests run: 34, Failures: 1, Errors: 0, Time elapsed: 0.224
sec <<<<<<<< FAILURE !!
[surefire] Running org.apache.struts.action.TestDynaActionForm
[surefire] Tests run: 46, Failures: 0, Errors: 0, Time elapsed: 0.08 sec
[surefire] Running org.apache.struts.action.TestDynaActionFormClass
[surefire] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.009 sec
Notice the console outputs "FAILURE !!", which make it pretty easy to
spot ;)
Not to sound too negative, but if I have to bust out the diff command
on a list of my maven plugin versions to find why it fails for me and
not for other people, that's the tipping point for me to rip out
Maven and stick in Ivy.
Your thoughts?
--
James Mitchell
On Apr 5, 2006, at 9:04 PM, Wendy Smoak wrote:
On 4/5/06, Don Brown <[EMAIL PROTECTED]> wrote:
Weird, so your Maven thinks that the tests fail? The tests pass
for me, for the core module anyways.
The tests don't fail for me, either. They're just noisy with stack
traces.
Don, 'maven nightly' continues to work fine here. I deleted
org.apache.struts.action and org.apache.struts.tiles from my local m1
repo to make sure it was really building and/or retrieving everything.
I put up a list of all my installed plugins. You might want to
compare versions and consider upgrading if you're using older versions
of any of them.
http://wiki.wsmoak.net/cgi-bin/wiki.pl?StrutsBuild
Does running maven with -X on the command line show anything
interesting?
--
Wendy
---------------------------------------------------------------------
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]