- Installation Reference https://developer.atlassian.com/server/framework/atlassian-sdk/install-the-atlassian-sdk-on-a-windows-system/ instructions
- Windows installation is relatively simple, the installation is complete, run the command-line atlas-version to verify that the installation was successful
- note:
- After installation is complete, the best Atlassian own local repository address to the directory Maven modified native, modified files Atlassian \ atlassian-plugin-sdk-8.0.7 \ apache-maven-3.5.4 \ conf \ setting.xml
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:
- 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
- Modify the database
- Copy the mysql-connection-java-xxxjar to the project directory \ target \ container \ tomcat8x \ under \ apache-tomcat-8.5.35 lib
- Create an empty library in the database
- Modify the project directory target \ jira \ home \ dbconfig.xml, refer to the following:
<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&characterEncoding=UTF8&</url>
<driver-class>com.mysql.cj.jdbc.Driver</driver-class>
<username>root</username>
<password>root</password>