Errm...I'm not sure that's true.
As Kenney says, you seem to have a project that depends on A-1.0.jar, which is odd, as I thought you said A depended on B&C. Can you clarify the dependencies for us?
If, as in your original email, A depends on B&C, then what I would have is:
--subproject-A/project.xml (1) --subproject-A/project.properties (2) --subproject-B/project.xml (3) --subproject-B/project.properties (4) --subproject-C/project.xml (5) --subproject-C/project.properties (6) --project.xml (7)
(1) should contain the snippet with the dependencies given by Christian below
(2), (4), (6) should each contain the line
maven.multiproject.type=jar
so that the multiproject plugin knows what to build in each case.
(7) should not have a dependencies section at all, as it is just a "master POM" to control the build process.
Then in the top level directory execute maven multiproject:install
This will build all your artifacts (all jars in this case) in the correct order and install them in your *local* repository (probably in ~/.maven/repository).
Here's a more detailed example for you: http://www.astrogrid.org/maven/docs/HEAD/MultiMavenProject/index.html
Nicolas Chalumeau wrote:
You need to use SNAPSHOT version to force maven to resolve the build order
Nicolas
On Apr 6, 2005 3:14 PM, Kenney Westerhof <[EMAIL PROTECTED]> wrote:
On Wed, 6 Apr 2005, Bahaa Nasrallah wrote:
Looks like you have a dependency on A somewhere. Anyway, building C which depends on B (you probably have A specified there as a dependency) won't work unless B is installed in the local repository. So run maven jar:install instead.
Thanks, i have added the version and defined the currentVersion and still have the same problem: (Attempting to downlaod A-1.0.jar ...) Just to let you know that the property "maven.jar.override = on" becuase the jar files resides on local directory. any suggestions will be welcomed...
Thanks in advance, Bahaa
On Apr 6, 2005 1:30 PM, John Taylor <[EMAIL PROTECTED]> wrote:
(or alternatively, that you didn't define a <currentVersion>)
John Taylor wrote:
Hi Bahaa - it looks like you haven't defined the <version> of the jar file that you're dependent on. Regards, John
Bahaa Nasrallah wrote:
Thanks Christian, I have problem, when i run maven i get (Attempting to downlaod A-.jar Error retrieving artifact from [http://www.ibiblio.org/maven/A/jars/A-.jars)
A.jar should be created during the build and not before it! do you have any suggestions?
Thanks in advance
On Apr 6, 2005 12:36 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,
this is easy with maven. To do that, you must define a reactor and dependencies in each project descriptor depends on the pom source of the other project source results:
A: <dependency> <groupId>${pom.groupId}</groupId> <artifactId>B</artifactId> <version>${pom.currentVersion}</version> <type>jar</type> </dependency>
<dependency> <groupId>${pom.groupId}</groupId> <artifactId>C</artifactId> <version>${pom.currentVersion}</version> <type>jar</type> </dependency>
When you use it, the reactor checks each dependency in the project descriptors (A,B,C) and determines the build order dynamicly. For better understanding of these concepts you should read:
http://www.theserverside.com/articles/article.tss?l=MavenMagic
Bye, Chrisitan
Hi, I have a main project A that depends on subprojects B and C. A needs B and C as jar dependencies to be built so B and C must be compiled and jared and then to compile A. how can i perform that order with multiproject goal? how can i refer to B and C as depndencies in the project.xml of A ? which properties to set?
thanks in advance, Bahaa
BG-PHOENICS GMBH IT-EW / DS Thurnithistr.16 30519 Hannover Telefon: 0511-987-1248
mailto: [EMAIL PROTECTED]
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- 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]
-- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]