• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

intuit/maven-build-scanner: Know your build - so you can make it faster

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

intuit/maven-build-scanner

开源软件地址(OpenSource Url):

https://github.com/intuit/maven-build-scanner

开源编程语言(OpenSource Language):

Java 53.3%

开源软件介绍(OpenSource Introduction):

CircleCI

Maven Build Scanner

Know your build - so you can make it faster

What Is Maven Build Scanner?

Maven Build Scanner is a tool that hooks into Maven builds and produces reports and charts that breakdown the time Maven spent. These reports provide insights into your builds that can be used to tune it.

It's been designed to work with large and complex builds; ones with hundreds of modules and plugins.

At Intuit it helped take a 40m build run by hundreds of developers every day and reduce it to 4m - a 10x reduction.

Video

Inspired by Gradle Build Scan.

How Do I Use It?

Start by install the following:

  • Java 8
  • Maven 3
  • Docker
  • Node + NPM

Run:

./setup.sh

This will:

  1. Start up a Mongo database on Docker for storing data.
  2. Create a JAR for the extension and copies it into your local Maven extensions folder (on MacOS this is something like /usr/local/Cellar/maven/3.5.4/libexec/lib/ext)
  3. Build and start the NPM web application for viewing your reports (listening on port 3000).
  4. Run a quick build scan on itself so you can try out the report.

You can then view your first scan at (http://localhost:3000). The page will show:

  • A timeline of the build, so you can see how effective concurrency is being used.
  • A pie chart showing the Maven plugins that took the longest.
  • A module-by-module breakdown of tasks.
  • Links to reports on previous builds.

To create a scan for another application, do the following:

cd your-app
env MAVEN_BUILD_SCANNER=1 mvn install

You should see the following line in the Maven console output:

Open http://localhost:3000/?projectId=com.intuit:maven-build-scanner&sessionId=60acc519-ff2a-4c06-b79a-2aa23c47c861 to view your Maven build scanner results to view your Maven build scanner results

Alternative install via docker-compose and maven

  1. Checkout the project from github
  2. Run docker-compose up -d to build the server and run mongo db and the server
  3. Run mvn install to build and install the maven plugin locally
  4. Configure the maven plugin using Maven CoreExtensions by adding add the following content to .mvn/extensions.xml:
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
  <extension>
    <groupId>com.intuit</groupId>
    <artifactId>maven-build-scanner</artifactId>
    <version>1.0.0-SNAPSHOT</version>
  </extension>
</extensions>

Goto your project and run a maven build with profiling:

To create a scan for another application, do the following:

env MAVEN_BUILD_SCANNER=1 mvn install

License

Maven Build Scanner is released under the Apache 2.0 licenses. It uses junit which is licensed under EPL 1.0.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap