[ https://issues.apache.org/jira/browse/MNG-7398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MNG-7398. ------------------------------- Resolution: Invalid This is a not a bug in Maven, but in Java 8. If you run MCOMPILER in fork mode you see that {{javac}} blocks your machine. In fact, it consumes up to 800% here. Java 11 and 16 compile instantly. Report the Java 8 bug to Oracle. Blocks: {noformat} Apache Maven 3.8.5-SNAPSHOT (a472e6f774a9e16f778a2cbff621d5aa8475c3f0) Maven home: /tmp/apache-maven-3.8.5-SNAPSHOT Java version: 1.8.0_312, vendor: OpenJDK BSD Porting Team, runtime: /usr/local/openjdk8/jre Default locale: de_DE, platform encoding: UTF-8 OS name: "freebsd", version: "12.3-stable", arch: "amd64", family: "unix" {noformat} Works: {noformat} Apache Maven 3.8.5-SNAPSHOT (a472e6f774a9e16f778a2cbff621d5aa8475c3f0) Maven home: /tmp/apache-maven-3.8.5-SNAPSHOT Java version: 11.0.13, vendor: OpenJDK BSD Porting Team, runtime: /usr/local/openjdk11 Default locale: de_DE, platform encoding: UTF-8 OS name: "freebsd", version: "12.3-stable", arch: "amd64", family: "unix" Apache Maven 3.8.5-SNAPSHOT (a472e6f774a9e16f778a2cbff621d5aa8475c3f0) Maven home: /tmp/apache-maven-3.8.5-SNAPSHOT Java version: 16.0.2, vendor: OpenJDK BSD Porting Team, runtime: /usr/local/openjdk16 Default locale: de_DE, platform encoding: UTF-8 OS name: "freebsd", version: "12.3-stable", arch: "amd64", family: "unix" {noformat} > 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.5.0, 3.8.1 > Environment: jdk8 > Reporter: liuxun > Priority: Critical > Labels: easyfix, performance > 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. > > BTW, I also submit a issue to spring repository, and hope: The two are > reconciled -- This message was sent by Atlassian Jira (v8.20.1#820001)