WIP Fix #3360 - Build of binary#3465
Merged
offtherailz merged 3 commits intogeosolutions-it:masterfrom Jan 21, 2019
Merged
Conversation
mbarto
approved these changes
Jan 21, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The problem was caused by the usage of the mapstore folder in target directory of
mapstore2-webinstead of adding files to the war (the war plugins adds fixes to it, and these are not present in the folder).To solve the issue I added a module
bin-warthat usesmaven-war-pluginto add the needed files to mapstore2.war and then add it to the zip file.I Added also
profileparameter to the build script. This fixes also the bin package with doc (old bin package linked doc in the home page, but the link was dead because it was removed after build)Maps not working
The new db attached to this PR has all maps working correctly:
bboxrequest togetMap(encoded 2 times) probably an old issue. I recreated the them and they work even in a clean build.Issues
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
What is the current behavior? (You can also link to an open issue here)
mvn clean install -Preleaseprofile was dependent by a previous execution ofbuild.shWhat is the new behavior?
mvn clean install -Preleasecan be lunched by its ownDoes this PR introduce a breaking change? (check one with "x", remove the other)
** Release should be lunched using
./build.sh <version> release(release profile) . This profile creates also the binary package, together withmapstore.war(all at once).Other information:
shutdown script do not shutdown anything
This is a new problem, once try to execute mapstore2-shutdown.sh or .bat, the java process is still pending. This happens both on windows and linux. With windows you can close the java terminal manually, with linux you have to find and kill the process. @tdipisa should we open a different issue for this?
These are the notes about the previous implementation:
Old sequence on build server was:
build.shcreate the mapstore dir and the war.mvn clean install..copy mapstore dir in the release package.The first build the web module, the second creates the zip.
The current solution uses the
mapstorefolder instead of the war to copy also the database present inrelease/datainto the webapp rootbinary needs a pre-defined h2 db.The problem with the thumbnails is because of duplicated jars for apache
commons-codec.These jars are excluded from
mapstore.warusing war pluginpackageExclusionsconfiguration, but not from the usedmapstorefolder.