Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0ED1C9837 for ; Thu, 2 Feb 2012 04:20:48 +0000 (UTC) Received: (qmail 59839 invoked by uid 500); 2 Feb 2012 04:20:44 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 59097 invoked by uid 500); 2 Feb 2012 04:20:30 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 59059 invoked by uid 99); 2 Feb 2012 04:20:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 04:20:21 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of nibing_520@hotmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 04:20:14 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Rso9J-0007qC-Ef for solr-user@lucene.apache.org; Wed, 01 Feb 2012 20:19:53 -0800 Date: Wed, 1 Feb 2012 20:19:53 -0800 (PST) From: bing To: solr-user@lucene.apache.org Message-ID: <1328156393445-3708923.post@n3.nabble.com> In-Reply-To: <1328155059795-3708902.post@n3.nabble.com> References: <1328155059795-3708902.post@n3.nabble.com> Subject: Re: Fail to compile Java code (trying to use SolrJ with Solr) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, all, Following the previous topic, if I abandon my own code and try to build a project with the original package apache-solr-3.5.0-src, I failed again. Following are the description of some technical details, and I hope someone can help to point out my mistakes. What I Have Besides the tools mentioned above, I install the following tool: NetBeans 7 IDE What I Set 2. Pom.xml in C:\apache-solr-3.5.0-src\apache-solr-3.5.0\ Adding the following dependency: org.apache.solr solr-solrj 3.5.0 What I Did: 2. Open the project by loading the original package apache-solr-3.5.0-src, and try to build it in NetBeans. What I Get: 2. Following are part of the messages shown in the output : ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 5:39.460s Finished at: Thu Feb 02 11:00:45 CST 2012 Final Memory: 28M/129M ------------------------------------------------------------------------ Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project lucene-core: There are test failures. Please refer to C:\apache-solr-3.5.0-src\apache-solr-3.5.0\lucene\build\surefire-reports for the individual test results. -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException After correcting the problems, you can resume the build with the command mvn -rf :lucene-core 'cmd' is not recognized as an internal or external command, operable program or batch file. -- View this message in context: http://lucene.472066.n3.nabble.com/Fail-to-compile-Java-code-trying-to-use-SolrJ-with-Solr-tp3708902p3708923.html Sent from the Solr - User mailing list archive at Nabble.com.