I have a multi module project like this:
The A.I.OXM module contains the following:
If I build the A.I.OXM module by going into it and issuing "mvn clean install", the codes are generated correctly and the jar file installed to local maven repo contains the generated sources.
But if I go into module A and do a "mvn clean install --projects=A.I/A.I.COMMON --also-make" the A.I.OXM module is not built properly. The xsd schema file available in the specified directory is not picked up.
Also doing a "mvn clean install" in the A module has the same effect.
A solution to this problem seems to be to remove the <directory> option and use the default location.
When I did this, all three ways of building the module were successful.
The problem might be mostly with documentation that used <directory>src/something</directory> as an example. Should it have some maven property references too?
My environment is:
Apache Maven 3.0.2 (r1056850; 2011-01-09 02:58:10+0200)
Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
Java home: C:\java\jdk6u23\jre
Default locale: fi_FI, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"