clone the snap engine, desktop and s1tbx repos from github
checkout to a specific commit
git clone https://github.com/senbox-org/snap-engine.git
cd snap-engine
git checkout 65c1230f35
cd ..
git clone https://github.com/senbox-org/snap-desktop.git
cd snap-desktop
git checkout 36fbe009
cd ..
git clone https://github.com/senbox-org/s1tbx.git
cd s1tbx
git checkout 63f5ac39e
and compile with maven
but it fails as soon as I try compiling the engine repo
cd ~/snap2/snap-engine
mvn clean install -DskipTests=true
with this message:
Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
Detected Maven Version: 3.6.0 is not in the allowed range [3.1.0,3.5.2].
This is strange to me since in the documentation you find this:
downgrading to maven 3.5 is somehow difficult to me since I organize all of my setup with docker, therefore I try to use the latest version to run the docker build as smooth as possible
My specific question:
Does compiling with maven 3.6 work for other users, since the docu tells us to use something higher or equal to 3.2.5? Do I miss something, or do I have to downgrade?
If I have to downgrade, please update the error message behavior or the documentation concerning the working maven version.
As you asked, I want to use a Java Operator that I customized in the s1tbx, the changes were done on the commits provided above, and it worked back then. Now I know that the OP in s1tbx has changed and if I would simply put my operator into the latest commit, it would not work for the s1tbx, engine and desktop might work…but I want to have the same state like it was back half a year ago (or so) …that is the reason…
But, you are right, other things might be influenced by changing the pom.xml soo I see myself checking the OP in s1tbx and my customized one and bring all up to date I guess tried to avoid this but it is in the end the best way to go. Thanks for help until here.
Another thing, is there a Dockerfile around for setting up SNAP from source? If not I could generalize my version and share it after testing…let me know if you think that is of interest or if something like this already exist.
I don’t know if it could help, but maybe you could try to use the current branch 7.X that I believe it should be compatible with maven 3.6 and it should resemble more at what was SNAP half a year ago
I will search around and let you know for the Dockerfile.
I have just finished the merging part, the only thing that changed is the multimastersplit if else statement in the IFG Operator, that, tbh makes me very curious so you are right, current branch is pretty similar to the commits I used until now
I will now sort some other things out and will then try to run the maven install and a test for my changes if they still work, but from my point of view they should.