Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation problem #1

Open
fethibengil opened this issue Jan 21, 2017 · 18 comments
Open

installation problem #1

fethibengil opened this issue Jan 21, 2017 · 18 comments

Comments

@fethibengil
Copy link

fethibengil commented Jan 21, 2017

Hello,

I followed the page for installation. engine and desktop installation are ok but when I try to install sen2coral error messages appeared at the end of the installation step.

Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:3.14:cluster (default) on project sen2coral-kit: The NetBeans binary directory structure for org.esa.sen2coral:sen2coral-inversion-ui:nbm:0.1.0-SNAPSHOT is not created yet.
[ERROR] Please execute 'mvn install nbm:cluster' to build all relevant projects in the reactor.

I executed "mvn install nbm:cluster" after "mvn install" and the version without test, but I had the same error message. How can I get over this?

Thanks,

Fethi

@obarrilero
Copy link
Contributor

Hello,

Sen2coral is currently under development, it is not possible to use it yet. When a beta version is available, I will inform you and then there should be no problem with the installation.

@JoergSG
Copy link

JoergSG commented Apr 12, 2018

Hello,
I got a similar error messages when trying to install the 3 components (snap engine, snap-desktop, s2coral toolbox). I understood from V.Brando's presentation during esa's 2nd Sentinel-2 Validation Team Meeting (january 2018) that the toolbox is already working. Is the beta version already available?
Thanks for your amazing work
Jörg

@obarrilero
Copy link
Contributor

Hello,
we are finishing some packaging issues regarding the inversion model operator. If you are interested in the other operators it should be possible to use them already, if not, I think this should be solved in the coming weeks.

@JoergSG
Copy link

JoergSG commented Apr 12, 2018

