You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Elliotte Harold <el...@metalab.unc.edu> on 2006/09/08 21:20:58 UTC
Building source bundles without deploying
Changes at Codehaus necessitated that I manually upload the recent Jaxen
beta 10 release rather than use "maven dist:deploy" like I used to.
Apparently the deploy step was crucial though. A mere "maven dist" did
not create the source archives. (It did create the binaries.) Is there
some way I can tell Maven 1.0 to make source zips and .tar.gzs without
deploying?
--
Elliotte Rusty Harold elharo@metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Building source bundles without deploying
Posted by Elliotte Harold <el...@metalab.unc.edu>.
Arnaud HERITIER wrote:
> I don't understand.
> I just have a look at the plugin. The current dist goal calls build-bin and
> build-src
> Can you try the last release of this plugin ?
> Unfortunately, this one is only compatible with maven 1.1. Can you try
> maven
> 1.1 beta 3 or the last snapshot of the RC1
> http://people.apache.org/repo/m1-snapshot-repository/maven/distributions/
>
> If you want to keep m1.0, you can create a custom goal in your
> maven.xmlwith 2 pregoals : dist:build-bin and dist:build-src.
>
In other words I add this to maven.xml:
<preGoal name="dist">
<attainGoal name="dist:build-src" />
</preGoal>
Is that correct? (This is with Maven 1.0.)
--
Elliotte Rusty Harold elharo@metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Building source bundles without deploying
Posted by Elliotte Harold <el...@metalab.unc.edu>.
I may have this figured out now. Adding this to maven.xml seems to work
and give me both source and bin archives:
<preGoal name="dist:build-bin">
<attainGoal name="dist:build-src" />
</preGoal>
--
Elliotte Rusty Harold elharo@metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Building source bundles without deploying
Posted by Elliotte Harold <el...@metalab.unc.edu>.
OK. This is weird. Using the default or the following preGoal, the
source bundles do not appear. I think they're created but then deleted:
<preGoal name="dist">
<attainGoal name="dist:build-src" />
<attainGoal name="dist:build-bin" />
</preGoal>
However if I add this to maven.xml:
<preGoal name="dist">
<attainGoal name="dist:build-bin" />
</preGoal>
Then I get the source bundles but no binaries. It appears that the two
goals dist:build-src and dist:build-bin are somehow incompatible. Any
ideas?
--
Elliotte Rusty Harold elharo@metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Building source bundles without deploying
Posted by Arnaud HERITIER <ah...@gmail.com>.
I don't understand.
I just have a look at the plugin. The current dist goal calls build-bin and
build-src
Can you try the last release of this plugin ?
Unfortunately, this one is only compatible with maven 1.1. Can you try maven
1.1 beta 3 or the last snapshot of the RC1
http://people.apache.org/repo/m1-snapshot-repository/maven/distributions/
If you want to keep m1.0, you can create a custom goal in your
maven.xmlwith 2 pregoals : dist:build-bin and dist:build-src.
Arnaud
On 9/8/06, Elliotte Harold <el...@metalab.unc.edu> wrote:
>
> Arnaud HERITIER wrote:
> > maven dist:build-bin and/or maven dist:build-src
> >
>
> OK. Thanks.
>
> Is there a way I can set up project.xml or project.properties so that
> this happens automatically, or am I just going to have to do this
> manually each time I release?
>
> --
> Elliotte Rusty Harold elharo@metalab.unc.edu
> Java I/O 2nd Edition Just Published!
> http://www.cafeaulait.org/books/javaio2/
> http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Building source bundles without deploying
Posted by Elliotte Harold <el...@metalab.unc.edu>.
Arnaud HERITIER wrote:
> maven dist:build-bin and/or maven dist:build-src
>
OK. Thanks.
Is there a way I can set up project.xml or project.properties so that
this happens automatically, or am I just going to have to do this
manually each time I release?
--
Elliotte Rusty Harold elharo@metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Building source bundles without deploying
Posted by Arnaud HERITIER <ah...@gmail.com>.
maven dist:build-bin and/or maven dist:build-src
Arnaud
On 9/8/06, Elliotte Harold <el...@metalab.unc.edu> wrote:
>
> Changes at Codehaus necessitated that I manually upload the recent Jaxen
> beta 10 release rather than use "maven dist:deploy" like I used to.
> Apparently the deploy step was crucial though. A mere "maven dist" did
> not create the source archives. (It did create the binaries.) Is there
> some way I can tell Maven 1.0 to make source zips and .tar.gzs without
> deploying?
>
> --
> Elliotte Rusty Harold elharo@metalab.unc.edu
> Java I/O 2nd Edition Just Published!
> http://www.cafeaulait.org/books/javaio2/
> http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>