You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "liuxun (Jira)" <ji...@apache.org> on 2022/01/25 14:58:00 UTC

[jira] [Created] (MNG-7398) maven build with long statement is prohibitively slow

liuxun created MNG-7398:
---------------------------

             Summary: maven build with long statement is prohibitively slow
                 Key: MNG-7398
                 URL: https://issues.apache.org/jira/browse/MNG-7398
             Project: Maven
          Issue Type: Bug
          Components: build/consumer
    Affects Versions: 3.8.1, 3.5.0
         Environment: jdk8
            Reporter: liuxun
         Attachments: build-with-long-statement-is-prohibitively-slow.zip

h2. *+Question+*

maven build with long statement is prohibitively slow.
h2. +*Step*+

1: use the attachment zip file to repeat it, you can run it use 
{code:java}
mvn clean package -X{code}
it keeped always in processing, no errors, no timeout, no more info, but in processing status.

2: please focus on file:
{code:java}
com.chwod.robot.action.general.service.relation.RelationMappingService {code}
there is a static block, it's containts a long statement. if remove it, then rebuild as step 1, it build complete quickly;

so, until now, it seems that the maven build isn't support long statement.

but, the interesting is:

3: keeped the static block containts a long statement in that file, if remove parent block from the pom.xml,, it build complete quickly.

so, now, I can't be sure who's question this is. maven or spring? why not maven like spring? if not, I think maven can be fix it.

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)