Ok - where do I put the maven-assebly-plugin?

is it:
a - at the top level pom
b - one of the child projects
c - in a new project that I create just for assembly
d - every sub-project pom

If I put it at the top level I get the error
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-assembly-plugin:2.1
   (found static expression: 'jar-with-dependencies' which may act as a
default value).
Cause: Cannot assign configuration entry 'descriptorRefs' to 'class [
Ljava.lang.String;' from 'jar-with-depend
encies', which is of type class java.lang.String

if I put it in the main child project I get a jar - but only classes from
that sub-project

If I create a separate project with dependecies to all the other sub
projects I get a jar with nothing


While experimenting I frequently get :

[INFO] [assembly:assembly]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] No assembly descriptors found.


Maven has done a wonderful job of making the complex things easy,  However
in doing this, they seemed to have made the simple things complex.

I would just use ant, but our direction is to have all projects with the
same basic structure and build methods (which is a good thing)

thx for any help




On 7/5/06, Henry S. Isidro <[EMAIL PROTECTED]> wrote:

On Thursday, July 6, 2006 03:42, Ed Ross wrote:
> This really shouldn't be this hard.
>
>
> I have several (5) sub-projects which is following the maven "best
> practices" (I think).
>
> I just want to product a SINGLE jar, not 5 little jars.
>
> I've been trying to understand the assembly stuff, but can not seem to
get
> all of the projects included in the results.
>
> this is a simple little project that took several hours to code, but is
> taking many hours to try an build/deploy.
>
> yes - I'm new at mave,but this seems like it should be a common task.
>
> thanks for any help

You're on the right track with the assembly plugin. Post your actual
problems
with the assembly so that we could help.

- Henry

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




--
Ed Ross
[EMAIL PROTECTED]

Reply via email to