Re: Is it possible to build Solr as a maven project?

2011-05-12 Thread Gabriele Kahlout
On Tue, May 10, 2011 at 3:56 PM, Gabriele Kahlout
gabri...@mysimpatico.comwrote:



 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-2490https://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.commailto:
 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/mavenfile:///\\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/mavenfile:///\\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

Re: Is it possible to build Solr as a maven project?

2011-05-10 Thread Gabriele Kahlout
 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
$ 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

  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
 
  [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
 
  [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)).


RE: Is it possible to build Solr as a maven project?

2011-05-10 Thread Steven A Rowe
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/.

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.tgzhttp://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-2490https://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.commailto: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/mavenfile:///\\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/mavenfile:///\\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

Re: Is it possible to build Solr as a maven project?

2011-05-10 Thread Gabriele Kahlout
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. Thank you in advance.



 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-2490https://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.commailto:
 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/mavenfile:///\\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/mavenfile:///\\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

Re: Is it possible to build Solr as a maven project?

2011-05-10 Thread lboutros
Very nice Steve ! Thanks again. (I'm building from svn so that's perfect for
me)
Is this file referenced somewhere in the wiki ?

Ludovic.

-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2923151.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: Is it possible to build Solr as a maven project?

2011-05-10 Thread Steven A Rowe
Hi Ludovic,

On 5/10/2011 at 10:02 AM, lboutros wrote:
 Very nice Steve ! Thanks again. (I'm building from svn so that's perfect
 for me)
 Is this file referenced somewhere in the wiki ?

Not yet, no.  Probably should be linked from the HowToContribute pages for 
Lucene and Solr.  Feel free to add the link yourself.

Steve


RE: Is it possible to build Solr as a maven project?

2011-05-10 Thread Steven A Rowe
On 5/10/2011 at 9:57 AM, Gabriele Kahlout wrote:
 On Tue, May 10, 2011 at 3:50 PM, Steven A Rowe sar...@syr.edu wrote:
  http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_1/dev-tools/maven/README.maven
[...]
  svn co http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_1
 
 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...).

FYI, the official Solr source distribution is generated by running svn 
export using the same revision as the release tag, but excluding dev-tools/.  
(I wrote the build pieces to generate the source release.)  

Checking a release tag out of Subversion is pretty damn official.

Steve



RE: Is it possible to build Solr as a maven project?

2011-05-10 Thread lboutros
Steve,

I'm not used to update wikis, but I've added a small part after the IntelliJ
part here :

http://wiki.apache.org/solr/HowToContribute

Ludovic.

-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2923247.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: Is it possible to build Solr as a maven project?

2011-05-05 Thread Steven A Rowe
Hi Gabriele,

The sequence should be

1. svn update
2. ant get-maven-poms
3. mvn -N -Pbootstrap install

I think you left out #2 - there was a very recent change to the POMs that 
affects the noggit jar name.

Steve

 -Original Message-
 From: Gabriele Kahlout [mailto:gabri...@mysimpatico.com]
 Sent: Thursday, May 05, 2011 1:22 AM
 To: solr-user@lucene.apache.org
 Subject: Re: Is it possible to build Solr as a maven project?
 
 Thank you so much for this gem, David!
 
 I still don't manage to build though:
 $ svn update
 At revision 1099684.
 
 $ mvn clean
 
 $ mvn -N -Pbootstrap install
 
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 8.234s
 [INFO] Finished at: Thu May 05 07:21:34 CEST 2011
 [INFO] Final Memory: 12M/81M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file
 (install-solr-noggit) on project lucene-solr-grandparent: Error
 installing
 artifact 'org.apache.solr:solr-noggit:jar': Failed to install artifact
 org.apache.solr:solr-noggit:jar:4.0-SNAPSHOT:
 /Users/simpatico/debug/solr4/solr/lib/apache-solr-noggit-r944541.jar (No
 such file or directory) - [Help 1]
 
 
 On Thu, May 5, 2011 at 12:02 AM, Smiley, David W. dsmi...@mitre.org
 wrote:
 
  Hi folks. What you're supposed to do is run:
 
  mvn -N -Pbootstrap install
 
  as the very first one-time only step.  It copies several custom jar
 files
  into your local repository. From then on you can build like normally
 with
  maven.
 
  ~ David Smiley
  Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/
 
 
  On May 4, 2011, at 2:36 PM, Gabriele Kahlout wrote:
 
   but it doesn't build.
  
   Now, I've checked out solr4 from the trunk and tried to build the
 maven
   project there, but it fails downloading berkleydb:
  
   BUILD FAILURE
   -
 ---
   Total time: 1:07.367s
   Finished at: Wed May 04 20:33:29 CEST 2011
   Final Memory: 24M/81M
   -
 ---
   Failed to execute goal on project lucene-bdb: Could not resolve
  dependencies
   for project org.apache.lucene:lucene-bdb:jar:4.0-SNAPSHOT: Failure to
  find
   com.sleepycat:berkeleydb:jar:4.7.25 in
   http://download.carrot2.org/maven2/was cached in the local
 repository,
   resolution will not be reattempted until
   the update interval of carrot2.org has elapsed or updates are forced
 -
   [Help 1]
  
  
   I looked up to get the jar on my own but I didn't find a 4.7.25
 version,
  the
   latest on oracle website (java edition) is 4.1. Where can i download
 this
   maven dependency from?
  
   On Wed, May 4, 2011 at 1:26 PM, Gabriele Kahlout
   gabri...@mysimpatico.comwrote:
  
   It worked after checking out the dev-tools folder. Thank you!
  
  
   On Wed, May 4, 2011 at 1:20 PM, lboutros boutr...@gmail.com wrote:
  
   property name=version value=3.1-SNAPSHOT/
   target name=get-maven-poms
   description=Copy Maven POMs from dev-tools/maven/ to their
   target
   locations
 copy todir=. overwrite=true
   fileset dir=${basedir}/dev-tools/maven/
   filterset begintoken=@ endtoken=@
 filter token=version value=${version}/
   /filterset
   globmapper from=*.template to=*/
 /copy
   /target
  
  
  
  
   --
   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

