You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Aaron Lindsey (Jira)" <ji...@apache.org> on 2019/09/04 19:17:00 UTC
[jira] [Commented] (GEODE-7164) IntelliJ IDEA 2019 error: the
output path is not specified for modules
[ https://issues.apache.org/jira/browse/GEODE-7164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16922773#comment-16922773 ]
Aaron Lindsey commented on GEODE-7164:
--------------------------------------
The best solution I've found involves 2 parts:
# Set the Project compiler output as shown in this SO answer: [https://stackoverflow.com/a/40675201].
# Add "{{inheritOutputDirs = true}}" to the idea plugin configuration in {{ide.gradle}}. This causes IntelliJ to import gradle sub-projects with the "Inherit project compile output path" option checked by default. You may need to reimport gradle projects after making this change if you do not have auto-import enabled.
> IntelliJ IDEA 2019 error: the output path is not specified for modules
> ----------------------------------------------------------------------
>
> Key: GEODE-7164
> URL: https://issues.apache.org/jira/browse/GEODE-7164
> Project: Geode
> Issue Type: Improvement
> Reporter: Aaron Lindsey
> Assignee: Aaron Lindsey
> Priority: Major
> Attachments: Screen Shot 2019-09-04 at 10.45.47 AM.png
>
>
> When delegating build/run actions to IntelliJ IDEA instead of Gradle, IntelliJ IDEA 2019 fails to build geode with an error similar to the one shown in the screenshot below:
> !Screen Shot 2019-09-04 at 10.45.47 AM.png|width=370,height=298!
> h4. Steps to Reproduce:
> (Tested on IntelliJ IDEA CE versions 2019.1.4 and 2019.2.1)
> # Make sure Gradle delegation is disabled for build/run
> ** Instructions for 2019.1.4:
> *** Go to Preferences | Build, Execution, Deployment | Build Tools | Gradle | Runner
> *** Make sure "Delegate build/run actions to Gradle" is unchecked
> ** Instructions for 2019.2.1:
> *** Go to Preferences | Build, Execution, Deployment | Build Tools | Gradle
> *** Make sure "Build and Run using:" is set to "IntelliJ IDEA"
> # Clone geode into an empty directory
> # Follow the instructions [here|https://github.com/apache/geode/blob/develop/BUILDING.md] to import and build geode using IntelliJ IDEA
> # Enable Gradle build/run delegation
> ** Instructions for 2019.1.4:
> *** Go to Preferences | Build, Execution, Deployment | Build Tools | Gradle | Runner
> *** Check "Delegate build/run actions to Gradle"
> ** Instructions for 2019.2.1:
> *** Go to Preferences | Build, Execution, Deployment | Build Tools | Gradle
> *** Set "Build and Run using:" to "Gradle"
> # Select "Build Project" from the Build menu to build geode
> # After the build succeeds, revert the change from step 4 to switch back to the IntelliJ build runner
> # Repeat step 5 to build the project again
> # The popup error message shown in the screenshot should show and IntelliJ will not initiate the build
--
This message was sent by Atlassian Jira
(v8.3.2#803003)