Maven proxy settings cause NPE in TransformMojo
-----------------------------------------------
Key: MOJO-1148
URL: http://jira.codehaus.org/browse/MOJO-1148
Project: Mojo
Issue Type: Bug
Components: docbook
Environment: WinXP SP2, Maven 2.0.8, Java 1.6.0_05-б13
Reporter: Pavel Tcholakov
This proxy definition in Maven settings.xml causes an error:
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>192.168.2.1</host>
<port>3128</port>
<!--<nonProxyHosts>local.net,some.host.com</nonProxyHosts>-->
</proxy>
Stack trace:
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at java.util.Properties.setProperty(Properties.java:143)
at java.lang.System.setProperty(System.java:731)
at
org.codehaus.mojo.docbook.TransformMojo.execute(TransformMojo.java:130)
Property lists do not accept null values, so adding a simple check should fix
this. Temporary workaround - comment out the nonProxyHosts node in the
settings.xml file.
--
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