Re: Is it possible to build Solr as a maven project?

2011-05-05 Thread Gabriele Kahlout
Okay, that sequence worked, but then shouldn't I be able to do $ mvn install
afterwards? This is what I get:

...
Compiling 478 source files to /Users/simpatico/debug/solr4/solr/build/solr
-
COMPILATION ERROR :
-
org/apache/solr/spelling/suggest/fst/InputStreamDataInput.java:[7,27]
package com.google.common.io does not exist
org/apache/solr/spelling/suggest/fst/FSTLookup.java:[28,32] package
com.google.common.collect does not exist
org/apache/solr/spelling/suggest/fst/FSTLookup.java:[29,27] package
com.google.common.io does not exist
org/apache/solr/spelling/suggest/fst/InputStreamDataInput.java:[29,4] cannot
find symbol
symbol  : variable ByteStreams
location: class org.apache.solr.spelling.suggest.fst.InputStreamDataInput
org/apache/solr/spelling/suggest/fst/FSTLookup.java:[128,57] cannot find
symbol
symbol  : variable Lists
location: class org.apache.solr.spelling.suggest.fst.FSTLookup
org/apache/solr/spelling/suggest/fst/FSTLookup.java:[170,26] cannot find
symbol
symbol  : variable Lists
location: class org.apache.solr.spelling.suggest.fst.FSTLookup
org/apache/solr/spelling/suggest/fst/FSTLookup.java:[203,35] cannot find
symbol
symbol  : variable Lists
location: class org.apache.solr.spelling.suggest.fst.FSTLookup
org/apache/solr/spelling/suggest/fst/FSTLookup.java:[529,6] cannot find
symbol
symbol  : variable Closeables
location: class org.apache.solr.spelling.suggest.fst.FSTLookup
org/apache/solr/spelling/suggest/fst/FSTLookup.java:[551,6] cannot find
symbol
symbol  : variable Closeables
location: class org.apache.solr.spelling.suggest.fst.FSTLookup
9 errors
-

Reactor Summary:

Grandparent POM for Apache Lucene Java and Apache Solr  SUCCESS [13.255s]
Lucene parent POM . SUCCESS [0.199s]
Lucene Core ... SUCCESS [15.528s]
Lucene Test Framework . SUCCESS [4.657s]
Lucene Common Analyzers ... SUCCESS [16.770s]
Lucene Contrib Ant  SUCCESS [1.103s]
Lucene Contrib bdb  SUCCESS [0.883s]
Lucene Contrib bdb-je . SUCCESS [0.872s]
Lucene Database aggregator POM  SUCCESS [0.091s]
Lucene Demo ... SUCCESS [0.842s]
Lucene Memory . SUCCESS [0.726s]
Lucene Queries  SUCCESS [1.559s]
Lucene Highlighter  SUCCESS [3.007s]
Lucene InstantiatedIndex .. SUCCESS [1.224s]
Lucene Lucli .. SUCCESS [1.579s]
Lucene Miscellaneous .. SUCCESS [1.163s]
Lucene Query Parser ... SUCCESS [4.274s]
Lucene Spatial  SUCCESS [1.159s]
Lucene Spellchecker ... SUCCESS [0.841s]
Lucene Swing .. SUCCESS [1.177s]
Lucene Wordnet  SUCCESS [0.816s]
Lucene XML Query Parser ... SUCCESS [1.197s]
Lucene Contrib aggregator POM . SUCCESS [0.079s]
Lucene ICU Analysis Components  SUCCESS [1.494s]
Lucene Phonetic Filters ... SUCCESS [0.759s]
Lucene Smart Chinese Analyzer . SUCCESS [3.534s]
Lucene Stempel Analyzer ... SUCCESS [1.537s]
Lucene Analysis Modules aggregator POM  SUCCESS [0.081s]
Lucene Benchmark .. SUCCESS [3.693s]
Lucene Modules aggregator POM . SUCCESS [0.147s]
Apache Solr parent POM  SUCCESS [0.099s]
Apache Solr Solrj . SUCCESS [3.670s]
Apache Solr Core .. FAILURE [7.842s]

