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 <khmarba...@gmx.de>
wrote:

> Hi Kevin,
>
> to download a an file from somewhere you could use the wagon-maven-plugin
> like this:
>
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>wagon-maven-plugin</artifactId>
>   <version>1.0-beta-5</version>
>   <executions>
>     <execution>
>       <id>download-test-data</id>
>       <phase>prepare-package</phase>
>       <goals>
>         <goal>download-single</goal>
>       </goals>
>       <configuration>
>         <url>http://archive.apache.org/dist/abdera/1.1.2/</url>
>         <fromFile>apache-abdera-1.1.2-src.tar.gz</fromFile>
>         <toDir>${project.build.directory}/environment/qa</toDir>
>       </configuration>
>     </execution>
>   </executions>
> </plugin>
>
>
>
> 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
<https://plus.google.com/102718274791889610666/posts>
<http://spinn3r.com>

Reply via email to