Atlassian JIRA plug-in development and installation of the two to create a project


Create a project

Reference: https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-helloworld-plugin-project/

  • Creating a plug-in project development directory, such as demo
  • Command line to this directory, run the atlas-create-jira-plugin, Enter
  • First run will download dependencies, we need to wait a while
  • Then enter the proposed project information, refer to the description of the actual situation and according to their input
  • Y prompted for confirmation, and press Enter
  • Then it will download the dependencies, and build the project
  • Given in reference to the official website using the atlas-run to run, generate Eclipse plug-in project here
  • In the directory where the pom.xml, run the command line
  • atlas-mvn eclipse: configure-workspace -Declipse.workspace = "your Eclipse workspace path."
  • Then run the atlas-mvn eclipse: eclipse
  • Import Eclipse
  • After the import, run under the project directory atlas-run and follow the prompts to configure
  • The default is the H2-memory database, run relatively long time, open the link HTTP: // localhost: 2990 / JIRA , by default, and then in the system, plug-ins, management applications, will be able to see the creation of a plug, the plug has two, one It is a plug-in, is testing a plug-in, you can refer https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-helloworld-plugin-project/ instructions.

problem:

  1. If the local Maven and atlassian SDK in the maven different, you need to label SDK Maven profile in the setting.xml are copied to the local maven in setting.xml
  2. Modify the database
    1. Copy the mysql-connection-java-xxxjar to the project directory \ target \ container \ tomcat8x \ under \ apache-tomcat-8.5.35 lib
    2. Create an empty library in the database
    3. Modify the project directory target \ jira \ home \ dbconfig.xml, refer to the following:
      1. <name>defaultDS</name>
           <delegator-name>default</delegator-name>
           <database-type>mysql</database-type>
           <jdbc-datasource>
             <url>jdbc:mysql://192.168.1.11:3306/jira?useUnicode=true&amp;characterEncoding=UTF8&amp</url>
           <driver-class>com.mysql.cj.jdbc.Driver</driver-class>
           <username>root</username>
           <password>root</password>


Guess you like

Origin www.cnblogs.com/alex-blog/p/11448168.html