Wavemaker Metadata Please Run Project Again

Troubleshooting common Maven issues

If you come across problems working with your Maven project you can check to see if the post-obit solutions and workarounds can help you solve your issues.

How to fix compiler version problems in Maven projects

In some cases when yous import a Maven projection, it might have compiler settings that volition not match the expected settings in IntelliJ Idea and when you lot compile your code, you might encounter a trouble.

For case, you can get the following fault:

the compiler error

This mistake usually indicates a trouble with the compiler version compatibility, and yous can check few places to fix it.

For case, you can edit your POM and configure Maven compiler plugin to compile your Java code. You should set up the compiler level explicitly, so it won't revert to the default settings when you re-import your project.

Set the compiler level in POM

  1. Open your POM in the editor.

  2. Change the configuration for the Maven compiler plugin.

    <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.vii.0</version> <configuration> <source>1.viii</source> <target>1.viii</target> <encoding>UTF-eight</encoding> </configuration> </plugin> </plugins> </build>

  3. Click the Refresh button to import your changes. Note that the configurations specified in your POM overrides any configurations specified in your project construction. So, now after this projection is imported the language level should be picked upwards.

Bank check the Java compiler settings to see if the bytecode versions friction match.

Cheque the compiler settings

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), go to .

  2. On the folio that opens, check if Project bytecode version and Target bytecode version match, or go out the Target bytecode version option blank so it can be determined from JDK.

    the Java compiler settings

If y'all have imported a multi-level projection, you lot tin check project structure settings for source language level configuration.

Check the linguistic communication level in the project structure

  1. Open up Project Structure dialog and select Project from the options on the left.

  2. Check the source language level for your projection.

    the project structure: Project
  3. Check the source language level for each module (click the Sources tab).

    Project Structure dialog / Module page

How to fix problems with Maven projects that won't start

To ready issues that are related to the Maven projects that won't start or import, you tin can perform one of the following deportment.

If y'all received the OutOfMemory fault, endeavour to increase the heap size for the Maven importer.

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), go to .

  2. On the Importing page, in the VM options for importer field, increase heap size for the Maven importer.

  3. Likewise, in the JDK for importer field, increment IDE heap size.

    the Maven settings: VM options and JDK for importer

    If you need to use more heap, switch to 64-chip Java and specify the same 64-scrap JVM for Maven JDK for importer.

If you received the Operation timed out error or IDE connection failure to the Maven procedure, try to edit the hosts file.

Edit the hosts file

  • On some systems you need to edit the hosts file and so that localhost resolves correctly. Try to have 127.0.0.1 localhost in the etc/hosts file. Also, make sure there are no other IP addresses mapped to localhost.

If the error indicates the Maven repository issue, such every bit the Failed to update Maven indices error, try to check if Maven repositories were indexed correctly.

IntelliJ IDEA works with repository indexes. The indexes are fetched remotely from remote repositories. Some repositories exercise not provide indexes, or do not go on an updated index, for case, repositories from Bintray, in this case yous can ignore the error.

If you take an indexed repository, but still get a Maven repository error, check the following options:

Check the user settings file

  1. In the Settings/Preferences dialog (Ctrl+Alt+Due south), go to .

  2. On the Maven page, in the User settings file field, bank check if you lot defined proper credentials for the server in settings.xml.

    the Maven settings: User setting file

You lot can try to restart IntelliJ Idea and update Maven repositories.

Update Maven repositories

  1. In the Settings/Preferences dialog (Ctrl+Alt+South), go to .

  2. Select Repositories from options on the left.

  3. On the Repositories page, click Update to update Maven repositories.

    Maven settings: Repositories
  4. Afterwards the update is finished, click OK.

Maven dependencies imported incorrectly

If the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions:

  • You tin check your local maven repository in the Maven | Repositories settings and try to update it.

  • Y'all can check the jar file of the local .m2 repository to see if it was downloaded correctly.

  • You lot can check the effective POM to determine which Maven repository was used as an origin of the dependency.

  • You can select the E'er update snapshots option in Maven settings. In this case, IntelliJ Thought checks the latest version of the downloaded dependency and updates it appropriately.

    the Maven settings

Last modified: 19 March 2022

northyouct1951.blogspot.com

Source: https://www.jetbrains.com/help/idea/troubleshooting-common-maven-issues.html

0 Response to "Wavemaker Metadata Please Run Project Again"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel