You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Vincent Siveton (JIRA)" <ji...@codehaus.org> on 2005/11/29 14:58:06 UTC
[jira] Commented: (MNG-1704) License report ignores proxy settings
[ http://jira.codehaus.org/browse/MNG-1704?page=comments#action_52297 ]
Vincent Siveton commented on MNG-1704:
--------------------------------------
Thanks for your support, Jochen.
In the LicenseReport class, just add a new parameter, eg:
/**
* @parameter default-value="${settings.proxies}"
* @required
* @readonly
*/
private List proxies;
And, you need to add maven-settings dependency, eg:
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-settings</artifactId>
<version>2.0</version>
</dependency>
HTH
> License report ignores proxy settings
> -------------------------------------
>
> Key: MNG-1704
> URL: http://jira.codehaus.org/browse/MNG-1704
> Project: Maven 2
> Type: Bug
> Components: maven-project-info-reports-plugin
> Versions: 2.0
> Reporter: Jochen Wiedmann
> Priority: Minor
>
>
> In LicenseReport.java, the following line is used to read a license from an remote URL:
> in = licenseUrl.openStream();
> The proxy settings from settings.xml are ignored completely. Consequently, the "site" target fails, if the user is sitting behind a firewall and must use a proxy server.
> Workaround: Start maven like this
> mvn -Dhttp.proxyHost=my.proxy.host -Dhttp.proxyPort=3128
> I am ready to supply a patch, if anyone can tell me how to obtain the "Settings" object within a Mojo.
--
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org