FAQ for MontiCore
Using Maven
- Eclipse shows me an error stating that my project configuration is not up-to-date.
- I get an error saying something about Lifecycle Mappings.
- Maven build fails because of a missing JDK path.
- Maven build for de.monticore.parent project fails in eclipse
- I have a very weird problem, seriously, very weird ...
- My .m2 folder does not exist.
- I get a strange error telling me that something is wrong with the UTF8 encoding.
- Changes I made on one module are not reflected in another module.
-
Eclipse shows me an error stating that my project configuration is not up-to-date. Right-click that project and select Maven -> Update Project Configuration.
-
I get an error saying something about Lifecycle Mappings. Install the m2e extensions mentioned in the developer tutorial.
-
Maven build fails because of a missing JDK path. Change the installed runtime JREs to the installed JDK. Go to Window -> Preferences -> Installed JREs. Add the JDK path and select it to be the default one.
-
Maven build for de.monticore.parent project fails in eclipse. Go to Window -> Preferences -> General -> Workspace. Disable "Build automatically" preference.
-
I have a very weird problem, seriously, very weird ... Right-click that project and select Maven -> Update Project Configuration.
-
My .m2 folder does not exist. Folders in Windows with a leading "." can only be created using the command line. Start the command line and type in "mkdir .m2" in your home folder.
-
I get a strange error telling me that something is wrong with the UTF8 encoding. Change the UTF8 encoding by clicking on Window -> Preferences. Then, select the item as shown below and change the values accordingly.
-
Changes I made on one module are not reflected in another module. Remember that all Maven modules are independent units. By default, they are not directly imported into each other. Instead, Maven resolves dependencies between projects by selecting packages (e.g.jar files) produced by these modules from your local Maven dependency repository. To make the latest version of a module available through this repository, you have to explicitly install it. If you execute an install on an aggregating POM-project, all child modules will be built with the current state of their depending projects as Maven always builds a hierarchy of modules in order of their mutual dependencies. However, if you are working in Eclipse, the workbench can import modules live. This feature is called "Workspace resolution" and is enabled by default for Eclipse automatic project builders. Nevertheless, if you build a module using a Run Configuration you have to explicitly activate "Resolve Workspaces artifacts".