Hi Jeroen,

I have a similar problem here. It appears only if I have a submodule A referencing another submodule B and try "mvn install" on parent. The submodule A cannot find the classes from B. If I do a "mvn install" on submodule A, it works.

I tried "mvn compile" on parent, as you described, and surprisingly it works.

Everything works fine with Maven 2.0.5.

Cheers,

Henrique

Jeroen Leenarts wrote:
I'm not sure how to debug this, but this is what happened after having
upgraded to Maven 2.0.6. I have checked my dependency management sections as
described in the release notes. No conflicts there.

1. Get a fresh code base.
2. When I run "mvn install" the build fails during the compile phase of a
project.
3. While running "mvn compile" always succeeds on the same set of source
files.
4. Running "mvn install" again results in a successful build.
5. Running "mvn clean install" again results in a failure during the compile
phase.

Seems like a problem I should be capable of narrowing down, right? Well, the
thing is, the compile can fail and abort maven 2 at several different
projects.
I've tried running with the -X option and diff-ed the relevant sections of
output. Nothing there.

Anybody got any clues what could cause such behavior? Or even how I might
debug this?
In my opinion running "mvn install" or "mvn compile" followed by "mvn
install" should make no difference. Install requires passing the install
phase.

Regards,
Jeroen


--

\o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda
 |  Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED]
/ \ http://www.moleque.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to