lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adeel Qureshi <adeelmahm...@gmail.com>
Subject using maven to deploy solr on tomcat
Date Mon, 15 Apr 2013 20:33:11 GMT
I am trying to embed solr war in an empty application to be able to use
maven to deploy the generated war file (that includes solr war) to tomcat.
My pom file is simple

<dependencies>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr</artifactId>
<version>${solr.version}</version>
<type>war</type>
</dependency>
</dependencies>

this brings in the solr war but now i need to specify solr home to choose
between a dev and prod directory as the solr home. So I have setup a env
variable

<Environment name="solr/home" override="true" type="java.lang.String"
value="src/main/resources/solr-dev"/>

but this leads to absolute path of

INFO: Using JNDI solr.home: src/main/resources/solr-dev
INFO: looking for solr.xml:
C:\springsource\sts-2.8.1.RELEASE\src\main\resources\solr-dev\solr.xml

notice that its uses the given path as absolute path and obviously doesnt
ends up looking inside the application directory for these config directory.

Any help would be appreciate.
Thanks
Adeel

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message