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

Adding .project and .classpath to case studies #19

Open
jabiercoding opened this issue Aug 4, 2018 · 7 comments
Open

Adding .project and .classpath to case studies #19

jabiercoding opened this issue Aug 4, 2018 · 7 comments

Comments

@jabiercoding
Copy link

When we try to import a case study in Eclipse, no .projects are found in this repository. I needed to create a java project (e.g., cra), copy the files, add the xtend nature, add things to the classpath, until it worked... Why not adding directly the .project and .classpath files to have ready-to-be-used examples?

@alxbrd
Copy link
Member

alxbrd commented Aug 5, 2018

The case studies are maven projects, try to import them as existing maven projects. That should generate the required dot files for Eclipse.

@szschaler
Copy link
Member

@alxbrd is this well documented on the website / in the case-study repository? If not, it might be worth adding a sentence or two about 'Installation' (or similar) to the documentation.

@jabiercoding
Copy link
Author

jabiercoding commented Aug 6, 2018

You are right, if I try to import them as existing Maven projects they appear. Maybe you can then modify the MDEOptimiser website in the "First MDEO project" section. You have "they can be imported as existing Eclipse projects", so you can just add as "existing Maven projects". This will help people not familiar with Maven builds. However, when I imported cra or the scrum example as Maven projects, they still have a lot of errors which are not so obvious to resolve. Maybe you can be more specific in the documentation as well, or try to find a ready-to-use solution.

@alxbrd
Copy link
Member

alxbrd commented Aug 6, 2018

@szschaler @jabiercoding Thanks for the feedback, I will update the website accordingly and hopefully this will make it clear for other users. Initially the projects were indeed Eclipse projects, but this has been changed since then and the website remained with the old text.

@jabiercoding For the errors, if they are about MDEOptimiser dependencies, there is an Eclipse quickfix implemented that will add the required libraries to the classpath in the form of an Eclipse container. See if this helps. The same applies for XTend. If there are even more dependencies missing, please post a screenshot and I will try to suggest a fix(but this shouldn't be the case).

@szschaler
Copy link
Member

Thanks, @alxbrd . For the quickfix: is this documented on the case-study pages somewhere? We should explicitly mention this. I guess the reason it happens is because we no longer include .classpath files. Is there a way of keeping the maven setup while still maintaining the .classpath files?

@jabiercoding from your experience downloading the case studies, where would be the best place to document these points? In other words, where did you look first and where might you have missed the information?

@szschaler
Copy link
Member

I've just run into this problem again. It seems this hasn't been fixed in the website or the readme files yet. @alxbrd is this something you could look into?

@szschaler
Copy link
Member

Also, when importing these as Maven projects, I get lots of errors:

image

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

3 participants