Put both projects under a common parent, then add the tar.bz2 as a
dependency of foo-integration-tests. Then change dependency:unpack to
dependency:unpack-dependencies and set the configuration to include only
this artifact (by group or artifact, type etc). Then if you run the
parent, when it gets to the integration tests, if you have done at least
mvn package, it will find the jar in the target folder.

 

From: Joshua Pollak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 07, 2008 9:43 AM
To: [email protected]
Subject: [mojo-user] Integration testing a project?

 

Hello,

 

I have a project called foo with two modules, foo-core and
foo-integration-tests. foo-core outputs a tar.bz2 as its primary
artifact. I'd like to setup foo-integration-tests to extract this
artifact and run some tests on it via junit. 

 

Currently I'm doing this by using the maven-dependency-plugin to
explicitly find the foo-core tar.bz2 snapshot artifact in the local
repository and extract it. But this requires manually running 'mvn
install' in the foo-core project.

 

I'd like to be able to do 'mvn integration-test' from the upper level
'uber-pom' directory, just called 'foo'.

 

Can anyone help?

 

 

-- 

Joshua ChaitinPollak | Software Engineer 

Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970

 

 

 

 

 

 

Reply via email to