You need to run "mvn install" to put the artifacts in your local cache from MyProj-Core. Then you can depend on it in MyProj-Integration-Tests (just like any other dependency) and it will pull the file out of the cache and use it during its own execution ie mvn test etc.
As for calling "mvn compile" from a subproject and expecting that it will go build the parent and all modules, that's just not how Maven works. You can build from the top (parent) and get this kind of build, but not from modules themselves. Wayne On 9/4/07, Joshua ChaitinPollak <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to setup a project like this: > > MyProj/ > +-------pom.xml > +-------MyProj-Core/pom.xml > +-------MyProj-Integration-Tests/pom.xml > > MyProj-Core and MyProj-Integration-Tests are both modules of and > MyProj. What I would like to do is setup MyProj-Integration-Tests so > that it will take the output of 'mvn package' from MyProj-Core, > unarchive it (install it) and run some tests on it. > > Effectively, I'd like to create some tests that exercise our project > the same way they would be used when installed on a machine. > > Is there a way to do this? > > At a basic starting point, even with MyProj-Core being a dependancy > of MyProj-Integration-Tests, running 'mvn compile' in MyProj- > Integration-Tests doesn't trigger a build in MyProj-Core. > > > -- > Joshua ChaitinPollak > Software Engineer > Kiva Systems > > > > --------------------------------------------------------------------- > 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]
