hum, the bug could be in the surefire plugin instead of maven itself,
this is the config that adds the jar to the classpath:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
<configuration>
<additionalClasspathElements>
<element>target/test-classes/jsps.jar</element>
</additionalClasspathElements>
<forkMode>never</forkMode>
</configuration>
</plugin>
</plugins>
</build>
On Fri, Sep 18, 2009 at 9:42 AM, Martin Cooper <[email protected]> wrote:
> On Fri, Sep 18, 2009 at 7:18 AM, Wes Wannemacher <[email protected]> wrote:
>> Guys,
>>
>> It has been bugging me lately that hudson and bamboo fail, yet Musachy
>> and I can't reproduce the error. Through trial and error, I figured
>> out that if you build with maven 2.0.x the unit test in the embedded
>> JSP plugin will fail... But, if you are using 2.2.1, the test
>> succeeds. Now that I know the issue, I'm not sure how to deal with it.
>> I re-configured hudson to use maven 2.2.1, but I don't have access to
>> bamboo, nor do I know whether it is easy to bump the maven version
>> up... In addition, I am wondering if anyone has any thoughts on how to
>> approach this from a PM perspective. Should we require 2.2.1 or higher
>> to build struts2? Should I try to create a profile that detects the
>> version of maven and only includes that plugin in the build, IFF the
>> maven version doing the building is 2.2.1 or higher?
>>
>> Thoughts?
>
> To me, the answer depends a bit on whether the issue is a Maven bug
> that was resolved with the later version or something else. If it was
> a Maven bug, then I'm all for requiring the later, bug-reduced,
> version. However, if the issue is that we're configuring something
> incorrectly for the earlier version, then it seems to me we should
> just fix our config, and make sure that also works with the newer
> version of Maven.
>
> --
> Martin Cooper
>
>
>> -Wes
>>
>> --
>> Wes Wannemacher
>>
>> Head Engineer, WanTii, Inc.
>> Need Training? Struts, Spring, Maven, Tomcat...
>> Ask me for a quote!
>>
>> ---------------------------------------------------------------------
>> 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]
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]