You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Matt Mitchell <go...@gmail.com> on 2010/10/19 04:28:40 UTC
snapshot-4.0 and maven
I'd like to get solr snapshot-4.0 pushed into my local maven repo. Is
this possible to do? If so, could someone give me a tip or two on
getting started?
Thanks,
Matt
Re: snapshot-4.0 and maven
Posted by Tommy Chheng <to...@gmail.com>.
You use maven-assembly-plugin's jar-with-dependencies to build a single
jar with all its dependencies
http://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven
@tommychheng
On 10/19/10 6:53 AM, Matt Mitchell wrote:
> Hey thanks Tommy. To be more specific, I'm trying to use SolrJ in a
> clojure project. When I try to use SolrJ using what you showed me, I
> get errors saying lucene classes can't be found etc.. Is there a way
> to build everything SolrJ (snapshot-4.0) needs into one jar?
>
> Matt
>
> On Mon, Oct 18, 2010 at 11:01 PM, Tommy Chheng<to...@gmail.com> wrote:
>> Once you built the solr 4.0 jar, you can use mvn's install command like
>> this:
>>
>> mvn install:install-file -DgroupId=org.apache -DartifactId=solr
>> -Dpackaging=jar -Dversion=4.0-SNAPSHOT -Dfile=solr-4.0-SNAPSHOT.jar
>> -DgeneratePom=true
>>
>> @tommychheng
>>
>> On 10/18/10 7:28 PM, Matt Mitchell wrote:
>>
>> I'd like to get solr snapshot-4.0 pushed into my local maven repo. Is
>> this possible to do? If so, could someone give me a tip or two on
>> getting started?
>>
>> Thanks,
>> Matt
>>
Re: snapshot-4.0 and maven
Posted by Matt Mitchell <go...@gmail.com>.
Hey thanks Tommy. To be more specific, I'm trying to use SolrJ in a
clojure project. When I try to use SolrJ using what you showed me, I
get errors saying lucene classes can't be found etc.. Is there a way
to build everything SolrJ (snapshot-4.0) needs into one jar?
Matt
On Mon, Oct 18, 2010 at 11:01 PM, Tommy Chheng <to...@gmail.com> wrote:
> Once you built the solr 4.0 jar, you can use mvn's install command like
> this:
>
> mvn install:install-file -DgroupId=org.apache -DartifactId=solr
> -Dpackaging=jar -Dversion=4.0-SNAPSHOT -Dfile=solr-4.0-SNAPSHOT.jar
> -DgeneratePom=true
>
> @tommychheng
>
> On 10/18/10 7:28 PM, Matt Mitchell wrote:
>
> I'd like to get solr snapshot-4.0 pushed into my local maven repo. Is
> this possible to do? If so, could someone give me a tip or two on
> getting started?
>
> Thanks,
> Matt
>
Re: snapshot-4.0 and maven
Posted by Tommy Chheng <to...@gmail.com>.
Once you built the solr 4.0 jar, you can use mvn's install command
like this:
mvn install:install-file -DgroupId=org.apache -DartifactId=solr
-Dpackaging=jar -Dversion=4.0-SNAPSHOT -Dfile=solr-4.0-SNAPSHOT.jar
-DgeneratePom=true
@tommychheng
On 10/18/10 7:28 PM, Matt Mitchell wrote:
> I'd like to get solr snapshot-4.0 pushed into my local maven repo. Is
> this possible to do? If so, could someone give me a tip or two on
> getting started?
>
> Thanks,
> Matt