You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "William Wong (JIRA)" <ji...@apache.org> on 2019/04/14 16:00:00 UTC

[jira] [Commented] (SPARK-27458) Remind developer using IntelliJ to update maven version

    [ https://issues.apache.org/jira/browse/SPARK-27458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16817347#comment-16817347 ] 

William Wong commented on SPARK-27458:
--------------------------------------

Is '[https://spark.apache.org/developer-tools.html'] a part of spark documentation? I cannot find it on sparks' repository (under the docs folder). 

> Remind developer using IntelliJ to update maven version
> -------------------------------------------------------
>
>                 Key: SPARK-27458
>                 URL: https://issues.apache.org/jira/browse/SPARK-27458
>             Project: Spark
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 3.0.0
>            Reporter: William Wong
>            Priority: Major
>
> I am using IntelliJ to update a few spark source. I tried to follow the guide at '[http://spark.apache.org/developer-tools.html]' to setup an IntelliJ project for Spark. However, the project was failed to build. It was due to missing classes generated via antlr on sql/catalyst project. I tried to click the button 'Generate Sources and Update Folders for all Projects' but it does not help. Antlr task was not triggered as expected.
> Checked the IntelliJ log file and found that it was because I did not set the maven version properly and the 'Generate Sources and Update Folders for all Projects' process was failed silently: 
>  
> _2019-04-14 16:05:24,796 [ 314609]   INFO -      #org.jetbrains.idea.maven - [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:_
> _Detected Maven Version: 3.3.9 is not in the allowed range 3.6.0._
> _2019-04-14 16:05:24,813 [ 314626]   INFO -      #org.jetbrains.idea.maven - org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (enforce-versions) on project spark-parent_2.12: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed._
> _java.lang.RuntimeException: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (enforce-versions) on project spark-parent_2.12: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed._
>  
> Be honest, failing an action silently should be an IntelliJ bug. However, enhancing the page  '[http://spark.apache.org/developer-tools.html]' to remind developers to check the maven version may save those new joiners some time. 
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org