You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mike Perham <Mi...@webifysolutions.com> on 2005/06/24 21:53:34 UTC

[m2] multiple artifacts per project

Obviously Maven is designed with the one project = one artifact rule.
How would one deal with javadoc archives for instance?  I have a bunch
of source that I want to pack into a jar but I also want to generate the
javadoc into a versioned zip file for separate distribution from the
code but I want it all to be generated from a single project.
Conceptually how should this be handled?

mike

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


Re: [m2] multiple artifacts per project

Posted by Brett Porter <br...@gmail.com>.
If you check how the source plugin is working now, that's it. When the
javadoc plugin is able to generate a JAR, that will do it to and it
will be on by default for releases.

Basically, we call the goal in the "package" phase, and it registers
itself with the project, so that when install/deploy are called it
knows to install and deploy it as well.

We need to work on it some more (currently, it calls source every time
and just does nothing on a SNAPSHOT - this all needs to be
configurable). But it works.

Cheers,
Brett

On 6/25/05, Mike Perham <Mi...@webifysolutions.com> wrote:
> Obviously Maven is designed with the one project = one artifact rule.
> How would one deal with javadoc archives for instance?  I have a bunch
> of source that I want to pack into a jar but I also want to generate the
> javadoc into a versioned zip file for separate distribution from the
> code but I want it all to be generated from a single project.
> Conceptually how should this be handled?
> 
> mike
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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