Re: maven keel:maven AND firewall
Aleksandar Vidakovic <[email protected]> Fri, 26 Aug 2005 20:48:57 +0200
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
Could it be that you have an old version of the keel maven plugin? The
version number 1.2.18 is OK, but I made several changes to enable proxy
support. As I read your stacktrace I would bet that this is the old
code. You can see that, because the tool apparently uses
"sun.net.www.http.HttpClient" to connect to the repository, whereas it
should use commons-httpclient (because it supports proxies).
Now there are two explanations:
1. the proxy settings (i. e. property names in your build.properties)
are written wrongly
2. keel maven plugin is old
ad 1:
double check your settings ;-) the use of commons-httpclient is only
triggered if the proxy settings can be found (as far as I remember...)
ad 2:
update the source for keel maven plugin, rebuild and install ("maven
plugin:install") it and most importantly delete your maven cache
(normally found under "~/.maven/cache"
Hope this helps,
Aleks
On Fri, 2005-08-26 at 18:02 +0000, Raj Joshi wrote:
> I can successfully "maven keel:maven" and "maven war" for the default keel project when directly connected to internet.
>
> But when try this behind a firewall (even after specifying maven.proxy.host and maven.proxy.port etc correctly in build.properties in my home directory) i get following error for "maven keel:maven"
>
> C:\mykeel>maven keel:maven
> __ __
> | \/ |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> |_| |_\__,_|\_/\___|_||_| v. 1.0.2
>
> build:start:
>
> keel:maven:
> keel:version:
> [echo] Keel Maven Plugin - v1.2.18
>
> keel:check-environment:
>
> [java] java.net.UnknownHostException: ibiblio.org
> [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
> [java] at java.net.Socket.connect(Socket.java:507)
> [java] at java.net.Socket.connect(Socket.java:457)
> [java] at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
> [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
> [java] at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
> [java] at sun.net.www.http.HttpClient.New(HttpClient.java:287)
> [java] at sun.net.www.http.HttpClient.New(HttpClient.java:299)
> [java] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(
> HttpURLConnection.java:792)
> [java] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Http
> URLConnection.java:744)
> [java] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLCo
> nnection.java:669)
> [java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
> tpURLConnection.java:913)
> [java] at java.net.URL.openStream(URL.java:1007)
> [java] at org.keel.tools.maven.KeelMavenTool.getPomStream(KeelMavenTool
> .java:268)
> [java] at org.keel.tools.maven.KeelMavenTool.addDependenciesFromPom(Kee
> lMavenTool.java:338)
> [java] at org.keel.tools.maven.KeelMavenTool.addDependencies(KeelMavenT
> ool.java:466)
> [java] at org.keel.tools.maven.KeelMavenTool.run(KeelMavenTool.java:126
> )
> [java] at org.keel.tools.maven.KeelMavenTool.main(KeelMavenTool.java:92
> )
>
> BUILD FAILED
> File...... C:\Documents and Settings\U743937\.maven\cache\maven-keel-plugin-1.2.
> 18\plugin.jelly
> Element... java
> Line...... 142
> Column.... 58
> Java returned: 1
> Total time: 3 seconds
> Finished at: Fri Aug 26 12:46:28 EDT 2005
>
> C:\mykeel>
>
> anybody having similar issue and/or know how to resolve?
>
> -raj
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
>
http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com