How to build solr.tgz file from source using "ant package"

user2250246

I want to build a .tgz distribution file from solr.

The build.xml file tells me to use "ant package".

However, running ant package gets everything from svn and builds ./package/solr-6.0.0-SNAPSHOT.zip whereas my code base is from lucene_4_10_x branch.

How do I build ./package/solr-4.10.3.zip from the source code?

I need to build from the source code because I have some local changes that I want to compile and deploy.

All Workers Are Essential

According to LUCENE-4288, Solr will only package properly if it's checked out from SVN by default. However, if you change package-src-tgz to package-local-src-tgz, it will properly package. Find the following lines in solr/build.xml:

<!-- make a distribution -->
<target name="package" depends="package-src-tgz,..."/>

And change package-src-tgz to package-local-src-tgz.

<!-- make a distribution -->
<target name="package" depends="package-local-src-tgz,..."/>

Then just rerun ant package inside solr/, and the packaged archives (solr-<version>-SNAPSHOT.tgz and solr-<version>-SNAPSHOT.zip) will be available under solr/package/.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to build a source distribution without using setup.py file?

From Dev

How to build FacetQuery using spring-data-solr which returns all documents (*:*) from solr index

From Dev

How to build a calendar view using data from ics file?

From Dev

How to build Chameleon bootloader from SVN source?

From Dev

How to build solr.tgz file from source using "ant package"

From Dev

how to add source code to jar file using ant build.xml

From Dev

How to build a .deb file for CMake from source?

From Dev

How to create tgz file with version using npm pack?

From Dev

How do I build libcurl from source?

From Dev

How to unzip .tgz file using the terminal?

From Dev

How to build a source distribution without using setup.py file?

From Dev

How to build Chromium from source on OpenBSD?

From Dev

extract single file from huge tgz file

From Dev

Efficiently remove file(s) from large .tgz

From Dev

How do I build libcurl from source?

From Dev

How to unzip .tgz file using the terminal?

From Dev

How do I build Unity from source?

From Dev

How to unpack .tgz file using Ruby

From Dev

How to build a calendar view using data from ics file?

From Dev

How to modifying a source file "file.cs" using an custom auto-generation tool during build process?

From Dev

Fullcalendar js how to build from source

From Dev

How to build Chameleon bootloader from SVN source?

From Dev

How to search from database using solr

From Dev

How to install directly from a package *.tgz file in NetBSD, OpenBSD, or FreeBSD

From Dev

How to turn a tar file to a tgz file?

From Dev

maven: how to build the dependency from source.jar to jar files and put the jar file as it dependency?

From Dev

How to cache a file using source

From Dev

How to build Compiz from source?

From Dev

how to backup solrconfig file from running solr

Related Related

  1. 1

    How to build a source distribution without using setup.py file?

  2. 2

    How to build FacetQuery using spring-data-solr which returns all documents (*:*) from solr index

  3. 3

    How to build a calendar view using data from ics file?

  4. 4

    How to build Chameleon bootloader from SVN source?

  5. 5

    How to build solr.tgz file from source using "ant package"

  6. 6

    how to add source code to jar file using ant build.xml

  7. 7

    How to build a .deb file for CMake from source?

  8. 8

    How to create tgz file with version using npm pack?

  9. 9

    How do I build libcurl from source?

  10. 10

    How to unzip .tgz file using the terminal?

  11. 11

    How to build a source distribution without using setup.py file?

  12. 12

    How to build Chromium from source on OpenBSD?

  13. 13

    extract single file from huge tgz file

  14. 14

    Efficiently remove file(s) from large .tgz

  15. 15

    How do I build libcurl from source?

  16. 16

    How to unzip .tgz file using the terminal?

  17. 17

    How do I build Unity from source?

  18. 18

    How to unpack .tgz file using Ruby

  19. 19

    How to build a calendar view using data from ics file?

  20. 20

    How to modifying a source file "file.cs" using an custom auto-generation tool during build process?

  21. 21

    Fullcalendar js how to build from source

  22. 22

    How to build Chameleon bootloader from SVN source?

  23. 23

    How to search from database using solr

  24. 24

    How to install directly from a package *.tgz file in NetBSD, OpenBSD, or FreeBSD

  25. 25

    How to turn a tar file to a tgz file?

  26. 26

    maven: how to build the dependency from source.jar to jar files and put the jar file as it dependency?

  27. 27

    How to cache a file using source

  28. 28

    How to build Compiz from source?

  29. 29

    how to backup solrconfig file from running solr

HotTag

Archive