You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by matthewadams <ma...@yahoo.com> on 2007/04/20 22:25:02 UTC

[M1] multiproject basedir not changing in subprojects?

Hi all,

I've got some unit tests in a subproject of a multiproject that run fine
when building from the subproject's basedir, but when the subproject is
built as part of the multiproject build (that is, maven is launched in the
parent directory), the basedir is that of the parent directory, and my unit
tests fail to find the resources they need to test (some xml files).

How does Maven 1 handle setting the basedir property in subprojects during a
multiproject build?  It seems inutitive that the basedir property should be
set appropriately for each subproject, but that's not happening.

TIA,
Matthew

-- 
View this message in context: http://www.nabble.com/-M1--multiproject-basedir-not-changing-in-subprojects--tf3620470s177.html#a10109703
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [M1] multiproject basedir not changing in subprojects?

Posted by Arnaud HERITIER <ah...@gmail.com>.
In theory that is the case.
How is defined your build part in your POM ?
What is your version of maven and its plugins ?

Arnaud

On 20/04/07, matthewadams <ma...@yahoo.com> wrote:
>
>
> Hi all,
>
> I've got some unit tests in a subproject of a multiproject that run fine
> when building from the subproject's basedir, but when the subproject is
> built as part of the multiproject build (that is, maven is launched in the
> parent directory), the basedir is that of the parent directory, and my
> unit
> tests fail to find the resources they need to test (some xml files).
>
> How does Maven 1 handle setting the basedir property in subprojects during
> a
> multiproject build?  It seems inutitive that the basedir property should
> be
> set appropriately for each subproject, but that's not happening.
>
> TIA,
> Matthew
>
> --
> View this message in context:
> http://www.nabble.com/-M1--multiproject-basedir-not-changing-in-subprojects--tf3620470s177.html#a10109703
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>