Search |
|||
Fabrizio Giudici's blogMaven is good, but needs some lovePosted by fabriziogiudici on July 27, 2010 at 1:23 PM PDT
You know that I've moved to Maven more than one year ago and I don't regret. I think I would be unable to manage the number of projects I'm managing on my own without it (or at least without an effective artifact repository). »
Related Topics >>
Blogs Comments
Comments are listed in date ascending order (oldest first)
In all fairness
Submitted by mosabua on Tue, 2010-07-27 15:35.
you should really change your title to something. "How a broken Kenai setup killed my Maven repositories" or "Maven can't take care of every broken infrastructure for you.."
The remaining point is that
Submitted by fabriziogiudici on Tue, 2010-07-27 15:47.
The remaining point is that 1) for any practical purpose with Maven you need to rely on a repository and 2) if the repository is broken you can't build your stuff. With any build system that doesn't rely on repositories, or that can be tweaked in some way when things are troubled, you can still work. With Maven you have to prioritize fixing the faulty part of the infrastructure. The message that I'm trying to convey is that Maven gives many advantages, but you must be prepared to set up and manage a working infrastructure. It's a cost that you must evaluate and be willing to pay. Did your server really
Submitted by nick_stolwijk on Tue, 2010-07-27 14:36.
Did your server really responded with a http status 500? Or did it respond with a 200 OK but gives an error page? As far as I know Maven treats both like it should.
Good point - indeed, it's a
Submitted by fabriziogiudici on Tue, 2010-07-27 15:08.
Good point - indeed, it's a double error from Kenai, it's saying error 500, but responding with 200. Now I'm going to fix my post.
% curl -v "http://kenai.com/projects/nbpwr/maven-repository/releases/org/incava/org.incava.util.diff/1.1.0/org.incava.util.diff-1.1.0.pom" * About to connect() to kenai.com port 80 (#0) * Trying 192.9.164.100... connected * Connected to kenai.com (192.9.164.100) port 80 (#0) > GET /projects/nbpwr/maven-repository/releases/org/incava/org.incava.util.diff/1.1.0/org.incava.util.diff-1.1.0.pom HTTP/1.1 > User-Agent: curl/7.16.4 (i386-apple-darwin9.0) libcurl/7.16.4 OpenSSL/0.9.7l zlib/1.2.3 > Host: kenai.com > Accept: */* > < HTTP/1.1 200 OK < Date: Tue, 27 Jul 2010 21:07:08 GMT < Content-Type: text/html < Content-Length: 122 < Cache-Control: max-age=0 < Expires: Tue, 27 Jul 2010 21:07:07 GMT < Vary: Accept-Encoding < Status: 500 Internal Server Error Content-Type: text/html * Connection #0 to host kenai.com left intact * Closing connection #0 <html><body><h1>500 Internal Server Error</h1></body></html> If you don't trust your
Submitted by nick_stolwijk on Tue, 2010-07-27 15:19.
If you don't trust your repository, set your checksumpolicy to fail or warn, so maven will complain (or fail) about it.
http://maven.apache.org/settings.html#Repositories
I know - in any case, I think
Submitted by fabriziogiudici on Tue, 2010-07-27 15:36.
I know - in any case, I think that the point is that the repository must work. That's why I'm taking this week to get rid of the webdav stuff and publish the things at Sonatype, where it's possible, or to my instance of Nexus. |
Recent EntriesCategoriesArchivesJuly 2010
June 2010 May 2010 April 2010 March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 September 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 July 2008 June 2008 May 2008 April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 September 2007 August 2007 July 2007 June 2007 May 2007 April 2007 March 2007 February 2007 January 2007 December 2006 November 2006 |
||
|
er