Dear Obarrilero,
Thank you very much for your quick reply. The problem affects the packages snap-engine and snap-desktop when running without or with tests (mvn install -Dmaven.test.skip=true):
snap-gpf: Could not resolve dependencies for project org.esa.snap:snap-gpf:nbm:7.0.0-SNAPSHOT: Could not find artifact org.esa.snap:snap-core:jar:tests:7.0.0-SNAPSHOT in snap-repo-public (http://nexus.senbox.net/nexus/content/repositories/public/)
snap-ui: Could not resolve dependencies for project org.esa.snap:snap-ui:nbm:7.0.0-SNAPSHOT: Failure to find org.esa.snap:snap-core:jar:tests:7.0.0-SNAPSHOT in http://nexus.senbox.net/nexus/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of snap-repo-public has elapsed or updates are forced

The package Sen-2coral toolbox seems to install correctly.

I am a complete ignorant regarding maven, but it seems that the path and/or dependencies to 7.0.0-SNAPSHOT: is no longer valid. Maven seems to expect the snapshot in org.esa.snap:snap-core:jar:tests:7.0.0-SNAPSHOT, while it appears to be in org/esa/snap/snap-core/7.0.0-SNAPSHOT.

Is is a matter of editing and adjusting the POM.xml files in both packages directories (snap-engine and snap-desktop) or does it require more advanced skills and editing tools?
Best regards,
Jörg

@obarrilero
Copy link
Contributor

It is strange, it is building properly on my PC. Are you using the last version of master branch?
Could you try "mvn clean install -Dmaven.test.skip=true"

@JoergSG
Copy link

JoergSG commented Apr 16, 2018

I cloned the git repositories as indicated in the wiki. The only change I applied is cloning https://github.com/senbox-org/sen2coral-kit.git instead of en2coral.git. And installing the repository worked actually.
Today, I cloned snap-engine and snap-desktop again and tried to install them using mvn clean install -Dmaven.test.skip=true, but received the same error messages.

@marpet
Copy link
Member

marpet commented Apr 17, 2018

The projects snap-engine and snap-desktop should actually build.
You need to build (mvn clean install) snap-engine first and afterwards snap-desktop. The order is important because desktop depends on engine.
The reason why sen2coral does not find the 7.0.0-SNAPSHOT modules on the maven repository is that they are not yet there. They have not been deployed.
After you installed snap-engine and snap-desktop to your local repository also sen2coral should be possible to build.
Regarding the issue with the clustering, you first mentioned. You really need to do both commands, install and nbm:cluster in one call. mvn install nbm:cluster
I'll trigger a deployment the 7.0.0 snapshot modules, but I think it would be better if sen2coral uses version 6.x.x, if it should be released soon.

@geom16011
Copy link

Get the following errors when i am trying to install snap engine

image
image

**
image
**

Any ideas?

@obarrilero
Copy link
Contributor

Are you following the instructions that you can find in the link below?
https://senbox.atlassian.net/wiki/spaces/SNAP/pages/10879039/How+to+build+SNAP+from+sources

@geom16011
Copy link

I used the instructions given in the sen2coral.

For example i tried to use the command
cd ${snap}
git clone https://github.com/senbox-org/sen2coral.git
git clone https://github.com/senbox-org/snap-desktop.git
git clone https://github.com/senbox-org/snap-engine.git
but none of the above worked and i downloaded manually from the github pages the files.

@geom16011
Copy link

i used
cd snap
git clone https://github.com/senbox-org/snap-engine.git
cd snap-engine
mvn clean install
as mentioned in https://senbox.atlassian.net/wiki/spaces/SNAP/pages/10879039/How+to+build+SNAP+from+sources

but i have the following errors
image
image
image

Any ideas?

@obarrilero
Copy link
Contributor

Have you installed the Java JDK?
Java JDK >= v1.8 (We recommend an Oracle JDK)

@geom16011
Copy link

yeap. I have installed JDK 10.

@obarrilero
Copy link
Contributor

Could you try with JDK 1.8?

@JoergSG
Copy link

JoergSG commented Apr 20, 2018

I am using Ubuntu 17.10 running in Oracle's virtualbox with Oracles Java JDK 1.8. I follwed the installation steps in the Sen2Coral wiki with one exception: I cloned sen2coral-box, not sen2-coral as indicated in the wiki.
As neither snap-engine nor snap-desktop installed correctly (sen2coral acutally does!), I forced the istallation process to conclude ignoring the errors, using the -fn option:
mvn clean install -Dmaven.test.skip=true -fn
In case of snap-engine, all, but two packages (snap-gpf and snap-envisat-reader) installed correctly:
[ERROR] Failed to execute goal on project snap-gpf: Could not resolve dependencies for project org.esa.snap:snap-gpf:nbm:7.0.0-SNAPSHOT: Failure to find org.esa.snap:snap-core:jar:tests:7.0.0-SNAPSHOT in http://nexus.senbox.net/nexus/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of snap-repo-public has elapsed or updates are forced
[ERROR] Failed to execute goal on project snap-envisat-reader: Could not resolve dependencies for project org.esa.snap:snap-envisat-reader:nbm:7.0.0-SNAPSHOT: Failure to find org.esa.snap:snap-core:jar:tests:7.0.0-SNAPSHOT in http://nexus.senbox.net/nexus/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of snap-repo-public has elapsed or updates are forced

in case of snap-desktop, I received 3 errors: SNAP User Interface Library, SNAP Graph Processing Framework (GPF) GUI, SNAP Graph Builder
[ERROR] Failed to execute goal on project snap-ui: Could not resolve dependencies for project org.esa.snap:snap-ui:nbm:7.0.0-SNAPSHOT: Failure to find org.esa.snap:snap-core:jar:tests:7.0.0-SNAPSHOT in http://nexus.senbox.net/nexus/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of snap-repo-public has elapsed or updates are forced -> [Help 1]
[ERROR] Failed to execute goal on project snap-gpf-ui: Could not resolve dependencies for project org.esa.snap:snap-gpf-ui:nbm:7.0.0-SNAPSHOT: Failure to find org.esa.snap:snap-core:jar:tests:7.0.0-SNAPSHOT in http://nexus.senbox.net/nexus/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of snap-repo-public has elapsed or updates are forced -> [Help 1]
[ERROR] Failed to execute goal on project snap-graph-builder: Could not resolve dependencies for project org.esa.snap:snap-graph-builder:nbm:7.0.0-SNAPSHOT: Failure to find org.esa.snap:snap-core:jar:tests:7.0.0-SNAPSHOT in http://nexus.senbox.net/nexus/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of snap-repo-public has elapsed or updates are forced.

Sen2coral built correctly using: mvn clean install -Dmaven.test.skip=true

marpet (see message above 3 days ago) recommended including mvn install nbm:cluster in the call. I did, but this led to more build errors.
I tried building the 6.0.2-SNAPSHOT instead, which did't work, either (even more errors).

Apart, I realized that there are differing settings recommended for the configuration of IntelliJ IDEA. The sen2coral wiki requires not to enable the option Create module groups for multi-module Maven projects, while the SNAP Cookbook recommends to configure the IDE selecting Group Modules (https://senbox.atlassian.net/wiki/spaces/SNAP/pages/24051775/IntelliJ+IDEA) .

I would be helpful I someone could fix SNAP's depdendency errors, first.
I am not sure, whether it makes sense trying to cofigure IntelliJ IDEA if the SNAP modules don't build.

@geom16011
Copy link

I tried with JDK 1.8 and i have the following
[WARNING] No updater.jar specified, cannot validate Info.xml against DTD
image
Any ideas how to solve them?

Also in order to run should i download this software
https://www.jetbrains.com/idea/?

@JoergSG
Copy link

JoergSG commented Apr 24, 2018

Yes, you need this IDE.
Quick update from my side:
Tried to install SenCoral on Windows 10 using the follwing steps:
Unistalled Java JDK 10.x, reinstalled JDK 8.172, but without JRE in the default path.
Installed maven in c:\maven
Set the path variables manually in the Windows system evironment
Installed snap-engine, snap-desktop, and sen2coral-box following the wiki using mvn install in windows powershell with Admin rights. snap-engine and snap-desktop built without any error :-) , sen2coral showed test failures (sen2coral-inversion)
Tried -Dmaven.test.skip=true, but this time Sen2Coral Toolbox 0.3.0-SNAPSHOT build failed (“Unknown lifecycle phase ".test.skip=true".”)
Tried mvn install nbm:cluster, sen2coral build failed (sen2coral-inversion), again.
Tried mvn install –fn, double failure: sen2coral-inversion, Sen2Coral Toolbox Kit Module 0.3.0-SNAPSHOT,
Tried mvn install nbm:cluster –fn; triple failure: Sen2Coral Toolbox 0.3.0-SNAPSHOT; sen2coral-inversion, Sen2Coral Toolbox Kit Module 0.3.0-SNAPSHOT

Tried mvn install -DskipTests, BUILD SUCCESS without failure!

Next challenge: IntelliJ IDEA configuration

@viggu02
Copy link

viggu02 commented Jul 5, 2019

how to configure this module in intellijidea someone please give a solution, i have tried and got errors like -Dsun.awt.nopixfmt=true ,,,,,couldnt find something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants