You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Morgovsky, Alexander (US - Glen Mills)" <am...@deloitte.com> on 2006/09/12 23:53:22 UTC

Complex Assembly structure

I have a complex Assembly structure and I did the research on the
assembly plug-in and I tried to define my own assembly descriptor file.
However, I think the level of nesting here is interesting and I can't
proceed on the lowest level.  I would sincerely appreciate any help
provided.  Here is the structure.
ProjectA
	-ProjectB
		-projectC
			-src
			-dest
		-projectD
			-src
			-dest
		-target
	-ProjectE
		-projectF
			-src
			-dest
		-projectG
			-src
			-dest
		-projectH
			-src
			-dest
		-target
	-target
projectC should produce a c.zip inside its dest, projectD should produce
a d.zip inside its dest, f, g, and h the same way.  Then, b should
produce a b.jar inside its target which is composd of c.zip and d.zip,
and e should produce an e.jar inside its target with f.jar, g.jar, and
h.jar.  Lastly, project A should produce a.tar which consists of b.jar
and e.jar.  I tried to create a master script in A with modules for b
and e and then master scripts in B and E with modules of c,d and f,g,h,
respectively.  However, C, D, and F,G,H don't have targets, so I wasn't
sure how to proceed at that level.  Thanks for reading through this. 


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]

Re: Complex Assembly structure

Posted by Barrie Treloar <ba...@gmail.com>.
> and e.jar.  I tried to create a master script in A with modules for b
> and e and then master scripts in B and E with modules of c,d and f,g,h,
> respectively.  However, C, D, and F,G,H don't have targets, so I wasn't
> sure how to proceed at that level.  Thanks for reading through this.

You should be able to do what you are suggesting.

I don't use moduleSets, I have always used dependencySets. I'm not
saying you can't get moduleSets to work, it is just I have not got my
head around them and dependencySets have worked just fine for me so
far.

Check out http://www.nabble.com/forum/ViewPost.jtp?post=5936062&framed=y

This should explain enough to get you going.

You will probably find that because your parent projects are packaged
as "pom"s (as they must be in order to have modules) that you will
need to manually bind the assembly plugin to a phase.  Remember you
will need to use the "single" goal as both attached and assembly dont
work in a reactor environment.

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