Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [glassfish-dev] How to build glassfish in less than an hour?

Hi,

The easiest option, which we could opt to make a default (or some variant of it), is the -Pfastest in combination with parallel building.

e.g.

mvn clean install -Pfastest -T10

iMac Pro 2017  (3 GHz 10-Core Intel Xeon W): 5:03
MacBook Pro 2021 (M1 Max): 03:40 first time and largely empty .m2, 3:20 second time.

Some further performance improvements *could* be obtained by skippings tests and javadoc, and by using a RAM DISK

diskutil erasevolume HFS+ RAM_Disk $(hdiutil attach -nomount ram://1243840)

mvn clean install -Dglassfish.root=/Volumes/RAM_Disk/ -DbuildDirectory='/Volumes/RAM_Disk/target/${project.artifactId}' -DskipTests -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Pfastest -T10 

I've seen this reducing time on some systems by about 40%, but it of course depends on how fast your storage is and how many cores there are.

Kind regards,
Arjan Tijms





On Wed, Nov 3, 2021 at 4:30 PM Scott Marlow <smarlow@xxxxxxxxxx> wrote:


On 11/1/21 1:50 PM, Lukas Jungmann wrote:
Hi,

   I need to do some changes in GF codebase in order to test my work. Building GF with mvn -U -C clean install -Pstaging -Dcheckstyle.skip=true is taking me ~90 - ~135 mins today and it seems I'm not the only one seeing the build getting slower over past ~6 months[1]. What do I have to do in order to get the build time on my box to something reasonable again?

Skipping tests can reduce build time by adding:

 -DskipTests=true


thanks,
--lukas

[1]: https://github.com/eclipse-ee4j/glassfish/issues/23692
_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev

_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev

Back to the top