Hi Eli,

The author of the blog post you mentioned appears to be unaware of the Maven 
POMs that are already included in Subversion for both Lucene and Solr.  See 
<http://wiki.apache.org/solr/HowToContribute#Maven>.

Because of the complex nature of the Ant build, which the Maven POMs cannot 
entirely duplicate, these POMs are not usable as the basis for IDE project 
bootstrapping.  Instead, IntelliJ and Eclipse configurations are separately 
available: see 
<http://wiki.apache.org/solr/HowToContribute#IntelliJ_.289.0.X.2C_10.X.2C_and_11.X.29>
 and <http://wiki.apache.org/solr/HowToContribute#Eclipse>.

Steve

-----Original Message-----
From: Eli Finkelshteyn [mailto:iefin...@gmail.com] 
Sent: Tuesday, April 10, 2012 11:31 AM
To: solr-user@lucene.apache.org
Subject: Moving to Maven from Ant solr.build.dir Not Found

Hi Folks,
I've been tasked with moving a Solr project I know little about from Ant to 
Maven. I've found all the dependencies I need and I'm not seeing any errors in 
my IDE. Everything compiles and installs just fine. Problem is, when I try to 
start things up in Jetty, I get errors. The first main one I get is:

SEVERE: null:org.apache.solr.common.SolrException: No system property or 
default value specified for solr.build.dir value:${solr.build.dir}/

I have:

<properties>
<build-directory>../build/solr-maven</build-directory>
</properties>

in my pom.xml, so I'm not sure why this comes up. Anyway, it's quickly followed 
by:

java.lang.ClassNotFoundException: org.apache.solr.servlet.SolrUpdateServlet

I'm not sure if the two are related, but when googling I can't seem to find 
anyone with the same problem. For reference, I started the bulk of my move from 
ant to maven using the instructions here 
<http://uomesh.blogspot.com/2011/11/building-solr-as-maven-project.html>, and 
then extrapolated from that to add in custom code and dependencies for my 
project. Any ideas what I could be doing wrong?

Thanks for any help,
Eli

Reply via email to