Hi All, Do you have an AppFuse2 + Struts web application with modified core classes? Could you check something quickly for me? See below.
On 22 Nov 2007 at 13:46, Rob Hills wrote: > I've been leaving this issue as it had less priority than others on my plate, > but > it's now been elevated. I've still not been able to resolve my problem of > being able to build this app on my development machine within Eclipse, but > not being able to build it from the console on the same machine, or from any > other machine. > > The crux of the problem is that while the Eclipse-maven plugin builds my > application happily, when I run maven from a command-line (either on the > original windows box or another linux box) all my tests fail because the > build > process is including the appfuse-data-common jars and ignoring my > modified core classes. > > I'd followed the tutorial on core class modifications and had originally made > some mistakes in my POM configuration, but I believe I've fixed all those, > but it hasn't fixed my problem. I've just discovered something that may shed further light on this. Looking inside the WAR file that is created by running maven from the console, I note that the WEB-INF/lib directory contains appfuse-data-common.jar, which I'd assumed was the cause of my problem. However, I note that the WAR file generated by the eclipse maven plugin also has this appfuse-data-common.jar file! This war file works in Tomcat and also in Jetty inside Eclipse. So my problem seems to be that my "exclude" for this jar is not working and it's been simply hidden by some subtle difference in classpath order between command-line Maven and the eclipse-maven plugin. Matt believes (from what he's seen) that I have my <exclude> tag right so could someone else who has an application which is using modified core classes please take a look inside their application's WAR file and tell me if they have the appfuse-data-common.jar in their WEB-INF/lib directory? If you do, then this may be a bug. If not, then I'd love to see the contents of your main (ie root-level) <dependencies> tag to see what you're doing right and I'm doing wrong! TIA, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-357 Fax: +61 (8) 9529-2137 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]