On Thu, May 5, 2011 at 3:36 PM, Steven A Rowe sar...@syr.edu wrote:

 Hi Gabriele,

 The sequence should be

 1. svn update
 2. ant get-maven-poms
 3. mvn -N -Pbootstrap install

 I think you left out #2 - there was a very recent change to the POMs that
 affects the noggit jar name.

 Steve

  -Original Message-
  From: Gabriele Kahlout [mailto:gabri...@mysimpatico.com]
  Sent: Thursday, May 05, 2011 1:22 AM
  To: solr-user@lucene.apache.org
  Subject: Re: Is it possible to build Solr as a maven project?
 
  Thank you so much for this gem, David!
 
  I still don't manage to build though:
  $ svn update
  At revision 1099684.
 
  $ mvn clean
 
  $ mvn -N -Pbootstrap install
 
  [INFO]
  
  [INFO] BUILD FAILURE
  [INFO

RE: Is it possible to build Solr as a maven project?

2011-05-05 Thread Steven A Rowe
Hi Gabriele,

On 5/5/2011 at 9:57 AM, Gabriele Kahlout wrote:
 Okay, that sequence worked, but then shouldn't I be able to do $ mvn
 install afterwards? This is what I get:
...
 COMPILATION ERROR :
 -
 org/apache/solr/spelling/suggest/fst/InputStreamDataInput.java:[7,27]
 package com.google.common.io does not exist
 org/apache/solr/spelling/suggest/fst/FSTLookup.java:[28,32] package
 com.google.common.collect does not exist
...

mvn install should work, but it doesn't - I can reproduce this error on my 
machine.  This is a bug in the Maven build.  

The nightly Lucene/Solr Maven build on Jenkins should have caught this 
compilation failure three weeks ago, when Dawid Weiss committed his work under 
https://issues.apache.org/jira/browse/SOLR-2378.  Unfortunately, the nightly 
builds were using the results of compilation under the Ant build, rather than 
compiling from scratch.  I have committed a fix to the nightly build script so 
this won't happen again.

The Maven build bug is that the Solr-core Google Guava dependency was scoped as 
test-only.  Until SOLR-2378, that was true, but it is no longer.  So the fix is 
simply to remove scopetest/scope from the dependency declaration in the 
Solr-core POM.  I've committed this too.

If you svn update you will get these two fixes.

Thank you very much for persisting, and reporting the problems you have 
encountered.

Steve



Re: Is it possible to build Solr as a maven project?

2011-05-05 Thread lboutros
Thanks Steve, this will be really simpler next time :)

Is it documented somewhere ? If no, perhaps could we add something in this
page for example ?

http://wiki.apache.org/solr/FrontPage#Solr_Development

or here :

http://wiki.apache.org/solr/NightlyBuilds

Ludovic.

2011/5/5 steve_rowe [via Lucene] 
ml-node+2904178-33932273-383...@n3.nabble.com

 Hi Gabriele,

 On 5/5/2011 at 9:57 AM, Gabriele Kahlout wrote:
  Okay, that sequence worked, but then shouldn't I be able to do $ mvn
  install afterwards? This is what I get:
 ...
  COMPILATION ERROR :
  -
  org/apache/solr/spelling/suggest/fst/InputStreamDataInput.java:[7,27]
  package com.google.common.io does not exist
  org/apache/solr/spelling/suggest/fst/FSTLookup.java:[28,32] package
  com.google.common.collect does not exist
 ...

 mvn install should work, but it doesn't - I can reproduce this error on
 my machine.  This is a bug in the Maven build.

 The nightly Lucene/Solr Maven build on Jenkins should have caught this
 compilation failure three weeks ago, when Dawid Weiss committed his work
 under https://issues.apache.org/jira/browse/SOLR-2378.  Unfortunately,
 the nightly builds were using the results of compilation under the Ant
 build, rather than compiling from scratch.  I have committed a fix to the
 nightly build script so this won't happen again.

 The Maven build bug is that the Solr-core Google Guava dependency was
 scoped as test-only.  Until SOLR-2378, that was true, but it is no longer.
  So the fix is simply to remove scopetest/scope from the dependency
 declaration in the Solr-core POM.  I've committed this too.

 If you svn update you will get these two fixes.

 Thank you very much for persisting, and reporting the problems you have
 encountered.

 Steve



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2904178.html
  To start a new topic under Solr - User, email
 ml-node+472068-1765922688-383...@n3.nabble.com
 To unsubscribe from Solr - User, click 
 herehttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=472068code=Ym91dHJvc2xAZ21haWwuY29tfDQ3MjA2OHw0Mzk2MDUxNjE=.




-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2904375.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Is it possible to build Solr as a maven project?

2011-05-05 Thread Gabriele Kahlout
Steven, thank you!

$ mvn -DskipTests=true install
works!

[INFO] Reactor Summary:
[INFO]
[INFO] Grandparent POM for Apache Lucene Java and Apache Solr  SUCCESS
[13.142s]
[INFO] Lucene parent POM . SUCCESS [0.345s]
[INFO] Lucene Core ... SUCCESS [18.448s]
[INFO] Lucene Test Framework . SUCCESS [3.560s]
[INFO] Lucene Common Analyzers ... SUCCESS [7.739s]
[INFO] Lucene Contrib Ant  SUCCESS [1.265s]
[INFO] Lucene Contrib bdb  SUCCESS [1.332s]
[INFO] Lucene Contrib bdb-je . SUCCESS [1.321s]
[INFO] Lucene Database aggregator POM  SUCCESS [0.242s]
[INFO] Lucene Demo ... SUCCESS [1.813s]
[INFO] Lucene Memory . SUCCESS [2.412s]
[INFO] Lucene Queries  SUCCESS [2.275s]
[INFO] Lucene Highlighter  SUCCESS [2.985s]
[INFO] Lucene InstantiatedIndex .. SUCCESS [2.170s]
[INFO] Lucene Lucli .. SUCCESS [1.814s]
[INFO] Lucene Miscellaneous .. SUCCESS [1.998s]
[INFO] Lucene Query Parser ... SUCCESS [2.755s]
[INFO] Lucene Spatial  SUCCESS [1.314s]
[INFO] Lucene Spellchecker ... SUCCESS [1.535s]
[INFO] Lucene Swing .. SUCCESS [1.233s]
[INFO] Lucene Wordnet  SUCCESS [1.309s]
[INFO] Lucene XML Query Parser ... SUCCESS [1.483s]
[INFO] Lucene Contrib aggregator POM . SUCCESS [0.151s]
[INFO] Lucene ICU Analysis Components  SUCCESS [2.728s]
[INFO] Lucene Phonetic Filters ... SUCCESS [1.765s]
[INFO] Lucene Smart Chinese Analyzer . SUCCESS [3.709s]
[INFO] Lucene Stempel Analyzer ... SUCCESS [4.241s]
[INFO] Lucene Analysis Modules aggregator POM  SUCCESS [0.213s]
[INFO] Lucene Benchmark .. SUCCESS [2.926s]
[INFO] Lucene Modules aggregator POM . SUCCESS [0.307s]
[INFO] Apache Solr parent POM  SUCCESS [0.233s]
[INFO] Apache Solr Solrj . SUCCESS [3.780s]
[INFO] Apache Solr Core .. SUCCESS [9.693s]
[INFO] Apache Solr Search Server . SUCCESS [6.739s]
[INFO] Apache Solr Test Framework  SUCCESS [2.699s]
[INFO] Apache Solr Analysis Extras ... SUCCESS [3.868s]
[INFO] Apache Solr Clustering  SUCCESS [6.736s]
[INFO] Apache Solr DataImportHandler . SUCCESS [4.914s]
[INFO] Apache Solr DataImportHandler Extras .. SUCCESS [2.721s]
[INFO] Apache Solr DataImportHandler aggregator POM .. SUCCESS [0.253s]
[INFO] Apache Solr Content Extraction Library  SUCCESS [1.909s]
[INFO] Apache Solr - UIMA integration  SUCCESS [1.922s]
[INFO] Apache Solr Contrib aggregator POM  SUCCESS [0.211s]
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 2:18.040s
[INFO] Finished at: Thu May 05 20:39:09 CEST 2011
[INFO] Final Memory: 38M/90M
[INFO]


