You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2006/08/11 10:37:06 UTC
svn commit: r430724 - in /maven/repository-manager/trunk:
maven-repository-configuration/src/main/mdo/
maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/
maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/include/
Author: brett
Date: Fri Aug 11 01:37:04 2006
New Revision: 430724
URL: http://svn.apache.org/viewvc?rev=430724&view=rev
Log:
[MRM-138] add HTTP proxy configuration
Modified:
maven/repository-manager/trunk/maven-repository-configuration/src/main/mdo/configuration.mdo
maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/configure.jsp
maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/include/proxiedRepositoryForm.jspf
maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp
maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/proxiedRepositories.jsp
Modified: maven/repository-manager/trunk/maven-repository-configuration/src/main/mdo/configuration.mdo
URL: http://svn.apache.org/viewvc/maven/repository-manager/trunk/maven-repository-configuration/src/main/mdo/configuration.mdo?rev=430724&r1=430723&r2=430724&view=diff
==============================================================================
--- maven/repository-manager/trunk/maven-repository-configuration/src/main/mdo/configuration.mdo (original)
+++ maven/repository-manager/trunk/maven-repository-configuration/src/main/mdo/configuration.mdo Fri Aug 11 01:37:04 2006
@@ -86,6 +86,14 @@
<type>String</type>
<description>Blacklisted patterns in the discovery process</description>
</field>
+ <field>
+ <name>proxy</name>
+ <version>1.0.0</version>
+ <association>
+ <type>Proxy</type>
+ </association>
+ <description>The network proxy to use for outgoing requests.</description>
+ </field>
</fields>
<codeSegments>
<codeSegment>
@@ -344,6 +352,15 @@
The interval in minutes before updating releases if the policy is set to 'interval'.
</description>
</field>
+ <field>
+ <name>useNetworkProxy</name>
+ <version>1.0.0</version>
+ <type>boolean</type>
+ <defaultValue>false</defaultValue>
+ <description>
+ Whether to use the network proxy, if one is configured for the protocol of this repository.
+ </description>
+ </field>
</fields>
</class>
<class>
@@ -385,6 +402,53 @@
<type>String</type>
<multiplicity>*</multiplicity>
</association>
+ </field>
+ </fields>
+ </class>
+ <class>
+ <name>Proxy</name>
+ <version>1.0.0</version>
+ <fields>
+ <field>
+ <name>protocol</name>
+ <version>1.0.0</version>
+ <description><![CDATA[The proxy protocol.]]></description>
+ <type>String</type>
+ <defaultValue>http</defaultValue>
+ </field>
+ <field>
+ <name>username</name>
+ <version>1.0.0</version>
+ <description><![CDATA[The proxy user.]]></description>
+ <type>String</type>
+ </field>
+ <field>
+ <name>password</name>
+ <version>1.0.0</version>
+ <description><![CDATA[The proxy password.]]></description>
+ <type>String</type>
+ </field>
+ <field>
+ <name>port</name>
+ <version>1.0.0</version>
+ <description><![CDATA[The proxy port.]]></description>
+ <type>int</type>
+ <defaultValue>8080</defaultValue>
+ </field>
+ <field>
+ <name>host</name>
+ <version>1.0.0</version>
+ <description><![CDATA[The proxy host.]]></description>
+ <type>String</type>
+ <required>true</required>
+ </field>
+ <field>
+ <name>nonProxyHosts</name>
+ <version>1.0.0</version>
+ <description><![CDATA[
+ The list of non-proxied hosts (delimited by |).
+ ]]></description>
+ <type>String</type>
</field>
</fields>
</class>
Modified: maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/configure.jsp
URL: http://svn.apache.org/viewvc/maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/configure.jsp?rev=430724&r1=430723&r2=430724&view=diff
==============================================================================
--- maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/configure.jsp (original)
+++ maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/configure.jsp Fri Aug 11 01:37:04 2006
@@ -31,6 +31,11 @@
<ww:form method="post" action="saveConfiguration" namespace="/admin" validate="true">
<ww:textfield name="indexPath" label="Index Directory" size="100" />
<ww:textfield name="indexerCronExpression" label="Indexing Schedule" />
+ <ww:hidden name="proxy.protocol" value="http" />
+ <ww:textfield name="proxy.host" label="HTTP Proxy Host" />
+ <ww:textfield name="proxy.port" label="HTTP Proxy Port" />
+ <ww:textfield name="proxy.username" label="HTTP Proxy Username" />
+ <ww:password name="proxy.password" label="HTTP Proxy Password" />
<ww:submit value="Save Configuration" />
</ww:form>
</div>
Modified: maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/include/proxiedRepositoryForm.jspf
URL: http://svn.apache.org/viewvc/maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/include/proxiedRepositoryForm.jspf?rev=430724&r1=430723&r2=430724&view=diff
==============================================================================
--- maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/include/proxiedRepositoryForm.jspf (original)
+++ maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/include/proxiedRepositoryForm.jspf Fri Aug 11 01:37:04 2006
@@ -14,6 +14,7 @@
~ limitations under the License.
--%>
+<%@ taglib prefix="ww" uri="/webwork" %>
<ww:textfield name="name" label="Name" size="50" />
<ww:textfield name="url" label="URL" size="50" />
<ww:select list="#@java.util.LinkedHashMap@{'default' : 'Maven 2.x Repository', 'legacy' : 'Maven 1.x Repository'}"
@@ -32,4 +33,5 @@
'never' : 'Enabled, never updated',
'interval' : 'Enabled, updated on given interval'}" />
<ww:textfield label="Release update interval" name="releasesInterval" size="4" />
-<ww:select list="configuration.repositoriesMap" name="managedRepository" label="Proxied through"/>
\ No newline at end of file
+<ww:select list="configuration.repositoriesMap" name="managedRepository" label="Proxied through" />
+<ww:checkbox name="useNetworkProxy" fieldValue="true" label="Use HTTP Proxy" />
Modified: maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp
URL: http://svn.apache.org/viewvc/maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp?rev=430724&r1=430723&r2=430724&view=diff
==============================================================================
--- maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp (original)
+++ maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp Fri Aug 11 01:37:04 2006
@@ -49,6 +49,26 @@
</tr>
</table>
+ <ww:set name="proxy" value="proxy" />
+ <c:if test="${!empty(proxy.host)}">
+ <h3>HTTP Proxy</h3>
+
+ <table>
+ <tr>
+ <th>Host</th>
+ <td>${proxy.host}</td>
+ </tr>
+ <tr>
+ <th>Port</th>
+ <td>${proxy.port}</td>
+ </tr>
+ <tr>
+ <th>Username</th>
+ <td>${proxy.username}</td>
+ </tr>
+ </table>
+ </c:if>
+
<p>
<a href="<ww:url action="configure" />">Edit Configuration</a>
</p>
Modified: maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/proxiedRepositories.jsp
URL: http://svn.apache.org/viewvc/maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/proxiedRepositories.jsp?rev=430724&r1=430723&r2=430724&view=diff
==============================================================================
--- maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/proxiedRepositories.jsp (original)
+++ maven/repository-manager/trunk/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/admin/proxiedRepositories.jsp Fri Aug 11 01:37:04 2006
@@ -123,6 +123,17 @@
(<code>${repositoriesMap[repository.managedRepository].id}</code>)
</td>
</tr>
+ <tr>
+ <th>Use HTTP Proxy</th>
+ <td>
+ <c:if test="${!repository.useNetworkProxy}">
+ <span class="statusFailed">NO</span>
+ </c:if>
+ <c:if test="${repository.useNetworkProxy}">
+ <span class="statusOk">YES</span>
+ </c:if>
+ </td>
+ </tr>
</table>
</div>
</c:forEach>