Include [artifact]-[version]-jar-with-dependencies.jar in build artifacts of a m2 project?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Include [artifact]-[version]-jar-with-dependencies.jar in build artifacts of a m2 project?

Ulli Hafner-2
Hi,

I tried to set up a simple Hudson m2 project that calls mvn assembly:assembly
to create the assemblies. As result of the job two files are created:
[artifact]-[version]-jar-with-dependencies.jar
and
[artifact]-[version].jar

Hudson propagates only the latter one to the artifacts page. Is there a way to add the
[artifact]-[version]-jar-with-dependencies.jar file to the artifact page as well so
one can download the "fat" jar?

Thanks, Ulli
--
Avaloq - essential for banking.

Avaloq Evolution AG
Allmendstrasse 140, 8027 Z├╝rich
T +41 44 488 6790, F +41 44 488 6868, http://www.avaloq.com
Dr. Ullrich Hafner mailto:[hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Include [artifact]-[version]-jar-with-dependencies.jar in build artifacts of a m2 project?

Kohsuke Kawaguchi
Administrator

This is actually more of a Maven issue.

In Maven jargon, the output of "assembly:assembly" is not attached to
the build, so Hudson doesn't pick it up (and similarly Maven won't
deploy it to the repository, etc.)

If you use "assembly:attached" it will fix this problem.


Given that this is a very confusing part of Maven, though, I think
Hudson can watch out for the assembly plugin and record them as well.


Hafner Ullrich wrote:

> Hi,
>
> I tried to set up a simple Hudson m2 project that calls mvn assembly:assembly
> to create the assemblies. As result of the job two files are created:
> [artifact]-[version]-jar-with-dependencies.jar
> and
> [artifact]-[version].jar
>
> Hudson propagates only the latter one to the artifacts page. Is there a way to add the
> [artifact]-[version]-jar-with-dependencies.jar file to the artifact page as well so
> one can download the "fat" jar?
>
> Thanks, Ulli

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Include [artifact]-[version]-jar-with-dependencies.jar in build artifacts of a m2 project?

Kohsuke Kawaguchi
Administrator
Kohsuke Kawaguchi wrote:

> This is actually more of a Maven issue.
>
> In Maven jargon, the output of "assembly:assembly" is not attached to
> the build, so Hudson doesn't pick it up (and similarly Maven won't
> deploy it to the repository, etc.)
>
> If you use "assembly:attached" it will fix this problem.
>
>
> Given that this is a very confusing part of Maven, though, I think
> Hudson can watch out for the assembly plugin and record them as well.
This is implemented in 1.232.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Include [artifact]-[version]-jar-with-dependencies.jar in build artifacts of a m2 project?

Ulli Hafner-2
Cool, thanks!

> -----Original Message-----
> From: Kohsuke Kawaguchi [mailto:[hidden email]]
> Sent: Donnerstag, 3. Juli 2008 03:56
> To: [hidden email]
> Subject: Re: Include
> [artifact]-[version]-jar-with-dependencies.jar in build
> artifacts of a m2 project?
>
> Kohsuke Kawaguchi wrote:
> > This is actually more of a Maven issue.
> >
> > In Maven jargon, the output of "assembly:assembly" is not
> attached to
> > the build, so Hudson doesn't pick it up (and similarly Maven won't
> > deploy it to the repository, etc.)
> >
> > If you use "assembly:attached" it will fix this problem.
> >
> >
> > Given that this is a very confusing part of Maven, though, I think
> > Hudson can watch out for the assembly plugin and record
> them as well.
>
> This is implemented in 1.232.
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems                   [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]