On Tue, May 10, 2011 at 3:56 PM, Gabriele Kahlout <gabri...@mysimpatico.com>wrote:
> > > On Tue, May 10, 2011 at 3:50 PM, Steven A Rowe <sar...@syr.edu> wrote: > >> Hi Gabriele, >> >> There are some Maven instructions here (not in Lucene/Solr 3.1 because I >> just wrote the file a couple of days ago): >> < >> http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_1/dev-tools/maven/README.maven >> > >> >> My recommendation, since the Solr 3.1 source tarball does not include >> dev-tools/, is to check out the 3.1-tagged sources from Subversion: >> >> svn co http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_1 >> >> and then follow the instructions in the above-linked README.maven. I did >> that just now and it worked for me. The results are in solr/package/maven/. >> > > I did that and i think they worked for me but i didn't get nutch to work > with it, so I preferred to revert to what is officially supported (not even, > but...). > > I'll be trying and report back. > Everything worked! Those the revisions used: $ svn co -r 1101526 http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_1 solr 1086822 $ svn co -r 1101540 http://svn.apache.org/repos/asf/nutch/branches/branch-1.3 nutch > Thank you > > > >> >> Please write back if you run into any problems. >> >> Steve >> >> >> From: Gabriele Kahlout [mailto:gabri...@mysimpatico.com] >> Sent: Tuesday, May 10, 2011 8:37 AM >> To: boutr...@gmail.com >> Cc: solr-user@lucene.apache.org; Steven A Rowe; ryan...@gmail.com >> Subject: Re: Is it possible to build Solr as a maven project? >> >> >> sorry, this was not the target I used (this one should work too, but...), >> >> Can we expand on the but...? >> >> $ wget http://apache.panu.it//lucene/solr/3.1.0/apache-solr-3.1.0-src.tgz >> <http://apache.panu.it/lucene/solr/3.1.0/apache-solr-3.1.0-src.tgz> >> $ tar xf apache-solr-3.1.0-src.tgz >> $ cd apache-solr-3.1.0 >> $ ant generate-maven-artifacts >> generate-maven-artifacts: >> >> get-maven-poms: >> >> BUILD FAILED >> /Users/simpatico/Downloads/apache-solr-3.1.0/build.xml:59: The following >> error occurred while executing this line: >> /Users/simpatico/Downloads/apache-solr-3.1.0/lucene/build.xml:445: The >> following error occurred while executing this line: >> /Users/simpatico/Downloads/apache-solr-3.1.0/build.xml:45: >> /Users/simpatico/Downloads/apache-solr-3.1.0/dev-tools/maven does not exist. >> >> >> >> Now for those that build this, it must have worked sometime. How? Or is >> this a bug in the release? >> Looking the revisions history of the build script I might be referring to >> LUCENE-2490<https://issues.apache.org/jira/browse/LUCENE-2490> but I'm >> not sure I understand the solution out. I've checked out dev-tools but even >> with it things don't work (tried the one with 3.1.0 relesase). >> >> >> >> >> the one I used is get-maven-poms. That will just create pom files and copy >> them to their right target locations. >> >> I'm using netbeans and I'm using the plugin "Automatic Projects" to do >> everything inside the IDE. >> >> Which version of Solr are you using ? >> >> Ludovic. >> >> 2011/5/4 Gabriele Kahlout [via Lucene] < >> ml-node+2898211-2124746009-383...@n3.nabble.com<mailto: >> ml-node%2b2898211-2124746009-383...@n3.nabble.com>> >> >> > generate-maven-artifacts: >> > [mkdir] Created dir: /Users/simpatico/SOLR_HOME/build/maven >> > [mkdir] Created dir: /Users/simpatico/SOLR_HOME/dist/maven >> > [copy] Copying 1 file to >> > /Users/simpatico/SOLR_HOME/build/maven/src/maven >> > [artifact:install-provider] Installing provider: >> > org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2 >> > >> > *BUILD FAILED* >> > /Users/simpatico/SOLR_HOME/*build.xml:800*: The following error occurred >> > while executing this line: >> > /Users/simpatico/SOLR_HOME/common-build.xml:274: artifact:deploy doesn't >> > support the "uniqueVersion" attribute >> > >> > >> > *build.xml:800: *<m2-deploy >> > pom.xml="src/maven/solr-parent-pom.xml.template"/> >> > >> > removed "uniquVersion" attirubte: >> > >> > generate-maven-artifacts: >> > [artifact:install-provider] Installing provider: >> > org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2 >> > [artifact:deploy] Deploying to >> file:///Users/simpatico/SOLR_HOME/dist/maven<file:///\\Users\simpatico\SOLR_HOME\dist\maven> >> > >> > [artifact:deploy] [INFO] Retrieving previous build number from remote >> > [artifact:deploy] [INFO] Retrieving previous metadata from remote >> > [artifact:deploy] [INFO] Uploading repository metadata for: 'artifact >> > org.apache.solr:solr-parent' >> > [artifact:deploy] [INFO] Retrieving previous metadata from remote >> > [artifact:deploy] [INFO] Uploading repository metadata for: 'snapshot >> > org.apache.solr:solr-parent:1.4.2-SNAPSHOT' >> > [copy] Copying 1 file to /Users/simpatico/SOLR_HOME/build/maven/lib >> > [artifact:install-provider] Installing provider: >> > org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2 >> > [artifact:deploy] Deploying to >> file:///Users/simpatico/SOLR_HOME/dist/maven<file:///\\Users\simpatico\SOLR_HOME\dist\maven> >> > >> > [artifact:deploy] [INFO] Retrieving previous build number from remote >> > [artifact:deploy] [INFO] Retrieving previous metadata from remote >> > [artifact:deploy] [INFO] Uploading repository metadata for: 'artifact >> > org.apache.solr:solr-commons-csv' >> > [artifact:deploy] [INFO] Retrieving previous metadata from remote >> > [artifact:deploy] [INFO] Uploading project information for >> solr-commons-csv >> > >> > 1.4.2-SNAPSHOT >> > [artifact:deploy] [INFO] Retrieving previous metadata from remote >> > [artifact:deploy] [INFO] Uploading repository metadata for: 'snapshot >> > org.apache.solr:solr-commons-csv:1.4.2-SNAPSHOT' >> > [copy] Copying 1 file to >> > /Users/simpatico/SOLR_HOME/build/maven/contrib/dataimporthandler >> > [artifact:install-provider] Installing provider: >> > org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2 >> > >> > BUILD FAILED >> > /Users/simpatico/SOLR_HOME/build.xml:809: The following error occurred >> > while >> > executing this line: >> > */Users/simpatico/SOLR_HOME/common-build.xml:274: artifact:deploy >> doesn't >> > support the nested "attach" element* >> > >> > >> >> >> ----- >> Jouve >> France. >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2898315.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> >> >> -- >> Regards, >> K. Gabriele >> >> --- unchanged since 20/9/10 --- >> P.S. If the subject contains "[LON]" or the addressee acknowledges the >> receipt within 48 hours then I don't resend the email. >> subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ >> time(x) < Now + 48h) ⇒ ¬resend(I, this). >> >> If an email is sent by a sender that is not a trusted contact or the email >> does not contain a valid code then the email is not received. A valid code >> starts with a hyphen and ends with "X". >> ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈ >> L(-[a-z]+[0-9]X)). >> > > > > -- > Regards, > K. Gabriele > > --- unchanged since 20/9/10 --- > P.S. If the subject contains "[LON]" or the addressee acknowledges the > receipt within 48 hours then I don't resend the email. > subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ > time(x) < Now + 48h) ⇒ ¬resend(I, this). > > If an email is sent by a sender that is not a trusted contact or the email > does not contain a valid code then the email is not received. A valid code > starts with a hyphen and ends with "X". > ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈ > L(-[a-z]+[0-9]X)). > > -- Regards, K. Gabriele --- unchanged since 20/9/10 --- P.S. If the subject contains "[LON]" or the addressee acknowledges the receipt within 48 hours then I don't resend the email. subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x) < Now + 48h) ⇒ ¬resend(I, this). If an email is sent by a sender that is not a trusted contact or the email does not contain a valid code then the email is not received. A valid code starts with a hyphen and ends with "X". ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈ L(-[a-z]+[0-9]X)).