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 C F <ca...@uw.edu> on 2018/03/28 01:36:55 UTC
Error when running ant package in solr 7.2.1 from source
I'm unable to run the ant package target in solr-7.2.1-src.tgz. Any ideas?
Is git required now?
$ ant package
Buildfile: /home/local/fred/solr-7.2.1/solr/build.xml
init-dist:
package-src-tgz:
[exec] fatal: Not a git repository (or any parent up to mount point /)
[exec] Stopping at filesystem boundary
(GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
BUILD FAILED
/home/local/fred/solr-7.2.1/solr/build.xml:487: The following error
occurred while executing this line:
/home/local/fred/solr-7.2.1/lucene/common-build.xml:2305: exec returned: 128
Total time: 0 seconds
Thanks,
Carlton
Re: Error when running ant package in solr 7.2.1 from source
Posted by Shawn Heisey <ap...@elyograg.org>.
On 3/27/2018 7:36 PM, C F wrote:
> I'm unable to run the ant package target in solr-7.2.1-src.tgz. Any ideas?
> Is git required now?
This is not a new requirement. When the official repository was in
subversion, that target required svn -- it couldn't be built if the
checkout was done from github. (now checkouts from github work fine)
https://issues.apache.org/jira/browse/LUCENE-4288
One of the things that the 'ant package' target will create is a source
package a lot like the one that you downloaded to begin with, and it
seems that it uses the version control software (git) to create that
package.
There is another target which just creates the binary package.
Use "ant create-package" instead of "ant package" and it should work.
Thanks,
Shawn