Maven DaDaPush Notification Plugin

a maven plugin for sending notification via DaDaPush

License

License

Categories

Categories

Maven Build Tools CLI User Interface
GroupId

GroupId

com.dadapush.client
ArtifactId

ArtifactId

dadapush-maven-plugin
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven DaDaPush Notification Plugin
a maven plugin for sending notification via DaDaPush
Project URL

Project URL

https://github.com/dadapush/maven-dadapush-notification-plugin
Source Code Management

Source Code Management

https://github.com/dadapush/maven-dadapush-notification-plugin

Download dadapush-maven-plugin

How to add to project

<plugin>
    <groupId>com.dadapush.client</groupId>
    <artifactId>dadapush-maven-plugin</artifactId>
    <version>1.0.0</version>
</plugin>

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.6.0
com.dadapush.client : dadapush-client jar 1.0.0

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

maven-dadapush-notification-plugin

send notification to DaDaPush via Apache Maven

Usage

required configuration

  • channelToken: please go DaDaPush and create new channel.
  • title: message title, length 0~50
  • content: message content, length 0~500

optional configuration

  <plugin>
    <groupId>com.dadapush.client</groupId>
    <artifactId>dadapush-maven-plugin</artifactId>
    <version>${project.version}</version>
    <configuration>
      <basePath>https://www.dadapush.com</basePath>
      <channelToken>YOUR_CHANNEL_TOKEN</channelToken>
      <title>${project.name}</title>
      <content>send test notification from ${project.build.finalName}</content>
      <failOnError>true</failOnError>
    </configuration>
  </plugin>

or advanced usage

<plugin>
  <groupId>com.dadapush.client</groupId>
  <artifactId>dadapush-maven-plugin</artifactId>
  <version>${project.version}</version>
  <executions>
    <execution>
      <id>message-compile</id>
      <phase>compile</phase>
      <goals>
        <goal>message</goal>
      </goals>
      <configuration>
        <basePath>https://www.dadapush.com</basePath>
        <channelToken>YOUR_CHANNEL_TOKEN</channelToken>
        <title>${project.name}</title>
        <content>send compile notification from ${project.build.finalName}</content>
        <failOnError>true</failOnError>
      </configuration>
    </execution>
    <execution>
      <id>message-package</id>
      <phase>package</phase>
      <goals>
        <goal>message</goal>
      </goals>
      <configuration>
        <basePath>https://www.dadapush.com</basePath>
        <channelToken>YOUR_CHANNEL_TOKEN</channelToken>
        <title>${project.name}</title>
        <content>send package notification from ${project.build.finalName}</content>
        <failOnError>true</failOnError>
      </configuration>
    </execution>
    <execution>
      <id>message-test</id>
      <phase>test</phase>
      <goals>
        <goal>message</goal>
      </goals>
      <configuration>
        <basePath>https://www.dadapush.com</basePath>
        <channelToken>YOUR_CHANNEL_TOKEN</channelToken>
        <title>${project.name}</title>
        <content>send test notification from ${project.build.finalName}</content>
        <failOnError>true</failOnError>
      </configuration>
    </execution>
    <execution>
      <id>message-install</id>
      <phase>install</phase>
      <goals>
        <goal>message</goal>
      </goals>
      <configuration>
        <basePath>https://www.dadapush.com</basePath>
        <channelToken>YOUR_CHANNEL_TOKEN</channelToken>
        <title>${project.name}</title>
        <content>send install notification from ${project.build.finalName}</content>
        <failOnError>true</failOnError>
      </configuration>
    </execution>
  </executions>
</plugin>
com.dadapush.client

DaDaPush

DaDaPush: Real-time Notifications App

Versions

Version
1.0.0