Unfortunately, I don't know what the problem could be - I've only ever done modular projects with nested modules rather than putting them in the same directory.
You could always use IDEA - it works with Maven out-of-the-box. ;-) Matt On 11/5/07, rfusaro <[EMAIL PROTECTED]> wrote: > > I get this from the command line. I want to use eclipse but I'm trying to get > it to work from the command line first. > > Thanks Rick > > mraible wrote: > > > > Do you get this when running from the command line or w/in Eclipse? If > > it's w/in Eclipse, it's probably because your source paths are setup > > incorrectly. > > > > Matt > > > > On 11/2/07, rfusaro <[EMAIL PROTECTED]> wrote: > >> > >> Sorry I should have included this: > >> > >> org.springframework.beans.factory.BeanDefinitionStoreException: Could not > >> resolve bean definition resource pattern > >> [classpath:**/applicationContext*.xml]; nested exception is > >> java.io.FileNotFoundException: class path resource [] cannot be resolved > >> to > >> URL because it does not exist > >> Caused by: java.io.FileNotFoundException: class path resource [] cannot > >> be > >> resolved to URL because it does not exist > >> > >> I am confused on where it references the class path above. I thought it > >> be > >> in the same location relative to the core project. > >> > >> Rick > >> > >> > >> > >> > >> mraible wrote: > >> > > >> > What are the errors from your tests? Look in target/surefire-reports > >> > for *.txt files or use "mvn test -Dsurefire.useFile=false". > >> > > >> > Matt > >> > > >> > On 11/2/07, rfusaro <[EMAIL PROTECTED]> wrote: > >> >> > >> >> I have changed the directory structure of the archetype > >> >> appfuse-modular-jsf > >> >> so that I have 3 projects to bring into eclipse for doing maven > >> builds. I > >> >> have created a parent pom project at the same directory level as the > >> core > >> >> and the web projects. Now the hibernate and dao test report errors. > >> >> > >> >> In the parent pom I changed the modules section to reflect that they > >> were > >> >> on > >> >> the same directory level. > >> >> <modules> > >> >> <module>../kdoccore</module> > >> >> <module>../contactsweb</module> > >> >> </modules> > >> >> > >> >> In the web and core poms I changed it to the following: > >> >> <parent> > >> >> <groupId>gov.ks.doc.contacts</groupId> > >> >> <artifactId>contactsbuild</artifactId> > >> >> <version>1.0-SNAPSHOT</version> > >> >> <relativePath>../contactsbuild/pom.xml</relativePath> > >> >> </parent> > >> >> > >> >> When I run mvn package or test the following tests each report an > >> error. > >> >> > >> >> Tests in error: > >> >> > >> >> > >> testColumnMapping(gov.ks.doc.contacts.dao.hibernate.HibernateConfigurationTest) > >> >> testGetRoles(gov.ks.doc.contacts.dao.LookupDaoTest) > >> >> testGetUserInvalid(gov.ks.doc.contacts.dao.UserDaoTest) > >> >> testGetUser(gov.ks.doc.contacts.dao.UserDaoTest) > >> >> testUpdateUser(gov.ks.doc.contacts.dao.UserDaoTest) > >> >> testAddUserRole(gov.ks.doc.contacts.dao.UserDaoTest) > >> >> testAddAndRemoveUser(gov.ks.doc.contacts.dao.UserDaoTest) > >> >> testUserExists(gov.ks.doc.contacts.dao.UserDaoTest) > >> >> testUserNotExists(gov.ks.doc.contacts.dao.UserDaoTest) > >> >> testCRUD(gov.ks.doc.contacts.dao.UniversalDaoTest) > >> >> testGetRoleInvalid(gov.ks.doc.contacts.dao.RoleDaoTest) > >> >> testGetRole(gov.ks.doc.contacts.dao.RoleDaoTest) > >> >> testUpdateRole(gov.ks.doc.contacts.dao.RoleDaoTest) > >> >> testAddAndRemoveRole(gov.ks.doc.contacts.dao.RoleDaoTest) > >> >> > >> >> When I put the core and web projects back under the parent pom > >> directory > >> >> the > >> >> tests work. > >> >> > >> >> I want to be able to deploy the web project to tomcat from eclipse > >> using > >> >> maven. It's my understanding that eclipse can not correctly identify a > >> >> sub > >> >> project as a tomcat project. > >> >> > >> >> What do I need to do so that these tests work. The following is an > >> >> example > >> >> of the messages maven prints out for that test. > >> >> > >> >> Running gov.ks.doc.contacts.dao.hibernate.HibernateConfigurationTest > >> >> INFO - AbstractSingleSpringContextTests.loadContextLocations(177) | > >> >> Loading > >> >> context for locations: > >> >> > >> classpath:/applicationContext-resources.xml,classpath:/applicationContext-dao.xml,classpath*:/applicationContext.xml,classpath:**/application > >> >> Context*.xml > >> >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.328 > >> sec > >> >> <<< FAILURE! > >> >> > >> >> Thanks in advance for any help .... Rick > >> >> -- > >> >> View this message in context: > >> >> > >> http://www.nabble.com/Archetype-appfuse-modular-jsf---test-HibernateConfigurationTest-reports-error-tf4737408s2369.html#a13547547 > >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> >> For additional commands, e-mail: [EMAIL PROTECTED] > >> >> > >> >> > >> > > >> > > >> > -- > >> > http://raibledesigns.com > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > For additional commands, e-mail: [EMAIL PROTECTED] > >> > > >> > > >> > > >> > >> -- > >> > >> View this message in context: > >> http://www.nabble.com/Archetype-appfuse-modular-jsf---test-HibernateConfigurationTest-reports-error-tf4737408s2369.html#a13553772 > >> > >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > http://raibledesigns.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Archetype-appfuse-modular-jsf---test-HibernateConfigurationTest-reports-error-tf4737408s2369.html#a13587661 > > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
