Re: fetching a tar.gz URL / dependency via HTTP during a build?

2014-11-09 Thread Baptiste Mathus
Not sure it would do for your use case, but you might want to try the
maven-remote-resources-plugin. You'd have the cacheing behavior standard
with it.

Cheers
Le 8 nov. 2014 20:38, "Karl Heinz Marbaise"  a écrit :

> Hi Kevin,
>
>
> On 11/8/14 8:19 PM, Kevin Burton wrote:
>
>> Nice.. it works actually.  the only problem is that it downloads the
>> file every time and it’s 180MB… there’s no way to skip it if the file
>> already exists.  hm..
>>
>
>
> so this sounds like an idea for improvement
>
> Kind regards
> Karl Heinz Marbaise
>
>
>
>
>> On Sat, Nov 8, 2014 at 11:00 AM, Karl Heinz Marbaise > > wrote:
>>
>> Hi Kevin,
>>
>> to download a an file from somewhere you could use the
>> wagon-maven-plugin like this:
>>
>> 
>>org.codehaus.mojo
>>wagon-maven-__plugin
>>1.0-beta-5
>>
>>  
>>download-test-data
>>prepare-package
>>
>>  download-single
>>
>>
>>  http://archive.apache.__org/dist/abdera/1.1.2/
>> 
>>  apache-abdera-1.1.2-__src.tar.gz
>>  ${project.build.__directory}/environment/qa
>>
>>  
>>
>> 
>>
>>
>>
>> For unpacking of the tar.gz you
>> On 11/8/14 7:40 PM, Kevin Burton wrote:
>>
>> I’m trying to build .debs using jdeb and maven for various
>> projects.
>>
>> For example, there is no .deb for spark.  So I’m just taking the
>> tar.gz and
>> making a deb that installs to /usr/share/apache-spark.
>>
>> The problem is I don’t want to put the full binary into git as
>> it’s about
>> 200MB.
>>
>> I’d rather have the build fetch the tar.gz directly from Apache
>> during the
>> build, untar it, then build the deb from the output.
>>
>> Is there and way to do this or should I just write a bash script
>> which uses
>> wget to fetch the URL?
>>
>>
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: fetching a tar.gz URL / dependency via HTTP during a build?

2014-11-08 Thread Karl Heinz Marbaise

Hi Kevin,


On 11/8/14 8:19 PM, Kevin Burton wrote:

Nice.. it works actually.  the only problem is that it downloads the
file every time and it’s 180MB… there’s no way to skip it if the file
already exists.  hm..



so this sounds like an idea for improvement

Kind regards
Karl Heinz Marbaise





On Sat, Nov 8, 2014 at 11:00 AM, Karl Heinz Marbaise mailto:khmarba...@gmx.de>> wrote:

Hi Kevin,

to download a an file from somewhere you could use the
wagon-maven-plugin like this:


   org.codehaus.mojo
   wagon-maven-__plugin
   1.0-beta-5
   
 
   download-test-data
   prepare-package
   
 download-single
   
   
 http://archive.apache.__org/dist/abdera/1.1.2/

 apache-abdera-1.1.2-__src.tar.gz
 ${project.build.__directory}/environment/qa
   
 
   




For unpacking of the tar.gz you
On 11/8/14 7:40 PM, Kevin Burton wrote:

I’m trying to build .debs using jdeb and maven for various projects.

For example, there is no .deb for spark.  So I’m just taking the
tar.gz and
making a deb that installs to /usr/share/apache-spark.

The problem is I don’t want to put the full binary into git as
it’s about
200MB.

I’d rather have the build fetch the tar.gz directly from Apache
during the
build, untar it, then build the deb from the output.

Is there and way to do this or should I just write a bash script
which uses
wget to fetch the URL?




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



Re: fetching a tar.gz URL / dependency via HTTP during a build?

2014-11-08 Thread Kevin Burton
Nice.. it works actually.  the only problem is that it downloads the file
every time and it’s 180MB… there’s no way to skip it if the file already
exists.  hm..

On Sat, Nov 8, 2014 at 11:00 AM, Karl Heinz Marbaise 
wrote:

