Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added note about using Gradle on trunk and link

...

To check out code from Git. (The repositories listed in the commands, below, use the Apache Git repository; however, a GitHub mirror is also available. See Working with GitHub.)

No Format
# clone repository - for non-committers (read-only):
git clone http://gitbox.apache.org/repos/asf/lucene-solr.git

# clone repository - for committers (read/write):
git clone https://gitbox.apache.org/repos/asf/lucene-solr.git

# check out desired branch:
git checkout <branch>

...

If you had an open PR in the old GitHub repo, these are gone from the GitHub site. Please submit a new PR against the new repo. If you should want to see information in one of your old PRs, you may send us an email, as we have an export of all old PRs.

Building the first time

Alert
titleGradle is the preferred build environment for Trunk/Sorl 9.0
typeInfo

Solr is transitioning to Gradle rather than Ant as it's build environment.

It is not necessary to use Gradle to build trunk/Solr9, but it is preferred as we'd like to get as much feedback as possible.

Trunk/Solr9 can be built with either Gradle or Ant. Solr 8x can only be built with Ant.

If you're working on trunk code, consider using Gradle. Here's a page to help get started: Building Solr with Gradle. This is still a Work in Progress, so please point out any deficiencies.


No Format
cd lucene-solr
Issue any of the following commands.

'ant -projecthelp ' will show the available build targets

'ant ivy-bootstrap' will install ivy

cd solr

'ant usage' will show the available build targets

'ant server' will build a runnable Solr (note, 'ant example' is the target pre 5.x)

'ant dist' will build the libraries you might want to link against from, say, a SolrJ program.

'ant package' will build files like 'package/solr-5.2.0-SNAPSHOT-src.tgz' which are standard distributions you can install somewhere else just like an official release.

'ant test' will run all of the unit tests. NOTE: this takes quite a while.

...