Hi All, On 26 Oct 2007 at 11:31, Rob Hills wrote:
> On 25 Oct 2007 at 13:20, Matt Raible wrote: > > > Are you excluding appfuse-data-common in your pom.xml? If so, please > > copy/paste that configuration into an e-mail so we can verify it's > > correct. > > Wasn't sure if you really wanted the whole pom.xml so I've just included the > relevant part of the Dependencies element (which is > at the project root - basic archetype). It looks OK to me FWIW, and I'd > kinda thought it must be right if it works OK in Eclipse - is > that a valid assumption? > > <dependencies> > <dependency> > <groupId>org.appfuse</groupId> > <artifactId>appfuse-${web.framework}</artifactId> > <version>${appfuse.version}</version> > <type>war</type> > <exclusions> > <exclusion> > <groupId>org.appfuse</groupId> > <artifactId>appfuse-data-common</artifactId> > </exclusion> > </exclusions> > </dependency> > <!-- other dependencies snipped --> > </dependencies> > > If you do want to see the whole thing, I can post it. This remains a mystery to me. I have tried deleting the org.appfuse.appfuse-data-common directory from my maven repository. My Eclipse environment continues to build and run happily. But as soon as I try and run Maven by itself, it pulls a fresh copy of appfuse-data-common from the internet and then uses that to try and build the app. I note that the project root has a .classpath file - could it be that Eclipse feeds that to Maven when it runs it? If so, is there a way of feeding that file to Maven from the commandline? > > On 10/25/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > > > > AppFuse 2.0 + Struts 2. I've been developing on a Windoze box using > > > Eclipse + Eclipse Maven plugin. I've modified the User class following > > > the > > > instructions on the AppFuse website: > > > > > > http://www.appfuse.org/display/APF/AppFuse+Core+Classes > > > > > > This is all working fine and I can build and run my app using Maven in > > > Eclipse. > > > > > > However, I'm trying to setup to work on my app on my notebook running > > > Debian. For various reasons, I won't have eclipse installed there. > > > > > > In preparation for the move, I tried building my app using Maven on the > > > command line on the windoze box. > > > > > > mvn clean compile works fine. > > > > > > However, if I try and run the app the way I do within Eclipse via: > > > > > > mvn jetty:run-war -Phsqldb > > > > > > All my tests fail - apparently because they're seeing the original appfuse > > > model classes and not my modified versions. Exactly the same thing > > > happens on my linux box. > > > > > > Is there some other configuration step involved in getting this to work > > > from > > > the console? I've looked back over the Core Classes and Environment > > > Configuration pages of the AppFuse site, but can't see anything obvious > > > that > > > I've missed. 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]