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" <khmarba...@gmx.de> 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 <khmarba...@gmx.de >> <mailto: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/ >> <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? >> >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >