Why does 'Build Project' fail whereas Run (Maven configuration) succeed?

前端 未结 2 563
别跟我提以往
别跟我提以往 2021-01-16 02:54

Case in question: A Maven based project that has a Maven Run Configuration with its \'Command line\' parameters defined as clean install.

Clicking the g

相关标签:
2条回答
  • 2021-01-16 03:47

    Now IntelliJ IDE allow to delegate Build actions to maven. Go to Preferences and search for "Delegate IDE build actions to maven".

    So when you build a project, IntelliJ IDEA invokes the appropriate Maven goals.

    0 讨论(0)
  • 2021-01-16 03:51

    They are not identical. IntelliJ IDEA imports the external project model from Maven and converts it to the internal project model. It's not 100% accurate, some Maven plug-ins are not supported, some dependencies may fail to resolve, etc.

    See this answer to perform the diagnostics. Try re-importing the project (delete .idea directory first if it doesn't help).

    Delegating build/run actions to Maven as it can be done now with Gradle will be supported later (probably in IntelliJ IDEA 2018.3).

    0 讨论(0)
提交回复
热议问题