[mevenide-dev] [jira] Closed: (MEVENIDE-288) repository browser missing proxy authentication maven.proxy.username maven.proxy.password support in org.mevenide.repository.HttpRepositoryReader and org.mevenide.repository.RepositoryReaderFactory
"Milos Kleint (JIRA)" <jira-yCVjj/[email protected]> Fri, 29 Oct 2010 01:34:12 -0500 (CDT)
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.devel |
|---|---|
| Message-ID | <21892824.4060.1288334052524.JavaMail.haus-jira@codehaus01.managed.contegix.com> |
[ http://jira.codehaus.org/browse/MEVENIDE-288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Milos Kleint closed MEVENIDE-288.
---------------------------------
Resolution: Won't Fix
the maven1 netbeans integration is discontinued for a long time, just closing the issues.
> repository browser missing proxy authentication maven.proxy.username maven.proxy.password support in org.mevenide.repository.HttpRepositoryReader and org.mevenide.repository.RepositoryReaderFactory
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MEVENIDE-288
> URL: http://jira.codehaus.org/browse/MEVENIDE-288
> Project: mevenide
> Issue Type: Improvement
> Components: mevenide-idea, mevenide-netbeans
> Affects Versions: IDEA-0.1, NB_0.7
> Environment: behind a corporate firewall that requires authentication
> Reporter: Steve Swing
> Assignee: Arik Kfir
> Attachments: mevenide-idea-patch.txt, mevenide-repository-patch.txt
>
>
> These changes I've made locally work for me:
> // added constructor for HttpRepositoryReader
> public HttpRepositoryReader(URI rootUri, String proxyHost, String proxyPort, String proxyUsername, String proxyPassword) {
> this(rootUri);
> HostConfiguration config = new HostConfiguration();
> config.setProxy(proxyHost, Integer.parseInt(proxyPort));
> client.setHostConfiguration(config);
> client.getState().setProxyCredentials(
> new AuthScope(proxyHost, Integer.parseInt(proxyPort), null /* default realm? */),
> new UsernamePasswordCredentials(proxyUsername, proxyPassword));
> }
> // added static method for RepositoryReaderFactory that uses the new constructor
> public static IRepositoryReader createRemoteRepositoryReader(URI uri,
> String proxyHost, String proxyPort,
> String proxyUsername, String proxyPassword) {
> if (uri.toString().startsWith("http://")) {
> return new HttpRepositoryReader(uri, proxyHost, proxyPort, proxyUsername, proxyPassword);
> }
> return null;
> }
> Also for mevenide-idea changed org.mevenide.idea.repository.util.RepositoryUtils.createRepoReaders(final boolean pIncludeLocal, final Module... pModules) to collect proxy properties from the query context and if found, call the added createRemoteRepositoryReader(URI uri, String proxyHost, String proxyPort, String proxyUsername, String proxyPassword) method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email