On Thu, May 5, 2011 at 6:53 PM, Steven A Rowe sar...@syr.edu wrote:

 Hi Gabriele,

 On 5/5/2011 at 9:57 AM, Gabriele Kahlout wrote:
  Okay, that sequence worked, but then shouldn't I be able to do $ mvn
  install afterwards? This is what I get:
 ...
  COMPILATION ERROR :
  -
  org/apache/solr/spelling/suggest/fst/InputStreamDataInput.java:[7,27]
  package com.google.common.io does not exist
  org/apache/solr/spelling/suggest/fst/FSTLookup.java:[28,32] package
  com.google.common.collect does not exist
 ...

 mvn install should work, but it doesn't - I can reproduce this error on
 my machine.  This is a bug in the Maven build.

 The nightly Lucene/Solr Maven build on Jenkins should have caught this
 compilation failure three weeks ago, when Dawid Weiss committed his work
 under https://issues.apache.org/jira/browse/SOLR-2378.  Unfortunately,
 the nightly builds were using the results of compilation under the Ant
 build, rather than compiling from scratch.  I have committed a fix to the
 nightly build script so this won't happen again.

 The Maven build bug is that the Solr-core Google Guava dependency was
 scoped as test-only.  Until SOLR-2378, that was true, but it is no longer.
  So 

RE: Is it possible to build Solr as a maven project?

2011-05-05 Thread Steven A Rowe
You're welcome, I'm glad you got it to work. - Steve

 -Original Message-
 From: Gabriele Kahlout [mailto:gabri...@mysimpatico.com]
 Sent: Thursday, May 05, 2011 2:41 PM
 To: solr-user@lucene.apache.org
 Subject: Re: Is it possible to build Solr as a maven project?
 
 Steven, thank you!
 
 $ mvn -DskipTests=true install
 works!
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] Grandparent POM for Apache Lucene Java and Apache Solr  SUCCESS
 [13.142s]
 [INFO] Lucene parent POM . SUCCESS
 [0.345s]
 [INFO] Lucene Core ... SUCCESS
 [18.448s]
 [INFO] Lucene Test Framework . SUCCESS
 [3.560s]
 [INFO] Lucene Common Analyzers ... SUCCESS
 [7.739s]
 [INFO] Lucene Contrib Ant  SUCCESS
 [1.265s]
 [INFO] Lucene Contrib bdb  SUCCESS
 [1.332s]
 [INFO] Lucene Contrib bdb-je . SUCCESS
 [1.321s]
 [INFO] Lucene Database aggregator POM  SUCCESS
 [0.242s]
 [INFO] Lucene Demo ... SUCCESS
 [1.813s]
 [INFO] Lucene Memory . SUCCESS
 [2.412s]
 [INFO] Lucene Queries  SUCCESS
 [2.275s]
 [INFO] Lucene Highlighter  SUCCESS
 [2.985s]
 [INFO] Lucene InstantiatedIndex .. SUCCESS
 [2.170s]
 [INFO] Lucene Lucli .. SUCCESS
 [1.814s]
 [INFO] Lucene Miscellaneous .. SUCCESS
 [1.998s]
 [INFO] Lucene Query Parser ... SUCCESS
 [2.755s]
 [INFO] Lucene Spatial  SUCCESS
 [1.314s]
 [INFO] Lucene Spellchecker ... SUCCESS
 [1.535s]
 [INFO] Lucene Swing .. SUCCESS
 [1.233s]
 [INFO] Lucene Wordnet  SUCCESS
 [1.309s]
 [INFO] Lucene XML Query Parser ... SUCCESS
 [1.483s]
 [INFO] Lucene Contrib aggregator POM . SUCCESS
 [0.151s]
 [INFO] Lucene ICU Analysis Components  SUCCESS
 [2.728s]
 [INFO] Lucene Phonetic Filters ... SUCCESS
 [1.765s]
 [INFO] Lucene Smart Chinese Analyzer . SUCCESS
 [3.709s]
 [INFO] Lucene Stempel Analyzer ... SUCCESS
 [4.241s]
 [INFO] Lucene Analysis Modules aggregator POM  SUCCESS
 [0.213s]
 [INFO] Lucene Benchmark .. SUCCESS
 [2.926s]
 [INFO] Lucene Modules aggregator POM . SUCCESS
 [0.307s]
 [INFO] Apache Solr parent POM  SUCCESS
 [0.233s]
 [INFO] Apache Solr Solrj . SUCCESS
 [3.780s]
 [INFO] Apache Solr Core .. SUCCESS
 [9.693s]
 [INFO] Apache Solr Search Server . SUCCESS
 [6.739s]
 [INFO] Apache Solr Test Framework  SUCCESS
 [2.699s]
 [INFO] Apache Solr Analysis Extras ... SUCCESS
 [3.868s]
 [INFO] Apache Solr Clustering  SUCCESS
 [6.736s]
 [INFO] Apache Solr DataImportHandler . SUCCESS
 [4.914s]
 [INFO] Apache Solr DataImportHandler Extras .. SUCCESS
 [2.721s]
 [INFO] Apache Solr DataImportHandler aggregator POM .. SUCCESS
 [0.253s]
 [INFO] Apache Solr Content Extraction Library  SUCCESS
 [1.909s]
 [INFO] Apache Solr - UIMA integration  SUCCESS
 [1.922s]
 [INFO] Apache Solr Contrib aggregator POM  SUCCESS
 [0.211s]
 [INFO]
 
 [INFO] BUILD SUCCESS
 [INFO]
 
 [INFO] Total time: 2:18.040s
 [INFO] Finished at: Thu May 05 20:39:09 CEST 2011
 [INFO] Final Memory: 38M/90M
 [INFO]
 
 
 On Thu, May 5, 2011 at 6:53 PM, Steven A Rowe sar...@syr.edu wrote:
 
  Hi Gabriele,
 
  On 5/5/2011 at 9:57 AM, Gabriele Kahlout wrote:
   Okay, that sequence worked, but then shouldn't I be able to do $ mvn
   install afterwards? This is what I get:
  ...
   COMPILATION ERROR :
   -
   org/apache/solr/spelling/suggest/fst/InputStreamDataInput.java:[7,27]
   package com.google.common.io does not exist
   org/apache/solr/spelling/suggest/fst/FSTLookup.java:[28,32] package
   com.google.common.collect does not exist
  ...
 
  mvn install should work, but it doesn't - I can reproduce this error
 on
  my machine.  This is a bug in the Maven build.
 
  The nightly Lucene/Solr Maven build on Jenkins should have caught this
  compilation failure three weeks ago, when Dawid Weiss committed his
 work
  under https

