You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Roland Bali <ro...@gmail.com> on 2006/02/16 16:12:24 UTC
[m2] Convention for distributing sources?
Hi,
I'm wondering if there is a convention for distributing the source code of a
Maven build project. The source-plugin currently JARs everything in the
source folder. These sources can be hard to build without the complete
folder structure and a valid POM.
Is the convention to simply JAR/ZIP the project folder to distribute a
project that is simple to build for anyone using Maven?
Kind regards,
Roland
Re: [m2] Convention for distributing sources?
Posted by Roland Bali <ro...@gmail.com>.
Thanks, that plugin allows me to include more stuff than the src-plugin
does.
But I have a "follow"-up problem when using that plugin. It triggers the
package-phase to which I have "attached" a Ant script. That Ant script needs
to be executed after I have assembled my source and binaries.
Why does the assembly plugin trigger the packaging phase and how come
packaging comes before assembly?
/Roland
On 2/16/06, Stephen Duncan <st...@gmail.com> wrote:
>
> Yeah, I think typically you would use the assembly plugin to create a
> src bundle (zip, tar.gz, etc.) using the prebuilt src descriptor, or a
> custom one if necessary:
>
> http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
>
> -Stephen
>
> On 2/16/06, Roland Bali <ro...@gmail.com> wrote:
> > Hi,
> >
> > I'm wondering if there is a convention for distributing the source code
> of a
> > Maven build project. The source-plugin currently JARs everything in the
> > source folder. These sources can be hard to build without the complete
> > folder structure and a valid POM.
> >
> > Is the convention to simply JAR/ZIP the project folder to distribute a
> > project that is simple to build for anyone using Maven?
> >
> > Kind regards,
> > Roland
> >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: [m2] Convention for distributing sources?
Posted by Stephen Duncan <st...@gmail.com>.
Yeah, I think typically you would use the assembly plugin to create a
src bundle (zip, tar.gz, etc.) using the prebuilt src descriptor, or a
custom one if necessary:
http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
-Stephen
On 2/16/06, Roland Bali <ro...@gmail.com> wrote:
> Hi,
>
> I'm wondering if there is a convention for distributing the source code of a
> Maven build project. The source-plugin currently JARs everything in the
> source folder. These sources can be hard to build without the complete
> folder structure and a valid POM.
>
> Is the convention to simply JAR/ZIP the project folder to distribute a
> project that is simple to build for anyone using Maven?
>
> Kind regards,
> Roland
>
>
--
Stephen Duncan Jr
www.stephenduncanjr.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org