Maven :: Build Time Profiler

This POM contains the default configuration for all projects which are located in com.soebes

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка
Группа

Группа

com.soebes.maven.extensions
Идентификатор

Идентификатор

maven-buildtime-profiler
Последняя версия

Последняя версия

0.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Maven :: Build Time Profiler
This POM contains the default configuration for all projects which are located in com.soebes
Организация-разработчик

Организация-разработчик

SoftwareEntwicklung Beratung Schulung
Система контроля версий

Система контроля версий

https://github.com/khmarbaise/maven-buildtime-profiler/

Скачать maven-buildtime-profiler

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.soebes.maven.extensions/maven-buildtime-profiler/ -->
<dependency>
    <groupId>com.soebes.maven.extensions</groupId>
    <artifactId>maven-buildtime-profiler</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.soebes.maven.extensions/maven-buildtime-profiler/
implementation 'com.soebes.maven.extensions:maven-buildtime-profiler:0.2.0'
// https://jarcasting.com/artifacts/com.soebes.maven.extensions/maven-buildtime-profiler/
implementation ("com.soebes.maven.extensions:maven-buildtime-profiler:0.2.0")
'com.soebes.maven.extensions:maven-buildtime-profiler:jar:0.2.0'
<dependency org="com.soebes.maven.extensions" name="maven-buildtime-profiler" rev="0.2.0">
  <artifact name="maven-buildtime-profiler" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.soebes.maven.extensions', module='maven-buildtime-profiler', version='0.2.0')
)
libraryDependencies += "com.soebes.maven.extensions" % "maven-buildtime-profiler" % "0.2.0"
[com.soebes.maven.extensions/maven-buildtime-profiler "0.2.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
javax.inject : javax.inject jar 1
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5

provided (3)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-core jar 3.1.1
org.slf4j : slf4j-api jar 1.7.5
org.eclipse.aether : aether-api jar 1.0.0.v20140518

test (5)

Идентификатор библиотеки Тип Версия
org.testng : testng jar 6.9.8
org.assertj : assertj-core jar 2.1.0
org.mockito : mockito-core jar 1.10.19
nl.jqno.equalsverifier : equalsverifier jar 2.4.5
org.slf4j : slf4j-nop jar 1.7.5

Модули Проекта

Данный проект не имеет модулей.

Maven BuildTime Profiler

Apache License, Version 2.0, January 2004 Maven Central Build Status

Often you have the problem that in large builds, you need to find where time is consumed.

This is an EventSpy implementation which collects all the information of all phases and mojo executions and make a summarization output at the end of the build.

If you like to use this EventSpy with Maven 3.1.1+ till Maven 3.2.5 you need to manually download it from Maven Central and put the resulting jar file into the ${M2_HOME}/lib/ext directory or if you like to use it directly you have to add the following parameter on command line:

mvn -Dmaven.ext.class.path=PathWhereItIsLocated/maven-buildtime-profiler-0.2.0-mvn311.jar clean package

If you like to use this extension for Maven 3.3.1+ you have to define the following .mvn/extensions.xml file:

<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.soebes.maven.extensions</groupId>
    <artifactId>maven-buildtime-profiler</artifactId>
    <version>0.2.0</version>
  </extension>
</extensions>

The download from Maven Central will be done by Maven itself.

Here's an example of what the output will look like:

[INFO] ------------------------------------------------------------------------
[INFO] --             Maven Build Time Profiler Summary                      --
[INFO] ------------------------------------------------------------------------
[INFO] Project discovery time:       85 ms
[INFO] ------------------------------------------------------------------------
[INFO] Project Build Time (reactor order):
[INFO]
[INFO] parse-pom:
[INFO]          169 ms : clean
[INFO]          457 ms : process-resources
[INFO]          663 ms : compile
[INFO]           14 ms : process-test-resources
[INFO]          197 ms : test-compile
[INFO]         1109 ms : test
[INFO]         1105 ms : package
[INFO]          811 ms : integration-test
[INFO]           53 ms : verify
[INFO] ------------------------------------------------------------------------
[INFO] Lifecycle Phase summary:
[INFO]
[INFO]      169 ms : clean
[INFO]      457 ms : process-resources
[INFO]      663 ms : compile
[INFO]       14 ms : process-test-resources
[INFO]      197 ms : test-compile
[INFO]     1109 ms : test
[INFO]     1105 ms : package
[INFO]      811 ms : integration-test
[INFO]       53 ms : verify
[INFO] ------------------------------------------------------------------------
[INFO] Plugins in lifecycle Phases:
[INFO]
[INFO] clean:
[INFO]      169 ms: org.apache.maven.plugins:maven-clean-plugin:3.0.0:clean (default-clean)
[INFO] process-resources:
[INFO]      457 ms: org.apache.maven.plugins:maven-resources-plugin:2.7:resources (default-resources)
[INFO] compile:
[INFO]      663 ms: org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile)
[INFO] process-test-resources:
[INFO]       14 ms: org.apache.maven.plugins:maven-resources-plugin:2.7:testResources (default-testResources)
[INFO] test-compile:
[INFO]      197 ms: org.apache.maven.plugins:maven-compiler-plugin:3.3:testCompile (default-testCompile)
[INFO] test:
[INFO]     1109 ms: org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test)
[INFO] package:
[INFO]      871 ms: org.apache.maven.plugins:maven-assembly-plugin:2.6:single (make-executable-jar)
[INFO]      234 ms: org.apache.maven.plugins:maven-jar-plugin:2.6:jar (default-jar)
[INFO] integration-test:
[INFO]      811 ms: org.apache.maven.plugins:maven-failsafe-plugin:2.18.1:integration-test (failsafe-integration-test)
[INFO] verify:
[INFO]       53 ms: org.apache.maven.plugins:maven-failsafe-plugin:2.18.1:verify (failsafe-verify)
[INFO] ------------------------------------------------------------------------
[INFO] ForkTime: 0

