portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Commented: (JS2-1237) Tomcat zip is not downloaded via proxy. (Proxy configuration is set in maven settings.xml)
Date Tue, 01 Feb 2011 22:21:29 GMT

    [ https://issues.apache.org/jira/browse/JS2-1237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989413#comment-12989413
] 

Woonsan Ko commented on JS2-1237:
---------------------------------

Ant does not follow the maven proxy configurations at all.
However, Ant allows us to set proxy configurations in four ways. [1]
The most convenient and similar way to maven settings is to use "Manual JVM options" by passing
some system properties such as "http.proxyHost" and "http.proxyPort". So, we can simply set
these properties to enable Ant tasks to use the proxy.
However, there's one more thing to consider. Because the ant task to download tomcat zip is
included in the custom Jetspeed mvn plugin pom file (jetspeed-mvn-tomcat-portal-pom.xml),
standard jvm system properties will not be passed automatically.
To pass some additional system properties to the custom Jetspeed mvn plugin pom, you can add
jetspeed-mvn.properties in the project root folder.
The jetspeed-mvn.properties can look like this:

# jetspeed-mvn.properties
http.proxyHost=127.0.0.1
http.proxyPort=8888

With this, you can pass those proxy system properties to the ant task in the end.
See [2] for details on the properties of custom Jetspeed mvn plugin.

In summary, if you want to get the tomcat zip downloaded during building installer, you can
add jetspeed-mvn.properties with Ant-specific proxy properties.

[1] http://ant.apache.org/manual/proxy.html
[2] http://portals.apache.org/jetspeed-2/buildguide/jetspeed-mvn-plugin.html

> Tomcat zip is not downloaded via proxy. (Proxy configuration is set in maven settings.xml)
> ------------------------------------------------------------------------------------------
>
>                 Key: JS2-1237
>                 URL: https://issues.apache.org/jira/browse/JS2-1237
>             Project: Jetspeed 2
>          Issue Type: Test
>          Components: Installer
>    Affects Versions: 2.2.1
>            Reporter: Woonsan Ko
>            Assignee: Woonsan Ko
>            Priority: Minor
>
> When building Jetspeed-installer, it tries to download tomcat zip file from http://archive.apache.org/dist/tomcat/tomcat-6/...
> In some environment, they should use proxy to get access to external web resources. So,
they usually configure the proxy setting in maven settings.xml like the example found in [1].
> However, the ant task, <get/>, in jetspeed-installer/jetspeed-mvn-tomcat-portal-pom.xml,
doesn't use this proxy configuration, so it fails to download via the proxy.
> [1] http://maven.apache.org/settings.html#Proxies

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message