On 14 February 2013 16:58, Alessandro Adamou <[email protected]> wrote:
> On 14/02/2013 15:39, enridaga wrote:
>>
>> Thank you for clarifying this. In fact I can reach the file from the
>> browser.
>> This means that the reason why it is not working from mvn is probably
>> on my side.
>
>
> Remember that, although you can configure proxy settings for Maven, they do
> not seem to propagate to the maven-ant plugin. I had to run an Ant setproxy
> task to get the data downloads to work.
Yes, this is what I did, here is an excerpt if useful for somebody else:

 <target name="download" depends="proxy">
    <copy todir="${target.directory}" flatten="true">
      <resources>
        <url url="${index.url}"/>
      </resources>
    </copy>
  </target>

  <target name="proxy">
                <property name="proxy.host" value="myproxy.open.ac.uk"/>
                <property name="proxy.port" value="8080"/>
                <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" />
  </target>

The problem is that I had to change the stanbol source code to do that.
It would have been nice if maven-ant-plugin inherited maven's proxy settings.
Using ANT_OPTS works only from the command line.
The maven-antrun-plugin documentation says that the Setproxy ant
expression has an equivalent from the maven-deploy-plugin, but I found
nothing in its documentation.
@Alessandro: did you found a  better way to do that?

Cheers,
Enrico

>
> Alessandro
>
>
>> On 14 February 2013 15:33, Sergio Fernández
>> <[email protected]> wrote:
>>>
>>> The problem was fixed yesterday evening. Now all services and resources
>>> under dev.iks-project.eu server should be available again. Apologize for
>>> any
>>> inconvenience caused.
>>>
>>>
>>> On 14/02/13 14:55, enridaga wrote:
>>>>
>>>> @Sergio, could you knock to this thread when the problem with the IKS
>>>> server is fixed?
>>>
>>>
>>> --
>>> Sergio Fernández
>>> Salzburg Research
>>> +43 662 2288 318
>>> Jakob-Haringer Strasse 5/II
>>> A-5020 Salzburg (Austria)
>>> http://www.salzburgresearch.at
>>
>>
>>
>
>
> --
> M.Sc. Alessandro Adamou
>
> Knowledge Media Institute
> The Open University
> Walton Hall, Milton Keynes MK7 6AA
> United Kingdom
>
> Alma Mater Studiorum - Università di Bologna
> Department of Computer Science
> Mura Anteo Zamboni 7, 40127 Bologna
> Italy
>
>
> "I will give you everything, just don't demand anything."
> (Ettore Petrolini, 1917)
>
> Not sent from my iSnobTechDevice
>



-- 
Enrico Daga

--
http://www.enridaga.net
skype: enri-pan

Reply via email to