Add Takari Maven extensions: Smart Builder, Lifecycle, OkHttp

Activity

Show:
Sean Flanigan
November 1, 2016, 1:47 AM
Sean Flanigan
November 8, 2016, 1:28 AM

I had to abandon the "concurrency-safe local repository" because it's not currently safe for concurrency:

The standard repository should be safe for multi-threaded use, with the option -Daether.connector.resumeDownloads=false in .mvn/maven.config.

But I did find the OkHttp extension for faster dependency downloads, plus I threw in a profile for frontend which can skip npm install.

Sean Flanigan
November 11, 2016, 2:27 AM

It looks like the Maven project type in Jenkins doesn't support core extensions (https://issues.jenkins-ci.org/browse/JENKINS-30058), so I don't think the main Maven jobs are getting the benefit of Takari Smart Builder or OkHttp Aether Connector. Consequently, these changes will just speed up local builds for now.

We should see more benefits from this when we start using Pipeline builds: ZNTA-1414.

Sean Flanigan
November 11, 2016, 8:06 AM

I don't anticipate any problems with parallel building or the smart builder, but if we need to, we can use the mvn options -T 1 or --builder singlethreaded to deactivate it.

From a quick glance, it looks like our Maven plugins should all be parallel safe:
https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3

Ready for Release

Assignee

Sean Flanigan

Reporter

Sean Flanigan

Labels

None

Tested Version/s

None

Story Points

1

Epic Link

Sprint

None

Fix versions

Priority

unspecified
Configure