Return-Path: Delivered-To: apmail-jakarta-httpclient-dev-archive@www.apache.org Received: (qmail 48148 invoked from network); 20 Mar 2006 00:12:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Mar 2006 00:12:14 -0000 Received: (qmail 98927 invoked by uid 500); 20 Mar 2006 00:12:14 -0000 Delivered-To: apmail-jakarta-httpclient-dev-archive@jakarta.apache.org Received: (qmail 98894 invoked by uid 500); 20 Mar 2006 00:12:13 -0000 Mailing-List: contact httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "HttpClient Project" Reply-To: "HttpClient Project" Delivered-To: mailing list httpclient-dev@jakarta.apache.org Received: (qmail 98876 invoked by uid 99); 20 Mar 2006 00:12:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Mar 2006 16:12:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of bindulbhowmik@gmail.com designates 64.233.162.202 as permitted sender) Received: from [64.233.162.202] (HELO zproxy.gmail.com) (64.233.162.202) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Mar 2006 16:12:12 -0800 Received: by zproxy.gmail.com with SMTP id l8so978665nzf for ; Sun, 19 Mar 2006 16:11:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rm2RN5haPbGNrMN8/sOJFvAhiATbg/bTSTegLXX1VaX5CT6052Bc2fXln7bnt340Taa3/kjKpeQIECt2/u6/ZfUaitJYfIk8MBsys9QpX/jJkXrsSWe4x42P9rzh44lgYejWaT7wyQZXSBTGOqRbEUPWmelt5uR7Aje4kGpAU2A= Received: by 10.65.59.19 with SMTP id m19mr34171qbk; Sun, 19 Mar 2006 16:11:51 -0800 (PST) Received: by 10.65.196.4 with HTTP; Sun, 19 Mar 2006 16:11:51 -0800 (PST) Message-ID: <882a6a7e0603191611n620eb2d0l4d0e2dccfb1e4d3f@mail.gmail.com> Date: Sun, 19 Mar 2006 17:11:51 -0700 From: "Bindul Bhowmik" To: "HttpClient Project" Subject: Re: [http-core] Wrong pom.xml In-Reply-To: <441DD5C4.9020005@apache.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_764_13070618.1142813511852" References: <882a6a7e0603181852v3843f893p6eabbc9ef93b6c70@mail.gmail.com> <1142795195.8397.15.camel@localhost.localdomain> <882a6a7e0603191314g7a779826vc7309c77d3baa17f@mail.gmail.com> <441DD5C4.9020005@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_764_13070618.1142813511852 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/19/06, Oleg Kalnichevski wrote: > Bindul Bhowmik wrote: > > On 3/19/06, Oleg Kalnichevski wrote: > > > >> On Sat, 2006-03-18 at 19:52 -0700, Bindul Bhowmik wrote: > >> > >>> Hello, > >>> > >>> I checked out the http-core component to my workspace, and XML > >>> validation tool tells me that the pom.xml does not validate against > >>> the maven POM schema. > >>> (schemaLocation=3D"http://maven.apache.org/POM/4.0.0 > >>> http://maven.apache.org/maven-v4_0_0.xsd"). > >>> > >>> I have corrected the pom.xml and am attaching the diff. If it is all > >>> right, someone with commit access might want to commit it to the > >>> repository. > >>> > >>> > >> Hi Bindul > >> > >> For some reason Maven2 stopped working for me after applying the patch= . > >> > >> oleg@dld810:~/src/apache.org/jakarta/httpcomponents/http-core$ mvn cle= an > >> [INFO] Scanning for projects... > >> [INFO] > >> ----------------------------------------------------------------------= ------ > >> [ERROR] FATAL ERROR > >> [INFO] > >> ----------------------------------------------------------------------= ------ > >> [INFO] Error building POM (may not be this project's POM). > >> > >> > >> Project ID: org.apache.jakarta.httpcomponents:http-core > >> POM > >> Location: /home/oleg/src/apache.org/jakarta/httpcomponents/http-core/p= om.xml > >> Validation Messages: > >> > >> [0] 'build.testResources.testResource.directory' is missing. > >> > >> > >> Reason: Failed to validate POM > >> > >> > >> [INFO] > >> ----------------------------------------------------------------------= ------ > >> [INFO] Trace > >> org.apache.maven.reactor.MavenExecutionException: Failed to validate P= OM > >> at > >> org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) > >> at > >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278) > >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115= ) > >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> at > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j= ava:39) > >> at > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess= orImpl.java:25) > >> at java.lang.reflect.Method.invoke(Method.java:585) > >> at > >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > >> at > >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > >> Caused by: org.apache.maven.project.InvalidProjectModelException: Fail= ed > >> to validate POM > >> at > >> org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogi= c(DefaultMavenProjectBuilder.java:781) > >> at > >> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMaven= ProjectBuilder.java:631) > >> at > >> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFil= e(DefaultMavenProjectBuilder.java:303) > >> at > >> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMaven= ProjectBuilder.java:274) > >> at > >> org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515) > >> at > >> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447) > >> at > >> org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351) > >> ... 11 more > >> [INFO] > >> ----------------------------------------------------------------------= ------ > >> [INFO] Total time: < 1 second > >> [INFO] Finished at: Sun Mar 19 13:03:12 CET 2006 > >> [INFO] Final Memory: 1M/2M > >> > >> The http-core pom.xml is indeed invalid according to the schema but > >> Maven 2.0.2 does not seem to mind > >> > > > > Probably need to open an issue with Maven? > > > > > > Can you reproduce the problem? As far as I can tell this does seem to be > a bug in Maven. I could reproduce it. But then resolved the problem. The test resource element requires the directory (/project/build/testResources/testResource/directory) element. Strange, the XSD does not mandate this element, but the code fails to validate this. I have created another patch with this fix. It succeeds to compile and run all the tests on my machine. BTW, are both 'testSourceDirectory' and 'testResources' required? The same number of tests run on my machine with 'testSourceDirectory' commented. > > >>> The pom.xml for the httpcomponents also did not validate. The patch > >>> for that is also attached to this email. > >>> > >>> > >> Patch applied > >> > > > > Thanks. But, did not see a commit. > > > > > > Are you subscribed to httpclient-commits@jakarta.apache.org? No, I am not. But did not see the change coming into my workspace (on SVN update) for quite some time. I apologize if I am taking up too much of your time. Beginners hiccups I gu= ess. Thanks Oleg. Bindul > > Oleg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org > > ------=_Part_764_13070618.1142813511852 Content-Type: text/plain; name=http-core-pom-patch-2.txt; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_el01knsw Content-Disposition: attachment; filename="http-core-pom-patch-2.txt" Index: E:/apache/httpcomponents/maven-workspace/httpcomponents/http-core/pom.xml =================================================================== --- E:/apache/httpcomponents/maven-workspace/httpcomponents/http-core/pom.xml (revision 387022) +++ E:/apache/httpcomponents/maven-workspace/httpcomponents/http-core/pom.xml (working copy) @@ -77,7 +77,12 @@ src/java src/test - **/TestAll.java + + src/test + + **/TestAll.java + + ------=_Part_764_13070618.1142813511852 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org ------=_Part_764_13070618.1142813511852--