Re: Is it possible to build Solr as a maven project?

2011-05-05 Thread Gabriele Kahlout
Just for the reference.

$ svn update
At revision 1099940.

On Thu, May 5, 2011 at 9:14 PM, Steven A Rowe sar...@syr.edu wrote:

 You're welcome, I'm glad you got it to work. - Steve

  -Original Message-
  From: Gabriele Kahlout [mailto:gabri...@mysimpatico.com]
  Sent: Thursday, May 05, 2011 2:41 PM
  To: solr-user@lucene.apache.org
  Subject: Re: Is it possible to build Solr as a maven project?
 
  Steven, thank you!
 
  $ mvn -DskipTests=true install
  works!
 
  [INFO] Reactor Summary:
  [INFO]
  [INFO] Grandparent POM for Apache Lucene Java and Apache Solr  SUCCESS
  [13.142s]
  [INFO] Lucene parent POM . SUCCESS
  [0.345s]
  [INFO] Lucene Core ... SUCCESS
  [18.448s]
  [INFO] Lucene Test Framework . SUCCESS
  [3.560s]
  [INFO] Lucene Common Analyzers ... SUCCESS
  [7.739s]
  [INFO] Lucene Contrib Ant  SUCCESS
  [1.265s]
  [INFO] Lucene Contrib bdb  SUCCESS
  [1.332s]
  [INFO] Lucene Contrib bdb-je . SUCCESS
  [1.321s]
  [INFO] Lucene Database aggregator POM  SUCCESS
  [0.242s]
  [INFO] Lucene Demo ... SUCCESS
  [1.813s]
  [INFO] Lucene Memory . SUCCESS
  [2.412s]
  [INFO] Lucene Queries  SUCCESS
  [2.275s]
  [INFO] Lucene Highlighter  SUCCESS
  [2.985s]
  [INFO] Lucene InstantiatedIndex .. SUCCESS
  [2.170s]
  [INFO] Lucene Lucli .. SUCCESS
  [1.814s]
  [INFO] Lucene Miscellaneous .. SUCCESS
  [1.998s]
  [INFO] Lucene Query Parser ... SUCCESS
  [2.755s]
  [INFO] Lucene Spatial  SUCCESS
  [1.314s]
  [INFO] Lucene Spellchecker ... SUCCESS
  [1.535s]
  [INFO] Lucene Swing .. SUCCESS
  [1.233s]
  [INFO] Lucene Wordnet  SUCCESS
  [1.309s]
  [INFO] Lucene XML Query Parser ... SUCCESS
  [1.483s]
  [INFO] Lucene Contrib aggregator POM . SUCCESS
  [0.151s]
  [INFO] Lucene ICU Analysis Components  SUCCESS
  [2.728s]
  [INFO] Lucene Phonetic Filters ... SUCCESS
  [1.765s]
  [INFO] Lucene Smart Chinese Analyzer . SUCCESS
  [3.709s]
  [INFO] Lucene Stempel Analyzer ... SUCCESS
  [4.241s]
  [INFO] Lucene Analysis Modules aggregator POM  SUCCESS
  [0.213s]
  [INFO] Lucene Benchmark .. SUCCESS
  [2.926s]
  [INFO] Lucene Modules aggregator POM . SUCCESS
  [0.307s]
  [INFO] Apache Solr parent POM  SUCCESS
  [0.233s]
  [INFO] Apache Solr Solrj . SUCCESS
  [3.780s]
  [INFO] Apache Solr Core .. SUCCESS
  [9.693s]
  [INFO] Apache Solr Search Server . SUCCESS
  [6.739s]
  [INFO] Apache Solr Test Framework  SUCCESS
  [2.699s]
  [INFO] Apache Solr Analysis Extras ... SUCCESS
  [3.868s]
  [INFO] Apache Solr Clustering  SUCCESS
  [6.736s]
  [INFO] Apache Solr DataImportHandler . SUCCESS
  [4.914s]
  [INFO] Apache Solr DataImportHandler Extras .. SUCCESS
  [2.721s]
  [INFO] Apache Solr DataImportHandler aggregator POM .. SUCCESS
  [0.253s]
  [INFO] Apache Solr Content Extraction Library  SUCCESS
  [1.909s]
  [INFO] Apache Solr - UIMA integration  SUCCESS
  [1.922s]
  [INFO] Apache Solr Contrib aggregator POM  SUCCESS
  [0.211s]
  [INFO]
  
  [INFO] BUILD SUCCESS
  [INFO]
  
  [INFO] Total time: 2:18.040s
  [INFO] Finished at: Thu May 05 20:39:09 CEST 2011
  [INFO] Final Memory: 38M/90M
  [INFO]
  
 
  On Thu, May 5, 2011 at 6:53 PM, Steven A Rowe sar...@syr.edu wrote:
 
   Hi Gabriele,
  
   On 5/5/2011 at 9:57 AM, Gabriele Kahlout wrote:
