HST Page Diagnostics Extension

This is a plugin for Hippo (Hippo CMS) Site Toolkit that enable users to profile their code via annotations.

License

License

apache license, version 2.0
GroupId

GroupId

nl.openweb.hippo
ArtifactId

ArtifactId

hst-diagnostics-extension
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

HST Page Diagnostics Extension
This is a plugin for Hippo (Hippo CMS) Site Toolkit that enable users to profile their code via annotations.
Project URL

Project URL

https://github.com/openweb-nl/hst-diagnostics-extension
Source Code Management

Source Code Management

https://github.com/openweb-nl/hst-diagnostics-extension

Download hst-diagnostics-extension

How to add to project

<!-- https://jarcasting.com/artifacts/nl.openweb.hippo/hst-diagnostics-extension/ -->
<dependency>
    <groupId>nl.openweb.hippo</groupId>
    <artifactId>hst-diagnostics-extension</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/nl.openweb.hippo/hst-diagnostics-extension/
implementation 'nl.openweb.hippo:hst-diagnostics-extension:1.0.0'
// https://jarcasting.com/artifacts/nl.openweb.hippo/hst-diagnostics-extension/
implementation ("nl.openweb.hippo:hst-diagnostics-extension:1.0.0")
'nl.openweb.hippo:hst-diagnostics-extension:jar:1.0.0'
<dependency org="nl.openweb.hippo" name="hst-diagnostics-extension" rev="1.0.0">
  <artifact name="hst-diagnostics-extension" type="jar" />
</dependency>
@Grapes(
@Grab(group='nl.openweb.hippo', module='hst-diagnostics-extension', version='1.0.0')
)
libraryDependencies += "nl.openweb.hippo" % "hst-diagnostics-extension" % "1.0.0"
[nl.openweb.hippo/hst-diagnostics-extension "1.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.onehippo.cms7.hst.dependencies » hst-spring-dependencies pom

Project Modules

There are no modules declared in this project.

Hippo Diagnostics Extension

Introduction

This is a plugin for Hippo (Hippo CMS) Site Toolkit that enable users to profile their code via annotations.

USAGE

Step 1: Add the following dependency to your project /site/pom.xml file (Or a dependency of your project's site)

<dependency>
  <groupId>nl.openweb.hippo</groupId>
  <artifactId>hst-diagnostics-extension</artifactId>
  <version>1.0.0</version>
</dependency>

Step 2: Add the following profile to your project /site/pom.xml file

<profile>
  <id>profile</id>
  <dependencies>
    <dependency>
      <groupId>org.aspectj</groupId>
      <artifactId>aspectjrt</artifactId>
      <version>${aspectjweaver.version}</version>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>aspectj-maven-plugin</artifactId>
        <version>1.10</version>
        <configuration>
          <weaveDependencies>
            <weaveDependency>
              <groupId>nl.openweb.hippo</groupId>
              <artifactId>hst-diagnostics-extension</artifactId>
            </weaveDependency>
          </weaveDependencies>
          <complianceLevel>1.8</complianceLevel>
          <source>1.8</source>
          <target>1.8</target>
          <showWeaveInfo>true</showWeaveInfo>
          <verbose>true</verbose>
          <Xlint>ignore</Xlint>
          <encoding>UTF-8</encoding>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</profile>

Step 3: Add @Timed annotations to some methods in your project.

@Timed
public List<NewsDocuments> getRelatedNews() {
	// ...
}

Step 4: Build your project via profile "profile"

mvn clean install -Pprofile
nl.openweb.hippo

Open Web

Software development and open source is in our DNA. Development, contracting, maintenance and management. Discover what Open Web professionals can do for you.

Versions

Version
1.0.0