Skip to content
Maven DaDaPush Notification Plugin
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src/main/java/com/dadapush/client
.gitignore
README.md
pom.xml

README.md

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>
You can’t perform that action at this time.