Okay, that sequence worked, but then shouldn't I be able to do $ mvn
install afterwards? This is what I get:
   ...
COMPILATION ERROR :
-
org/apache/solr/spelling/suggest/fst/InputStreamDataInput.java:[7,27]
package com.google.common.io does not exist
org/apache/solr/spelling/suggest/fst/FSTLookup.java:[28,32] package
com.google.common.collect does not exist
   ...
  
   mvn install should work, but it doesn't

Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
Hello,

I'm trying to modify Solr and I think debugging will be very useful to
understand what's going on. Hence I'd like to use an IDE (NetBeans)
which automatically supports Maven projects. I see under src/maven
that there are templates but I'm not sure how to use them to mavenize
the build/project. Nothing on the Wiki. I've seen issue solr-19 and
some messages on older msgs on the mailing list too.

Any instructions?


-- 
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)).


Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread lboutros
In the ant script there is a target to generate maven's artifacts.

After that, you will be able to open the project as a standard maven
project.

Ludovic.

2011/5/4 Gabriele Kahlout [via Lucene] 
ml-node+2898068-621882422-383...@n3.nabble.com

 Hello,

 I'm trying to modify Solr and I think debugging will be very useful to
 understand what's going on. Hence I'd like to use an IDE (NetBeans)
 which automatically supports Maven projects. I see under src/maven
 that there are templates but I'm not sure how to use them to mavenize
 the build/project. Nothing on the Wiki. I've seen issue solr-19 and
 some messages on older msgs on the mailing list too.

 Any instructions?


 --
 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)).


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2898068.html
  To start a new topic under Solr - User, email
 ml-node+472068-1765922688-383...@n3.nabble.com
 To unsubscribe from Solr - User, click 
 herehttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=472068code=Ym91dHJvc2xAZ21haWwuY29tfDQ3MjA2OHw0Mzk2MDUxNjE=.




-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2898084.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
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
[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
[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*

On Wed, May 4, 2011 at 11:50 AM, lboutros boutr...@gmail.com wrote:
 In the ant script there is a target to generate maven's artifacts.

 After that, you will be able to open the project as a standard maven
 project.

 Ludovic.

 2011/5/4 Gabriele Kahlout [via Lucene] 
 ml-node+2898068-621882422-383...@n3.nabble.com

 Hello,

 I'm trying to modify Solr and I think debugging will be very useful to
 understand what's going on. Hence I'd like to use an IDE (NetBeans)
 which automatically supports Maven projects. I see under src/maven
 that there are templates but I'm not sure how to use them to mavenize
 the build/project. Nothing on the Wiki. I've seen issue solr-19 and
 some messages on older msgs on the mailing list too.

 Any instructions?


 --
 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)).


 --
  If you reply to this email, your message will be added to the discussion
 below:


http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2898068.html
  To start a new topic under Solr - User, email
 ml-node+472068-1765922688-383...@n3.nabble.com
 To unsubscribe from Solr - User, click here
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=472068code=Ym91dHJvc2xAZ21haWwuY29tfDQ3MjA2OHw0Mzk2MDUxNjE=
.




 -
 Jouve
 France.
 --
 View this message in context:
http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2898084.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

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread lboutros
oups,