> Hi Kevin,
>
> to download a an file from somewhere you could use the wagon-maven-plugin
> like this:
>
> 
>   org.codehaus.mojo
>   wagon-maven-plugin
>   1.0-beta-5
>   
> 
>   download-test-data
>   prepare-package
>   
> download-single
>   
>   
> http://archive.apache.org/dist/abdera/1.1.2/
> apache-abdera-1.1.2-src.tar.gz
> ${project.build.directory}/environment/qa
>   
> 
>   
> 
>
>
>
> For unpacking of the tar.gz you
> On 11/8/14 7:40 PM, Kevin Burton wrote:
>
>> I’m trying to build .debs using jdeb and maven for various projects.
>>
>> For example, there is no .deb for spark.  So I’m just taking the tar.gz
>> and
>> making a deb that installs to /usr/share/apache-spark.
>>
>> The problem is I don’t want to put the full binary into git as it’s about
>> 200MB.
>>
>> I’d rather have the build fetch the tar.gz directly from Apache during the
>> build, untar it, then build the deb from the output.
>>
>> Is there and way to do this or should I just write a bash script which
>> uses
>> wget to fetch the URL?
>>
>>
> Kind regards
> Karl Heinz Marbaise
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile




Re: fetching a tar.gz URL / dependency via HTTP during a build?

2014-11-08 Thread Karl Heinz Marbaise

Hi Kevin,

to download a an file from somewhere you could use the 
wagon-maven-plugin like this:



  org.codehaus.mojo
  wagon-maven-plugin
  1.0-beta-5
  

  download-test-data
  prepare-package
  
download-single
  
  
http://archive.apache.org/dist/abdera/1.1.2/
apache-abdera-1.1.2-src.tar.gz
${project.build.directory}/environment/qa
  

  




For unpacking of the tar.gz you
On 11/8/14 7:40 PM, Kevin Burton wrote:

I’m trying to build .debs using jdeb and maven for various projects.

For example, there is no .deb for spark.  So I’m just taking the tar.gz and
making a deb that installs to /usr/share/apache-spark.

The problem is I don’t want to put the full binary into git as it’s about
200MB.

I’d rather have the build fetch the tar.gz directly from Apache during the
build, untar it, then build the deb from the output.

Is there and way to do this or should I just write a bash script which uses
wget to fetch the URL?



Kind regards
Karl Heinz Marbaise

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



Re: fetching a tar.gz URL / dependency via HTTP during a build?

2014-11-08 Thread Kevin Burton
oh .. gotcha.  So I would/could take the tar.gz and put it in a maven
repo.  I don’t think there is one for the tar.gzs though.



On Sat, Nov 8, 2014 at 10:45 AM, Bernd  wrote:

> You could use the dependency-plugin with copy dependencies to get the
> binary artifact from a maven repo (if there is one).
> Am 08.11.2014 19:43 schrieb "Kevin Burton" :
>
> > I’m trying to build .debs using jdeb and maven for various projects.
> >
> > For example, there is no .deb for spark.  So I’m just taking the tar.gz
> and
> > making a deb that installs to /usr/share/apache-spark.
> >
> > The problem is I don’t want to put the full binary into git as it’s about
> > 200MB.
> >
> > I’d rather have the build fetch the tar.gz directly from Apache during
> the
> > build, untar it, then build the deb from the output.
> >
> > Is there and way to do this or should I just write a bash script which
> uses
> > wget to fetch the URL?
> >
> > --
> >
> > Founder/CEO Spinn3r.com
> > Location: *San Francisco, CA*
> > blog: http://burtonator.wordpress.com
> > … or check out my Google+ profile
> > 
> > 
> >
>



-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile




Re: fetching a tar.gz URL / dependency via HTTP during a build?

2014-11-08 Thread Bernd
You could use the dependency-plugin with copy dependencies to get the
binary artifact from a maven repo (if there is one).
Am 08.11.2014 19:43 schrieb "Kevin Burton" :

> I’m trying to build .debs using jdeb and maven for various projects.
>
> For example, there is no .deb for spark.  So I’m just taking the tar.gz and
> making a deb that installs to /usr/share/apache-spark.
>
> The problem is I don’t want to put the full binary into git as it’s about
> 200MB.
>
> I’d rather have the build fetch the tar.gz directly from Apache during the
> build, untar it, then build the deb from the output.
>
> Is there and way to do this or should I just write a bash script which uses
> wget to fetch the URL?
>
> --
>
> Founder/CEO Spinn3r.com
> Location: *San Francisco, CA*
> blog: http://burtonator.wordpress.com
> … or check out my Google+ profile
> 
> 
>


fetching a tar.gz URL / dependency via HTTP during a build?

2014-11-08 Thread Kevin Burton
I’m trying to build .debs using jdeb and maven for various projects.

For example, there is no .deb for spark.  So I’m just taking the tar.gz and
making a deb that installs to /usr/share/apache-spark.

The problem is I don’t want to put the full binary into git as it’s about
200MB.

I’d rather have the build fetch the tar.gz directly from Apache during the
build, untar it, then build the deb from the output.

Is there and way to do this or should I just write a bash script which uses
wget to fetch the URL?

-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile