> add it as a dependency for your project How to get it? Generally, I can add jar/war/ear/pom as dependency, but config file may be various.
a cup of Java, cheers! Sha Jiang Emmanuel Venisse wrote: > > You can create a new module that contains your shared config files and add > it as a dependency for > your project, with test scope if your config files are used only for tests > > Emmanuel > > jiangshachina a écrit : >> Hi guys, >> I'm using Spring, Struts and Hibernate, and have to deal with so many >> configuration or resource files. >> Then some troubles come out. >> >> Assuming, there is two projects app and web. >> Project app focuses on Simple Application; Project web focuses on Web >> Application. >> Generally, the configuration files(e.g. applicationContext.xml) are in >> web >> project. >> Now, a JUnit program in app project want to test an application program >> in >> the same project. >> But the application program depends on applicationContext.xml. >> JUnit program doesn't touch the file, because they are in different >> projects. >> How to solve the problem(excepts for copying the file to app project >> directly)? >> >> In fact, we must encounter too many similar cases in real-world projects. >> >> a cup of Java, cheers! >> Sha Jiang > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/JUnit-Test-among-multi-projects--tf2635154s177.html#a7369812 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