Most important might be in this relationship that you will get also informations about the time taken to install artifacts:

[INFO] ------------------------------------------------------------------------
[INFO] Installation summary:
[INFO]        0 ms : com.soebes.examples.j2ee:service:1.1.2-SNAPSHOT:pom
[INFO]        1 ms : com.soebes.examples.j2ee:parent:1.1.2-SNAPSHOT:pom
[INFO]        5 ms : com.soebes.examples.j2ee:shade:1.1.2-SNAPSHOT:test:jar
[INFO]        1 ms : com.soebes.examples.j2ee:service-client:1.1.2-SNAPSHOT:pom
[INFO]        0 ms : com.soebes.examples.j2ee:domain:1.1.2-SNAPSHOT:pom
[INFO]        3 ms : com.soebes.examples.j2ee:webgui:1.1.2-SNAPSHOT:pom
[INFO]        1 ms : com.soebes.examples.j2ee:service:1.1.2-SNAPSHOT:jar
[INFO]        0 ms : com.soebes.examples.j2ee:service-client:1.1.2-SNAPSHOT:jar
[INFO]        1 ms : com.soebes.examples.j2ee:domain:1.1.2-SNAPSHOT:jar
[INFO]       10 ms : com.soebes.examples.j2ee:assembly:1.1.2-SNAPSHOT:archive:zip
[INFO]       19 ms : com.soebes.examples.j2ee:assembly:1.1.2-SNAPSHOT:prod:jar
[INFO]        6 ms : com.soebes.examples.j2ee:shade:1.1.2-SNAPSHOT:dev:jar
[INFO]        6 ms : com.soebes.examples.j2ee:shade:1.1.2-SNAPSHOT:prod:jar
[INFO]        1 ms : com.soebes.examples.j2ee:shade:1.1.2-SNAPSHOT:pom
[INFO]        6 ms : com.soebes.examples.j2ee:assembly:1.1.2-SNAPSHOT:dev:jar
[INFO]        1 ms : com.soebes.examples.j2ee:assembly:1.1.2-SNAPSHOT:pom
[INFO]        0 ms : com.soebes.examples.j2ee:appasm:1.1.2-SNAPSHOT:pom
[INFO]        2 ms : com.soebes.examples.j2ee:webgui:1.1.2-SNAPSHOT:war
[INFO]        8 ms : com.soebes.examples.j2ee:app:1.1.2-SNAPSHOT:pom
[INFO]        1 ms : com.soebes.examples.j2ee:shade:1.1.2-SNAPSHOT:jar
[INFO]        3 ms : com.soebes.examples.j2ee:app:1.1.2-SNAPSHOT:ear
[INFO] 75 ms  34,888,754 bytes. 443.633 MiB / s

And much more important are things like the time for the deployment:

[INFO] ------------------------------------------------------------------------
[INFO] Deployment summary:
[INFO]       19 ms : com.soebes.examples.j2ee:assembly:1.1.2-20160306.145402-11:pom
[INFO]       20 ms : com.soebes.examples.j2ee:service-client:1.1.2-20160306.145401-11:jar
[INFO]       80 ms : com.soebes.examples.j2ee:assembly:1.1.2-20160306.145402-11:prod:jar
[INFO]       20 ms : com.soebes.examples.j2ee:shade:1.1.2-20160306.145402-11:pom
[INFO]       19 ms : com.soebes.examples.j2ee:shade:1.1.2-20160306.145402-11:jar
[INFO]       84 ms : com.soebes.examples.j2ee:webgui:1.1.2-20160306.145401-11:war
[INFO]       20 ms : com.soebes.examples.j2ee:service:1.1.2-20160306.145401-11:jar
[INFO]      192 ms : com.soebes.examples.j2ee:assembly:1.1.2-20160306.145402-11:archive:zip
[INFO]       79 ms : com.soebes.examples.j2ee:shade:1.1.2-20160306.145402-11:prod:jar
[INFO]       20 ms : com.soebes.examples.j2ee:webgui:1.1.2-20160306.145401-11:pom
[INFO]       23 ms : com.soebes.examples.j2ee:service-client:1.1.2-20160306.145401-11:pom
[INFO]       90 ms : com.soebes.examples.j2ee:shade:1.1.2-20160306.145402-11:dev:jar
[INFO]       38 ms : com.soebes.examples.j2ee:domain:1.1.2-20160306.145401-11:jar
[INFO]       19 ms : com.soebes.examples.j2ee:appasm:1.1.2-20160306.145402-11:pom
[INFO]       18 ms : com.soebes.examples.j2ee:app:1.1.2-20160306.145401-11:pom
[INFO]      103 ms : com.soebes.examples.j2ee:assembly:1.1.2-20160306.145402-11:dev:jar
[INFO]       39 ms : com.soebes.examples.j2ee:parent:1.1.2-20160306.145401-11:pom
[INFO]      101 ms : com.soebes.examples.j2ee:shade:1.1.2-20160306.145402-11:test:jar
[INFO]       93 ms : com.soebes.examples.j2ee:app:1.1.2-20160306.145401-11:ear
[INFO]       19 ms : com.soebes.examples.j2ee:service:1.1.2-20160306.145401-11:pom
[INFO]       18 ms : com.soebes.examples.j2ee:domain:1.1.2-20160306.145401-11:pom
[INFO] 1,114 ms  34,888,754 bytes. 29.868 MiB / s

Prerequisites minimum for this is Maven 3.1.1+ and Java 1.8 as run time.

If you have ideas for improvements etc. just fill in issues in the tracking system.

Версии библиотеки

Версия
0.2.0
0.1.0