This project your describing sounds like a proof-of-concept (either that, or
names have been changed to protect the innocent...)

Would it be possible for you to attach your sample setup in zip format to a
new JIRA issue under:

http://jira.codehaus.org/browse/MASSEMBLY

then point me at it, so I can try to replicate/explore the problem here? The
assembly plugin is such a complex beast (both in configuration and
implementation) that it's hard to know exactly what's going on through these
sorts of discussions.

Thanks,

-john

On 5/23/07, Rodrigo Madera <[EMAIL PROTECTED]> wrote:

Actually the package phase is indeed executed first, but not bound to
the package phase.

I can rephrase the whole problem as follows:

"The Assembly plugin won't find and artifact that was <include>d on
the assembly because somehow the logic it uses to find the generated
JAR is not matching."

So:

<include>com.test.peanuts:charlie</include>

Should look up for: charlie/target/charlie-1.0-SNAPSHOT.jar.

The JAR is there. Only the plugin doesn't seem to like it.

Maven is all about conventions and not configuration, but if the
Assembly plugin fails to even locate a standard named artifact, how
can I override it and tell it what the name of the output JAR is?

Thanks for your help,
Rodrigo Madera


On 5/23/07, John Casey <[EMAIL PROTECTED]> wrote:
> I'm guessing you're running the assembly either as a standalone goal, or
> somewhere before the package phase of the lifecycle. Am I right?
>
> IIRC, the error you're seeing stems from the decision not to make the
> assembly:assembly goal @execute phase="packaging" but I can't remember
for
> sure. If you want to fix it using assembly;assembly, try:
>
> mvn package assembly:assembly
>
> Otherwise, you might want to try binding the assembly into the
lifecycle,
> after the package phase using the assembly:single mojo, then call:
>
> mvn <phase>
>
> HTH,
>
> -john
>
> On 5/23/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Could you provide more info?
> > Can you post more snippets from the assembly xml file and from your
pom?
> >
> > Thanks,
> > Deng
> >
> > Rodrigo Madera wrote:
> > > Hello all,
> > >
> > > I have been struggling with the maven-assembly-plugin because of a
> > > problem that seems to have been around for some time (or so I
> > > understood).
> > >
> > > My project structure is:
> > >
> > > - peanuts<pom>
> > >        - charlie<jar>
> > >        - snoopy<jar>
> > >        - linus<pom>
> > >                - linus-core<jar>
> > >                - linus-blanket<jar>
> > >
> > >
> > > The problem is that the include on the peanuts-assembly.xml is not
> > > being recognized:
> > >
> > > peanuts-assembly.xml:
> > > ...
> > >        <include>com.test.peanuts:charlie</include>
> > > ...
> > >
> > >
> > > Gives me this:
> > > $ mvn package
> > > [INFO]
> > >
------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
------------------------------------------------------------------------
> > > [INFO] Failed to create assembly: Artifact:
> > > com.test.peanuts:charlie:jar:1.0-SNAPSHOT (included by module) does
> > > not have an artifact with a file. Please ensure the package phase is
> > > run before the assembly is generated.
> > >
> > > Does anybody actually know what is going on?
> > >
> > > I already memorized the entire documentation, so you guys are my
only
> > > hope!!
> > >
> > > Thanks,
> > > Rodrigo Madera
> > >
> > >
---------------------------------------------------------------------
> > > 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]
> >
> >
>
>
> --
> John Casey
> ---
> Maven Developer (http://maven.apache.org)
> ---
> Blog: http://www.ejlife.net/blogs/buildchimp
>

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




--
John Casey
---
Maven Developer (http://maven.apache.org)
---
Blog: http://www.ejlife.net/blogs/buildchimp

Reply via email to