Hi,
first, I'd like to apologise for the inconveniences caused by these
maintenance tasks at SRFG infrastructure. It's something temporal.
Second, I think every thing has a positive side: this problem arises
because, from my opinion, a not good enough implementation of the
download process.
Please, find attached a patch with an alternative one using
maven-download-plugin [1] which has some clear advantages:
* pure maven implementation
* caches files at the local maven repository
* md5 checking
The problem for Stanbol is that, I guess, the plugin is not currently
available at Maven central. So not sure if you can really use it :-/
Best,
[1] http://github.com/mickaelistria/maven-download-plugin
On 13/02/13 17:43, Reto Bachmann-Gmür wrote:
Hello
Currently the build fails because of:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.6:run (download) on
project org.apache.stanbol.data.sites.dbpedia: An Ant BuildException
has occured: The following error occurred while executing this line:
[ERROR]
/data-ssd-unencrypted/projects-apache/stanbol/data/sites/dbpedia/download_index.xml:26:
Warning: Could not find resource url
"http://dev.iks-project.eu/downloads/stanbol-indices/dbpedia_43k.solrindex.zip"
to copy.
[ERROR] -> [Help 1]
While they might be license reason this file is downloaded during
build we could still add he file to a non-apache licensed maven
project so it could be downloaded from a maven repository?
WDYT?
Reto
--
Sergio Fernández
Salzburg Research
+43 662 2288 318
Jakob-Haringer Strasse 5/II
A-5020 Salzburg (Austria)
http://www.salzburgresearch.at
Index: data/sites/dbpedia/pom.xml
===================================================================
--- data/sites/dbpedia/pom.xml (revision 1445763)
+++ data/sites/dbpedia/pom.xml (working copy)
@@ -101,42 +101,22 @@
</configuration>
</plugin>
<plugin>
- <!--
- Ant is used to download the models from the
- http://opennlp.sourceforge.net site.
- -->
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
+ <groupId>com.googlecode.maven-download-plugin</groupId>
+ <artifactId>maven-download-plugin</artifactId>
+ <version>1.0.0</version>
<executions>
<execution>
- <id>download</id>
+ <id>download-dbpedia-default-index</id>
<phase>generate-resources</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
<configuration>
- <!--
- TODO: I would like to add an "unless" constraint to the
- target that prevents execution if Maven operates in offline
- mode. However I was not able to find out how to obtain this
- information. ${settings.offline} (as noted by several
- resources) does not work.
- Until fixed builds will fail if no internetconnection is
- available!
- -->
- <target>
- <property name="target.directory" value="${project.basedir}/downloads/resources/${dbpedia.default.index.path}" />
- <property name="index.url" value="${dbpedia.default.index.url}" />
-
- <echo message="copy Solr Index " />
- <echo message=" FROM ${index.url} " />
- <echo message=" TO ${target.directory}" />
-
- <ant antfile="${basedir}/download_index.xml">
- <target name="download" />
- </ant>
- </target>
+ <url>${dbpedia.default.index.url}</url>
+ <unpack>false</unpack>
+ <outputDirectory>${project.basedir}/downloads/resources/${dbpedia.default.index.path}</outputDirectory>
+ <md5>429fcd372f76873f1a2c2b7402158483</md5>
</configuration>
- <goals>
- <goal>run</goal>
- </goals>
</execution>
</executions>
</plugin>