Hi ,
When i searched regarding the scheduled task in JIRA, i found the below link about scheduled task with sample example . it was perfect example , but still i have some queries on that .
http://www.j-tricks.com/tutorials/scheduled-tasks-in-jira
The below is the folder structure created in that sample example package:
scheduled-task-plugin\pom.xml
scheduled-task-plugin\src\main\java\com\jtricks\JTricksScheduledJob.java
1,How to build Jar for this above example .
2,what is purpose of having pom.xml.
pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jtricks</groupId>
<artifactId>scheduled-task-plugin</artifactId>
<version>1.0</version>
<organization>
<name>J Tricks</name>
<url>http://www.j-tricks.com/</url>
</organization>
<name>scheduled-task-plugin</name>
<description>This is the Example com.jtricks:scheduled-task-plugin plugin for Atlassian JIRA.</description>
<packaging>atlassian-plugin</packaging>
<dependencies>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>atlassian-jira</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-func-tests</artifactId>
<version>${jira.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-jira-plugin</artifactId>
<version>3.0.6</version>
<extensions>true</extensions>
<configuration>
<productVersion>${jira.version}</productVersion>
<productDataVersion>${jira.data.version}</productDataVersion>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<jira.version>4.0.2</jira.version>
<jira.data.version>4.0</jira.data.version>
</properties>
</project>