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: [email protected]
For additional commands, e-mail: [email protected]