sorry, this was not the target I used (this one should work too, but...),
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

 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

 [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

 [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.

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
On Wed, May 4, 2011 at 1:11 PM, lboutros boutr...@gmail.com wrote:

 oups,

 sorry, this was not the target I used (this one should work too, but...),
 the one I used is get-maven-poms. That will just create pom files and copy
 them to their right target locations.


I don't have get-maven-poms target in my script.


 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 ?


the official latest: 3.1

Maybe I can copy-paste from the build script you are using?



 Ludovic.

 2011/5/4 Gabriele Kahlout [via Lucene] 
 ml-node+2898211-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
 
  [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
 
  [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)).


Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread lboutros
ok, this is part of my build.xml (from the svn repository) :

  property name=version value=3.1-SNAPSHOT/
  target name=get-maven-poms 
  description=Copy Maven POMs from dev-tools/maven/ to their target
locations
copy todir=. overwrite=true
  fileset dir=${basedir}/dev-tools/maven/
  filterset begintoken=@ endtoken=@
filter token=version value=${version}/
  /filterset
  globmapper from=*.template to=*/
/copy
  /target

Ludovic.

-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2898339.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
It worked after checking out the dev-tools folder. Thank you!

On Wed, May 4, 2011 at 1:20 PM, lboutros boutr...@gmail.com wrote:

  property name=version value=3.1-SNAPSHOT/
  target name=get-maven-poms
  description=Copy Maven POMs from dev-tools/maven/ to their target
 locations
copy todir=. overwrite=true
  fileset dir=${basedir}/dev-tools/maven/
  filterset begintoken=@ endtoken=@
filter token=version value=${version}/
  /filterset
  globmapper from=*.template to=*/
/copy
  /target




-- 
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)).


Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
but it doesn't build.

Now, I've checked out solr4 from the trunk and tried to build the maven
project there, but it fails downloading berkleydb:

BUILD FAILURE

Total time: 1:07.367s
Finished at: Wed May 04 20:33:29 CEST 2011
Final Memory: 24M/81M

Failed to execute goal on project lucene-bdb: Could not resolve dependencies
for project org.apache.lucene:lucene-bdb:jar:4.0-SNAPSHOT: Failure to find
com.sleepycat:berkeleydb:jar:4.7.25 in
http://download.carrot2.org/maven2/was cached in the local repository,
resolution will not be reattempted until
the update interval of carrot2.org has elapsed or updates are forced -
[Help 1]


I looked up to get the jar on my own but I didn't find a 4.7.25 version, the
latest on oracle website (java edition) is 4.1. Where can i download this
maven dependency from?

On Wed, May 4, 2011 at 1:26 PM, Gabriele Kahlout
gabri...@mysimpatico.comwrote:

 It worked after checking out the dev-tools folder. Thank you!


 On Wed, May 4, 2011 at 1:20 PM, lboutros boutr...@gmail.com wrote:

  property name=version value=3.1-SNAPSHOT/
  target name=get-maven-poms
  description=Copy Maven POMs from dev-tools/maven/ to their
 target
 locations
copy todir=. overwrite=true
  fileset dir=${basedir}/dev-tools/maven/
  filterset begintoken=@ endtoken=@
filter token=version value=${version}/
  /filterset
  globmapper from=*.template to=*/
/copy
  /target




 --
 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)).


Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread lboutros
I do not build this part, I don't need it.

The lib was present in the branch_3x branch, but is not there anymore.

You can download it here :

http://search.lucidimagination.com/search/out?u=http%3A%2F%2Fdownloads.osafoundation.org%2Fdb%2Fdb-4.7.25.jar

You have to install it locally.

Ludovic.

2011/5/4 Gabriele Kahlout [via Lucene] 
ml-node+2900157-349704242-383...@n3.nabble.com

 but it doesn't build.

 Now, I've checked out solr4 from the trunk and tried to build the maven
 project there, but it fails downloading berkleydb:

 BUILD FAILURE
 
 Total time: 1:07.367s
 Finished at: Wed May 04 20:33:29 CEST 2011
 Final Memory: 24M/81M
 
 Failed to execute goal on project lucene-bdb: Could not resolve
 dependencies
 for project org.apache.lucene:lucene-bdb:jar:4.0-SNAPSHOT: Failure to find
 com.sleepycat:berkeleydb:jar:4.7.25 in
 http://download.carrot2.org/maven2/was cached in the local repository,
 resolution will not be reattempted until
 the update interval of carrot2.org has elapsed or updates are forced -
 [Help 1]


 I looked up to get the jar on my own but I didn't find a 4.7.25 version,
 the
 latest on oracle website (java edition) is 4.1. Where can i download this
 maven dependency from?

 On Wed, May 4, 2011 at 1:26 PM, Gabriele Kahlout
 [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2900157i=0by-user=twrote:





-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2900323.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
Neither do i..but i was doing mvn install.. what do you do?

On Wed, May 4, 2011 at 9:11 PM, lboutros boutr...@gmail.com wrote:

 I do not build this part, I don't need it.

 The lib was present in the branch_3x branch, but is not there anymore.

 You can download it here :


 http://search.lucidimagination.com/search/out?u=http%3A%2F%2Fdownloads.osafoundation.org%2Fdb%2Fdb-4.7.25.jar

 You have to install it locally.

 Ludovic.

 2011/5/4 Gabriele Kahlout [via Lucene] 
 ml-node+2900157-349704242-383...@n3.nabble.com

  but it doesn't build.
 
  Now, I've checked out solr4 from the trunk and tried to build the maven
  project there, but it fails downloading berkleydb:
 
  BUILD FAILURE
  
  Total time: 1:07.367s
  Finished at: Wed May 04 20:33:29 CEST 2011
  Final Memory: 24M/81M
  
  Failed to execute goal on project lucene-bdb: Could not resolve
  dependencies
  for project org.apache.lucene:lucene-bdb:jar:4.0-SNAPSHOT: Failure to
 find
  com.sleepycat:berkeleydb:jar:4.7.25 in
  http://download.carrot2.org/maven2/was cached in the local repository,
  resolution will not be reattempted until
  the update interval of carrot2.org has elapsed or updates are forced -
  [Help 1]
 
 
  I looked up to get the jar on my own but I didn't find a 4.7.25 version,
  the
  latest on oracle website (java edition) is 4.1. Where can i download this
  maven dependency from?
 
  On Wed, May 4, 2011 at 1:26 PM, Gabriele Kahlout
  [hidden email]
 http://user/SendEmail.jtp?type=nodenode=2900157i=0by-user=twrote:
 
 
 


 -
 Jouve
 France.
 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2900323.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)).


Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread lboutros
I opened and built my needed projects in Netbeans, i.e.: Solr Core, Solr
Search Server, Solrj, Lucene Core etc

