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

Cannot build emfviews using Maven #4

Closed
jesus-gorronogoitia opened this issue Dec 5, 2018 · 15 comments
Closed

Cannot build emfviews using Maven #4

jesus-gorronogoitia opened this issue Dec 5, 2018 · 15 comments

Comments

@jesus-gorronogoitia
Copy link

Bonjour,
I've followed the installation instructions to build EMFViews from Git sources, using Maven. However, the Maven build fails because of a missing dependency:
[ERROR] Cannot resolve project dependencies: [ERROR] Software being installed: org.atlanmod.emfviews.tests 0.3.0.qualifier [ERROR] Missing requirement: org.atlanmod.emfviews.tests 0.3.0.qualifier requires 'bundle org.atlanmod.sexp2emf 0.1.0' but it could not be found
Bien cordialement
Yosu

@fmdkdd
Copy link
Contributor

fmdkdd commented Dec 5, 2018

Right, you need sexp2emf only to run the tests, but since we are pulling dependencies from the Eclipse manifests, you cannot skip it with -DskipTests.

I've added instructions to install sexp2emf first. Hopefully at some point we'll get it uploaded on maven central so you don't have this extra step.

@jesus-gorronogoitia
Copy link
Author

Thanks @fmdkdd I've installed sexp2emf , so building EMFViews with Maven now progresses, but at certain point it fails when building org.atlanmod.emfviews.doc with the following error:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:1.1.0:package-plugin (default-package-plugin) on project org.atlanmod.emfviews.doc: /home/yosu/Projects/MegaMart/Git/platform/emfviews/doc/org.atlanmod.emfviews.doc/build.properties: bin.includes value(s) [html/, toc.xml] do not match any files.

@fmdkdd
Copy link
Contributor

fmdkdd commented Dec 5, 2018

Ah yes, you also need to generate the manual. That is slightly more involved. If you really want to, here is the one-line solution with Docker:

emfviews/.travis.yml

Lines 21 to 24 in 348588e

- docker run --volume "$TRAVIS_BUILD_DIR"/doc:/emfviews-doc
--workdir /emfviews-doc
flycheck/emacs-cask:26.1
/bin/bash -c "cask install && make"

But really, I would prefer a way to make that step optional. Users don't need to build the manual usually. I'll look into that. Thanks for the reporting!

@jesus-gorronogoitia
Copy link
Author

So, I should skip that doc module, But if I try to skip it in Maven with:
mvn install -DskipTests -pl '!doc'
I still have the same error, the doc submodule is still built.
Do you remember how to skip it? Thanks

@fmdkdd
Copy link
Contributor

fmdkdd commented Dec 5, 2018

I think it's because the features submodule requires the doc plugin in any case. I've added all of them to a separate profile in f126c5c, which is not activated by default.

After pulling this change, you should be able to build the plugins without the manual.

@jesus-gorronogoitia
Copy link
Author

Thanks, I could generate the doc following your readme. Now Maven building progresses, but fails in module
org.atlanmod.emfviews.mel with exception:
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (mwe2Launcher) on project org.atlanmod.emfviews.mel: Execution mwe2Launcher of goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java failed: Plugin org.codehaus.mojo:exec-maven-plugin:1.6.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.codehaus.mojo:exec-maven-plugin:jar:1.6.0 -> org.eclipse.emf:org.eclipse.emf.mwe2.launch:jar:2.9.1.201705291010 -> org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:[2.9.1.201705291010]: No versions available for org.eclipse.emf:org.eclipse.emf.mwe2.runtime:jar:[2.9.1.201705291010] within specified range -> [Help 1]

@fmdkdd
Copy link
Contributor

fmdkdd commented Dec 5, 2018

That one is new. I cannot reproduce, but I get a different error on my side from a fresh clone. Our Travis builds have no issue building that, which is weird.

I'll investigate further.

@fmdkdd
Copy link
Contributor

fmdkdd commented Dec 6, 2018

Ok so I definitely cannot reproduce locally. A Maven build from fresh clone works here. The issue I was having was stemming from cloning into /tmp. Anywhere else it works fine.

I've bumped the pom.xml dependencies in ac56779 to align with Eclipse 4.9, so you might have better luck with that one.

@jesus-gorronogoitia
Copy link
Author

Weird. I have a clean local clone of your repository, but still after a mvn clean install I am facing the same problem. I will try it from the update site.

@mosgilm
Copy link

mosgilm commented May 15, 2019

Bonjour,
I was very interested to try the new concepts in emf views for myself.
I am able to use maven to build emfviews from the git repo successfully however I cannot use inside eclipse due to plugin dependency problems.
I have installed all the required dependencies as the manual is quite good - however the one piece of info that would greatly help that I can't find is the eclipse version ?
I have also tried the update site however since its been a while since emfviews was created the latest eclipse (with correct dependencies) doesn't work anymore.

Thank you in advance,
Maurice

@fmdkdd
Copy link
Contributor

fmdkdd commented May 17, 2019

I can't find is the eclipse version ?

Anything from Oxygen and up should work.

its been a while since emfviews was created the latest eclipse (with correct dependencies) doesn't work anymore.

The update site works for me in a fresh Eclipse Modeling 2019-03. You do need to install Epsilon first however. Unfortunately, I didn't find any way to make Eclipse contact the Epsilon update site. However, I've just split the plugin that depends on Epsilon in a different feature, since it's not essential.

@mosgilm
Copy link

mosgilm commented May 17, 2019

Thanks for your response.
I was able to get the EMFviews examples working by installing this version of eclipse :-

https://megamart2-ecsel.eu/megamrt2-eclipse-ide/

With additional plugins mentioned in the EMFview manual.
For epsilon I used 1.4 version from the update site:
http://download.eclipse.org/epsilon/1.4/updates/
As later epsilon versions (1.5 in this case) did not work for me.

@mosgilm
Copy link

mosgilm commented May 17, 2019 via email

@fmdkdd
Copy link
Contributor

fmdkdd commented May 17, 2019

As later epsilon versions (1.5 in this case) did not work for me.

That's curious. I get no issue with 1.5. But EMF Views should work fine with 1.4 anyway.

@jameswpm
Copy link
Contributor

jameswpm commented Mar 5, 2023

The issue is outdated and has already been fixed within newer versions.

@jameswpm jameswpm closed this as completed Mar 5, 2023
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

4 participants