maven proxy not honoured in additionalConfig
--------------------------------------------
Key: MECLIPSE-648
URL: http://jira.codehaus.org/browse/MECLIPSE-648
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Affects Versions: 2.8
Environment: Windows XP, Java 1.6.0_17 - however this defect is
platform agnostic
Reporter: Michael Yates
Priority: Minor
If you configure the eclipse plugin similar to :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<additionalConfig>
<file>
<name>.checkstyle</name>
<url>http://172.30.1.3:8080/checkstyleDisabled.xml</url>
</file>
</additionalConfig>
</configuration>
</plugin>
AND you are using a proxy, configured as per
http://maven.apache.org/guides/mini/guide-proxies.html
Then you will end up with the error: "Unable to write to file"
The issue seems to be EclipsePlugin.java line 1175 (in 2.8 source).
The code is:
inStream = file.getURL().openConnection().getInputStream();
I think the code should be something more like:
inStream = file.getURL().openConnection(proxy).getInputStream();
Where proxy is pulled through from the users maven settings.
However I do not know the Maven architecture very well. I was wondering whether
the Maven architecture provided some default/common way of gathering resources
so the plugin did not need to do this itself? In which case the EclipsePlugin
class should possibly be updated to use that. Because then presumably you would
get things like the proxy settings "for free".
--
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