But with the given library you should go to the next step.

Ludovic.

-
Jouve
France.
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Is-it-possible-to-build-Solr-as-a-maven-project-tp2898068p2900363.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Smiley, David W.
Hi folks. What you're supposed to do is run:

mvn -N -Pbootstrap install 

as the very first one-time only step.  It copies several custom jar files into 
your local repository. From then on you can build like normally with maven.

~ David Smiley
Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/


On May 4, 2011, at 2:36 PM, Gabriele Kahlout wrote:

 but it doesn't build.
 
 Now, I've checked out solr4 from the trunk and tried to build the maven
 project there, but it fails downloading berkleydb:
 
 BUILD FAILURE
 
 Total time: 1:07.367s
 Finished at: Wed May 04 20:33:29 CEST 2011
 Final Memory: 24M/81M
 
 Failed to execute goal on project lucene-bdb: Could not resolve dependencies
 for project org.apache.lucene:lucene-bdb:jar:4.0-SNAPSHOT: Failure to find
 com.sleepycat:berkeleydb:jar:4.7.25 in
 http://download.carrot2.org/maven2/was cached in the local repository,
 resolution will not be reattempted until
 the update interval of carrot2.org has elapsed or updates are forced -
 [Help 1]
 
 
 I looked up to get the jar on my own but I didn't find a 4.7.25 version, the
 latest on oracle website (java edition) is 4.1. Where can i download this
 maven dependency from?
 
 On Wed, May 4, 2011 at 1:26 PM, Gabriele Kahlout
 gabri...@mysimpatico.comwrote:
 
 It worked after checking out the dev-tools folder. Thank you!
 
 
 On Wed, May 4, 2011 at 1:20 PM, lboutros boutr...@gmail.com wrote:
 
 property name=version value=3.1-SNAPSHOT/
 target name=get-maven-poms
 description=Copy Maven POMs from dev-tools/maven/ to their
 target
 locations
   copy todir=. overwrite=true
 fileset dir=${basedir}/dev-tools/maven/
 filterset begintoken=@ endtoken=@
   filter token=version value=${version}/
 /filterset
 globmapper from=*.template to=*/
   /copy
 /target
 
 
 
 
 --
 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)).







Re: Is it possible to build Solr as a maven project?

2011-05-04 Thread Gabriele Kahlout
Thank you so much for this gem, David!

I still don't manage to build though:
$ svn update
At revision 1099684.

$ mvn clean

$ mvn -N -Pbootstrap install

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 8.234s
[INFO] Finished at: Thu May 05 07:21:34 CEST 2011
[INFO] Final Memory: 12M/81M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file
(install-solr-noggit) on project lucene-solr-grandparent: Error installing
artifact 'org.apache.solr:solr-noggit:jar': Failed to install artifact
org.apache.solr:solr-noggit:jar:4.0-SNAPSHOT:
/Users/simpatico/debug/solr4/solr/lib/apache-solr-noggit-r944541.jar (No
such file or directory) - [Help 1]


On Thu, May 5, 2011 at 12:02 AM, Smiley, David W. dsmi...@mitre.org wrote:

 Hi folks. What you're supposed to do is run:

 mvn -N -Pbootstrap install

 as the very first one-time only step.  It copies several custom jar files
 into your local repository. From then on you can build like normally with
 maven.

 ~ David Smiley
 Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/


 On May 4, 2011, at 2:36 PM, Gabriele Kahlout wrote:

  but it doesn't build.
 
  Now, I've checked out solr4 from the trunk and tried to build the maven
  project there, but it fails downloading berkleydb:
 
  BUILD FAILURE
  
  Total time: 1:07.367s
  Finished at: Wed May 04 20:33:29 CEST 2011
  Final Memory: 24M/81M
  
  Failed to execute goal on project lucene-bdb: Could not resolve
 dependencies
  for project org.apache.lucene:lucene-bdb:jar:4.0-SNAPSHOT: Failure to
 find
  com.sleepycat:berkeleydb:jar:4.7.25 in
  http://download.carrot2.org/maven2/was cached in the local repository,
  resolution will not be reattempted until
  the update interval of carrot2.org has elapsed or updates are forced -
  [Help 1]
 
 
  I looked up to get the jar on my own but I didn't find a 4.7.25 version,
 the
  latest on oracle website (java edition) is 4.1. Where can i download this
  maven dependency from?
 
  On Wed, May 4, 2011 at 1:26 PM, Gabriele Kahlout
  gabri...@mysimpatico.comwrote:
 
  It worked after checking out the dev-tools folder. Thank you!
 
 
  On Wed, May 4, 2011 at 1:20 PM, lboutros boutr...@gmail.com wrote:
 
  property name=version value=3.1-SNAPSHOT/
  target name=get-maven-poms
  description=Copy Maven POMs from dev-tools/maven/ to their
  target
  locations
copy todir=. overwrite=true
  fileset dir=${basedir}/dev-tools/maven/
  filterset begintoken=@ endtoken=@
filter token=version value=${version}/
  /filterset
  globmapper from=*.template to=*/
/copy
  /target
 
 
 
 
  --
  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)).